Skip to main content
Glama

Grafana MCP Server

by levalhq

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.

Input Schema

NameRequiredDescriptionDefault
datasourceUidYesThe UID of the datasource to query
endRfc3339NoThe end time of the time range
limitNoMaximum number of results
matchesNoLabel matchers to filter the results
startRfc3339NoThe start time of the time range

Input Schema (JSON Schema)

{ "properties": { "datasourceUid": { "description": "The UID of the datasource to query", "type": "string" }, "endRfc3339": { "description": "The end time of the time range", "type": "string" }, "limit": { "description": "Maximum number of results", "type": "number" }, "matches": { "description": "Label matchers to filter the results", "items": { "additionalProperties": false, "properties": { "filters": { "items": { "additionalProperties": false, "properties": { "name": { "description": "The name of the label to match against", "type": "string" }, "type": { "description": "The match operator", "enum": [ "=", "!=", "=~", "!~" ], "type": "string" }, "value": { "description": "The value to match against", "type": "string" } }, "required": [ "name", "value", "type" ], "type": "object" }, "type": "array" } }, "required": [ "filters" ], "type": "object" }, "type": "array" }, "startRfc3339": { "description": "The start time of the time range", "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