Skip to content

Commit

Permalink
resolve conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
stefans-elastic committed Jan 17, 2025
1 parent 0fcf3a0 commit e60ff95
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions x-pack/metricbeat/module/iis/application_pool/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,8 @@ func (r *Reader) initAppPools() error {
for key, value := range appPoolCounters {
childQueries, err := r.query.GetCounterPaths(value)
if err != nil {
<<<<<<< HEAD
if err == pdh.PDH_CSTATUS_NO_COUNTER || err == pdh.PDH_CSTATUS_NO_COUNTERNAME || err == pdh.PDH_CSTATUS_NO_INSTANCE || err == pdh.PDH_CSTATUS_NO_OBJECT {
=======
// Handle known PDH errors as informational (e.g. missing counters).
if isPDHError(err) {
>>>>>>> a3cefc060 ([x-pack][metricbeat][iis] improve error handling on pdh counters in application_pool data stream (#42274))
r.log.Infow("Ignoring non existent counter", "error", err,
logp.Namespace("application pool"), "query", value,
)
Expand Down

0 comments on commit e60ff95

Please sign in to comment.