Re: [prometheus-users] Please add a .set() method to counters in java client

2020-05-16 Thread Julien Pivotto
On 16 May 22:41, Julius Volz wrote: > Hi, > > When your input is an absolute value, and one that can reset on you outside > of your control, it sounds like you are translating existing third-party > state into a Prometheus metric (rather than being the one in charge of > counting things as they ha

Re: [prometheus-users] Please add a .set() method to counters in java client

2020-05-16 Thread Julius Volz
Hi, When your input is an absolute value, and one that can reset on you outside of your control, it sounds like you are translating existing third-party state into a Prometheus metric (rather than being the one in charge of counting things as they happen). So you are not looking to track state, bu

[prometheus-users] Please add a .set() method to counters in java client

2020-05-16 Thread Patrick Hemmer
This is a feature request to add a `.set()` method to counters on the java client. Currently java counters only have a `.inc()` method. This is not practical to work with when your input is an absolute value instead of a relative one, and on top of that, when the value can reset to 0 (which pro