From e39be6542851dc4cf8ded4d436195adee0c3cc13 Mon Sep 17 00:00:00 2001 From: Ananya Kumar Mallik Date: Tue, 3 Dec 2024 13:39:01 +0000 Subject: [PATCH] reuse Signed-off-by: Ananya Kumar Mallik --- stackdriver_exporter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stackdriver_exporter.go b/stackdriver_exporter.go index 9ba93f0..b60f644 100644 --- a/stackdriver_exporter.go +++ b/stackdriver_exporter.go @@ -242,7 +242,7 @@ func (h *handler) getCollector(project string, filters map[string]bool) (*collec } collector, err := collectors.NewMonitoringCollector(project, h.m, collectors.MonitoringCollectorOptions{ - MetricTypePrefixes: h.filterMetricTypePrefixes(filters), + MetricTypePrefixes: filterdPrefixes, ExtraFilters: h.metricsExtraFilters, RequestInterval: *monitoringMetricsInterval, RequestOffset: *monitoringMetricsOffset,