Metrics
EmitMetric
| Field | Type | Description |
|---|---|---|
name | string | Required. Metric name (must be a valid Prometheus metric name). |
type | MetricType | Metric type. Defaults to counter. Default: "counter". |
value | any | Value to record. Required for gauge and histogram; counters increment by 1 when omitted. Accepts a literal number or a standard interpolation expression… |
labels | object (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