Skip to content

Commit

Permalink
fixing typo
Browse files Browse the repository at this point in the history
  • Loading branch information
rashmichandrashekar committed Nov 1, 2024
1 parent a7e4bf6 commit 12abd1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion otelcollector/prom-config-validator-builder/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit 12abd1b

Please sign in to comment.