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.
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.