Decrement gauge
Object with label keys and values
Optional value: numberValue to decrement with
Decrement gauge
Optional value: numberThe value to decrement with
Increment gauge for given labels
Object with label keys and values
Optional value: numberThe value to increment with
Increment gauge
Optional value: numberThe value to increment with
Return the child for given labels
Rest ...values: string[]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
Rest ...values: string[]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
Optional labels: Partial<Record<T, string | number>>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.
Optional labels: Partial<Record<T, string | number>>Object with label keys and values
Function to invoke when timer should be stopped. The value it returns is the timed duration.
Optional labels: Partial<Record<T, string | number>>
A gauge is a metric that represents a single numerical value that can arbitrarily go up and down.