We've got some gauges we use to measure some fleets of vehicles and their 
status.  So every time we measure the fleet sizes we set the gauge to 0 and 
then loop through the vehicles and increment the right gauges based on 
status... 

But what happens is that the gauge values constantly go up so that even 
though there are really 50 vehicles the gauge quickly spirals up into the 
thousands...  

Is this combination of Set(0) and Inc() and incorrect approach for a gauge?

Other gauges where we only ever call Set() never have this issue.  Should I 
just increment a value in my code and then call Set once instead?

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/dcbc6063-bc87-4d8c-a894-4242d1a6a22ao%40googlegroups.com.

Reply via email to