dcu / mongodb_exporter

MongoDB exporter for prometheus.io
MIT License
353 stars 216 forks source link

Multiple gauge entries for replset members #51

Closed georgelee1 closed 7 years ago

georgelee1 commented 7 years ago

This is to fix the issue #50

StateStr is not a fixed value and so should not be part of the label for member gauges. Otherwise it leads to duplicate gauge entries when a member changes state (from/to primary/secondary/unreachable) and it is impossible to tell in the /metrics endpoint which of the duplicates is the correct/current value.

I have removed StateStr from the label.

georgelee1 commented 7 years ago

@dcu

deepthawtz commented 7 years ago

closes #51