empiredan commented on code in PR #1855:
URL: 
https://github.com/apache/incubator-pegasus/pull/1855#discussion_r1453244729


##########
collector/metrics/metric_collector.go:
##########
@@ -203,6 +199,7 @@ func processAllServerMetrics() {
        metricsByTableID := make(map[string]Metrics, 128)
        metricsByServerTableID := make(map[string]Metrics, 128)
        var metricsOfCluster []Metric
+       var role string

Review Comment:
   ```suggestion
   ```



##########
collector/metrics/metric_collector.go:
##########
@@ -211,7 +208,8 @@ func processAllServerMetrics() {
                        return
                }
                jsonData := gjson.Parse(data)
-               for _, entity := range jsonData.Array() {
+               role = jsonData.Get("role").String()

Review Comment:
   ```suggestion
                role := jsonData.Get("role").String()
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to