list_prometheus_metric_metadata
Retrieve metadata for Prometheus metrics scraped from monitoring targets. Use this tool to explore available metrics, their types, and labels for a specified Grafana datasource.
Instructions
List Prometheus metric metadata. Returns metadata about metrics currently scraped from targets.
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_metric_metadata"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| datasourceUid | Yes | The UID of the datasource to query | |
| limit | No | The maximum number of metrics to return | |
| limitPerMetric | No | The maximum number of metrics to return per metric | |
| metric | No | The metric to query |