Prometheus: Add missing Azure setting (#84094)

This commit is contained in:
Andreas Christou
2024-03-11 08:57:42 +00:00
committed by GitHub
parent ea84a66ff4
commit 07676ab8a0
2 changed files with 25 additions and 0 deletions
+4
View File
@@ -9,6 +9,10 @@ func (cfg *Cfg) readAzureSettings() {
azureSettings := &azsettings.AzureSettings{}
azureSection := cfg.Raw.Section("azure")
authSection := cfg.Raw.Section("auth")
// This setting is specific to Prometheus
azureSettings.AzureAuthEnabled = authSection.Key("azure_auth_enabled").MustBool(false)
// Cloud
cloudName := azureSection.Key("cloud").MustString(azsettings.AzurePublic)