update: change an argument
Signed-off-by: huanggze <loganhuang@yunify.com>
This commit is contained in:
@@ -480,7 +480,7 @@ func collectWorkspaceMetric(monitoringRequest *client.MonitoringRequestParams, w
|
|||||||
wg.Add(1)
|
wg.Add(1)
|
||||||
go func(metricName string) {
|
go func(metricName string) {
|
||||||
|
|
||||||
queryType, params := AssembleSpecificWorkspaceMetricRequestInfo(monitoringRequest, namespaceArray, ".*", metricName)
|
queryType, params := AssembleSpecificWorkspaceMetricRequestInfo(monitoringRequest, namespaceArray, ws, metricName)
|
||||||
metricsStr := client.SendMonitoringRequest(client.PrometheusEndpoint, queryType, params)
|
metricsStr := client.SendMonitoringRequest(client.PrometheusEndpoint, queryType, params)
|
||||||
ch <- ReformatJson(metricsStr, metricName, map[string]string{ResultItemMetricResourceName: ws})
|
ch <- ReformatJson(metricsStr, metricName, map[string]string{ResultItemMetricResourceName: ws})
|
||||||
wg.Done()
|
wg.Done()
|
||||||
|
|||||||
Reference in New Issue
Block a user