label_values
List distinct values for any Prometheus label, defaulting to all metric names. Scope results with a PromQL selector to avoid truncated, partial data.
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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "label_values"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | __name__ | |
| match | No | ||
| target | No |