mxinden / modbus_exporter

Exporter which retrieves stats from a modbus system and exports them via HTTP for Prometheus consumption.
GNU General Public License v3.0
1 stars 0 forks source link

modbus: Don't reset registered counter on each metric #13

Closed mxinden closed 5 years ago

mxinden commented 5 years ago

Calling Reset on a counter resets all metrics within the metric family. Even though nice for savety reasons, this deduplicates by metric name, thus prohibiting two metrics with the same name and label keys to be exposed in the final output.