Skip to content

Commit

Permalink
exclude system collections
Browse files Browse the repository at this point in the history
  • Loading branch information
ramunas-omnisend committed Aug 16, 2024
1 parent ff947d7 commit 059c6c9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions exporter/indexstats_collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@ func (d *indexstatsCollector) collect(ch chan<- prometheus.Metric) {
database := parts[0]
collection := strings.Join(parts[1:], ".")

// exclude system collections
if strings.HasPrefix(collection, "system.") {
continue
}

aggregation := bson.D{
{Key: "$indexStats", Value: bson.M{}},
}
Expand Down

0 comments on commit 059c6c9

Please sign in to comment.