Closed bracki closed 8 years ago
https://prometheus.io/docs/instrumenting/writing_clientlibs/
According to the documentation I think these are MUST
s we have to do:
inc
, dec
, incBy
, decBy
to the Gaugeincrease
to inc
on the CounterThe redis protocol does not support doubles natively.
The current field content or the specified increment are not parsable as a double precision floating point number.
http://redis.io/commands/hincrbyfloat However AFAIK redis stores the values internally as double so this shouldn't be a problem. Just take a look into the java world: https://github.com/xetorthio/jedis/blob/master/src/main/java/redis/clients/jedis/Jedis.java#L596
I changed the naming to be more similar to the existing libraries, according to the style guide. I updated the readme and added some usage examples.
I consider this done with the changes from #12 and #13.
In response to https://groups.google.com/forum/#!topic/prometheus-developers/AgnAsR5qDiw we got the following feedback: