Gauge
A gauge is a metric that represents a single numerical value that can arbitrarily go up and down.
§Constructors
Configuration when creating a Gauge metric. Name and Help is mandatory
§Methods
Decrement gauge
Object with label keys and values
Value to decrement with
Decrement gauge
The value to decrement with
Increment gauge for given labels
Object with label keys and values
The value to increment with
Increment gauge
The value to increment with
Return the child for given labels
Label values
Configured gauge with given labels
Return the child for given labels
Object with label keys and values
Configured counter with given labels
Remove metrics for the given label values
Label values
Remove metrics for the given label values
Object with label keys and values
Set gauge value for labels
Object with label keys and values
The value to set
Set gauge value
The value to set
Set gauge value to current epoch time in ms
Object with label keys and values
Start a timer. Calling the returned function will set the gauge's value to the observed duration in seconds.
Object with label keys and values
Function to invoke when timer should be stopped. The value it returns is the timed duration.