Skip to content

Commit

Permalink
use windows ama only msi and non geneva mode for insights metrics (#1337
Browse files Browse the repository at this point in the history
)
  • Loading branch information
ganga1980 authored Oct 28, 2024
1 parent b780558 commit 2b37fbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/plugins/go/src/oms.go
Original file line number Diff line number Diff line change
Expand Up @@ -1038,7 +1038,7 @@ func PostTelegrafMetricsToLA(telegrafRecords []map[interface{}]interface{}) int
Log(message)
}

if IsWindows == false || IsAADMSIAuthMode { //for linux and for windows MSI Auth: mdsd/ama route
if IsWindows == false || (IsAADMSIAuthMode && !IsGenevaLogsIntegrationEnabled) { //for linux and for windows MSI Auth and non geneva mode: mdsd/ama route
var msgPackEntries []MsgPackEntry
var i int
start := time.Now()
Expand Down Expand Up @@ -1136,7 +1136,7 @@ func PostTelegrafMetricsToLA(telegrafRecords []map[interface{}]interface{}) int
}
}

} else { // for windows legacy auth, ODS direct
} else { // for windows legacy auth or windows msi auth in geneva mode, ODS direct

var metrics []laTelegrafMetric
var i int
Expand Down

0 comments on commit 2b37fbb

Please sign in to comment.