Skip to main content
Glama

Grafana MCP Server

by levalhq

list_prometheus_label_values

Retrieve available values for a specific Prometheus label, with options to filter by series selectors and time range for precise monitoring data analysis.

Instructions

Get the values for a specific label name in Prometheus. Allows filtering by series selectors and time range.

Input Schema

NameRequiredDescriptionDefault
datasourceUidYesThe UID of the datasource to query
endRfc3339NoThe end time of the query
labelNameYesThe name of the label to query
limitNoMaximum number of results
matchesNoSelectors to filter the results
startRfc3339NoThe start time of the query

Input Schema (JSON Schema)

{ "properties": { "datasourceUid": { "description": "The UID of the datasource to query", "type": "string" }, "endRfc3339": { "description": "The end time of the query", "type": "string" }, "labelName": { "description": "The name of the label to query", "type": "string" }, "limit": { "description": "Maximum number of results", "type": "number" }, "matches": { "description": "Selectors 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 query", "type": "string" } }, "required": [ "datasourceUid", "labelName" ], "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