label_values
List distinct values for any Prometheus label, defaulting to metric names. Optionally filter by a selector, and detect truncated results to ensure complete enumeration.
Instructions
[READ] Distinct values of a label (default name = all metric names).
Args: label: Label name to enumerate (default name). match: Optional PromQL selector to scope the values (e.g. '{job="api"}'). target: Prometheus target name from config; omit for the default.
Returns an envelope with returned/limit/truncated. If
truncated is true the result is partial — narrow the selector or raise
the limit rather than treating it as complete.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | __name__ | |
| match | No | ||
| target | No |