From e575a217f326e26c8cb06e7570a0670d4cb7e4f7 Mon Sep 17 00:00:00 2001 From: huanggze Date: Sat, 11 May 2019 16:12:33 +0800 Subject: [PATCH] update: change an argument Signed-off-by: huanggze --- pkg/models/metrics/metrics.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/models/metrics/metrics.go b/pkg/models/metrics/metrics.go index 880acc797..0537e93c7 100644 --- a/pkg/models/metrics/metrics.go +++ b/pkg/models/metrics/metrics.go @@ -480,7 +480,7 @@ func collectWorkspaceMetric(monitoringRequest *client.MonitoringRequestParams, w wg.Add(1) go func(metricName string) { - queryType, params := AssembleSpecificWorkspaceMetricRequestInfo(monitoringRequest, namespaceArray, ".*", metricName) + queryType, params := AssembleSpecificWorkspaceMetricRequestInfo(monitoringRequest, namespaceArray, ws, metricName) metricsStr := client.SendMonitoringRequest(client.PrometheusEndpoint, queryType, params) ch <- ReformatJson(metricsStr, metricName, map[string]string{ResultItemMetricResourceName: ws}) wg.Done()