Add n to a counter metric. Returns false if not found, wrong type, or metrics not enabled.
Deregister and remove a custom metric. Returns false if not found or metrics not enabled.
Returns true if the metrics server is enabled (started with -M or ZA_PROMETHEUS env var).
Increment a counter metric by 1. Returns false if not found, wrong type, or metrics not enabled.
Record an observation in a summary metric. Returns false if not found, wrong type, or metrics not enabled.
Register a custom metric with type 'counter', 'gauge', or 'summary'. Returns false if already registered or metrics not enabled.
Set a gauge metric to a value. Returns false if not found, wrong type, or metrics not enabled.