promgleam/metrics/gauge
A gauge is a metric that represents a single numerical value that can arbitrarily go up and down.
Gauges are typically used for measured values like temperatures or current memory usage, but also “counts” that can go up and down, like the number of concurrent requests.
Functions
pub fn create_gauge(
registry registry: String,
name name: String,
help help: String,
labels labels: List(String),
) -> Result(Nil, String)
Creates a new Gauge metric.
Examples
create_gauge(
registry: "default",
name: "cache_size",
help: "Number of items in the cache",
labels: [ "cache_name" ],
)