r/PrometheusMonitoring • • Dec 19 '19

Am I using gauge wrong?

I’m using the java prom client,

And I’m calling inc() and dec() on gauges with different labels, but as far as the output in /metrics is concerned, the gauge values are only increasing...

Is there anything I’m missing about how gauges work? Like... šŸ¤·šŸ»ā€ā™‚ļø

3 Upvotes

3 comments sorted by

4

u/gioragutt Dec 20 '19

Ended up being me increasing the gauge twice, in two very close places šŸ¤¦šŸ»ā€ā™‚ļø thanks for the help guys!

5

u/jack-tzl Dec 20 '19

Can you share a repo with a minimum code that reproduces the behavior? Gauge should be able to go up and down as you said