get_prometheus_labels
Retrieve all label names from a Prometheus datasource to identify available metrics and dimensions for querying and analysis.
Instructions
Get all label names from a Prometheus datasource
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": "get_prometheus_labels"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| datasourceUid | Yes | The Prometheus datasource UID | |
| start | No | Start time (RFC3339 or Unix timestamp) | |
| end | No | End time (RFC3339 or Unix timestamp) |