You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
count-suffixed metrics are exported to the Counter type
All other metrics are exported untyped; specifically no Gauge type is ever exporter
For instance, this is incorrect (should be Gauge):
# TYPE mongodb_collstats_storageStats_count counter
To Reproduce
Steps to reproduce the behavior:
Run the exporter
Some Counters shall be Gauges but are not exported as such
Expected behavior
Proper types, especially Gauges even when their name is suffixed with count
No untyped metric
Additional context
If the MongoDB database offers no hint on the type of the metrics, maybe one way would be to maintain a mapping? Hard to maintain cross-versions, though…
The text was updated successfully, but these errors were encountered:
Describe the bug
The exporter makes arbitrary consideratiosn regarding the type of the exported metrics : https://github.com/percona/mongodb_exporter/blob/v0.40.0/exporter/metrics.go#L163C1-L166C3:
count
-suffixed metrics are exported to theCounter
typeuntyped
; specifically noGauge
type is ever exporterFor instance, this is incorrect (should be
Gauge
):# TYPE mongodb_collstats_storageStats_count counter
To Reproduce
Steps to reproduce the behavior:
Counter
s shall beGauge
s but are not exported as suchExpected behavior
Gauges
even when their name is suffixed withcount
untyped
metricAdditional context
If the MongoDB database offers no hint on the type of the metrics, maybe one way would be to maintain a mapping? Hard to maintain cross-versions, though…
The text was updated successfully, but these errors were encountered: