Skip to main content

Metrics

EmitMetric

FieldTypeDescription
namestringRequired. Metric name (must be a valid Prometheus metric name).
typeMetricTypeMetric type. Defaults to counter. Default: "counter".
valueanyValue to record. Required for gauge and histogram; counters increment by 1 when omitted. Accepts a literal number or a standard interpolation expression…
labelsobject (nullable)User-defined labels. config, interface, and action are always attached automatically. Values accept standard interpolation expressions. Resolved values are coerced to…

MetricType

Metric type for emit_metric actions.

Type: string — one of: counter, gauge, histogram