From 12abd1b17b72412d680922f0216338633d46b5ad Mon Sep 17 00:00:00 2001 From: Rashmi Chandrashekar Date: Fri, 1 Nov 2024 16:25:46 -0700 Subject: [PATCH] fixing typo --- otelcollector/prom-config-validator-builder/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/otelcollector/prom-config-validator-builder/main.go b/otelcollector/prom-config-validator-builder/main.go index 80e457df..6463e6f1 100644 --- a/otelcollector/prom-config-validator-builder/main.go +++ b/otelcollector/prom-config-validator-builder/main.go @@ -218,7 +218,7 @@ func generateOtelConfig(promFilePath string, outputFilePath string, otelConfigTe globalSettingsFromMergedOtelConfig := prometheusConfig["global"] if globalSettingsFromMergedOtelConfig != nil { - globalSettings := globalSettingsFromMergedOtelConfig2.(map[interface{}]interface{}) + globalSettings := globalSettingsFromMergedOtelConfig.(map[interface{}]interface{}) scrapeInterval := globalSettings["scrape_interval"] if (len(globalSettings) > 1) || (len(globalSettings) == 1 && scrapeInterval != "15s") { if os.Getenv("CONTROLLER_TYPE") == "ReplicaSet" {