Skip to main content
Glama

Grafana MCP Server

by levalhq

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.

Input Schema

NameRequiredDescriptionDefault
datasourceUidYesThe UID of the datasource to query
limitNoThe maximum number of metrics to return
limitPerMetricNoThe maximum number of metrics to return per metric
metricNoThe metric to query

Input Schema (JSON Schema)

{ "properties": { "datasourceUid": { "description": "The UID of the datasource to query", "type": "string" }, "limit": { "description": "The maximum number of metrics to return", "type": "number" }, "limitPerMetric": { "description": "The maximum number of metrics to return per metric", "type": "number" }, "metric": { "description": "The metric to query", "type": "string" } }, "required": [ "datasourceUid" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/levalhq/mcp-grafana'

If you have feedback or need assistance with the MCP directory API, please join our Discord server