list_prometheus_label_names
Retrieve label names from Prometheus datasources with filtering by series selectors and time range to identify available metrics and dimensions for monitoring queries.
Instructions
List label names in a Prometheus datasource. Allows filtering by series selectors and time range.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"datasourceUid": "<datasourceUid>"
},
"name": "list_prometheus_label_names"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| datasourceUid | Yes | The UID of the datasource to query | |
| endRfc3339 | No | The end time of the time range | |
| limit | No | Maximum number of results | |
| matches | No | Label matchers to filter the results | |
| startRfc3339 | No | The start time of the time range |