Skip to main content
Glama

Grafana MCP Server

by levalhq

list_prometheus_metric_names

Retrieve and filter metric names from a Prometheus datasource using regex patterns to identify specific monitoring metrics for analysis.

Instructions

List metric names in a Prometheus datasource. Retrieves all metric names and filters them using regex.

Input Schema

NameRequiredDescriptionDefault
datasourceUidYesThe UID of the datasource to query
limitNoThe maximum number of results to return
pageNoThe page number to return
regexNoThe regex to match against the metric names

Input Schema (JSON Schema)

{ "properties": { "datasourceUid": { "description": "The UID of the datasource to query", "type": "string" }, "limit": { "description": "The maximum number of results to return", "type": "number" }, "page": { "description": "The page number to return", "type": "number" }, "regex": { "description": "The regex to match against the metric names", "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