Skip to main content
Glama

Multi-Cluster MCP Server

by yanmxa

prometheus

Query and visualize Prometheus metrics from Kubernetes clusters using PromQL. Supports instant and time-series data, grouping by labels, and customized units for Recharts integration.

Instructions

Query Prometheus metrics from a specific cluster and format the results for Recharts visualization.

Input Schema

NameRequiredDescriptionDefault
clusterNoThe target cluster name. Defaults to the hub cluster.
data_typeNoType of query: 'snapshot' for instant or 'range' for time-series.snapshot
endNo(Only for data_type='range') End time in ISO 8601 format. Defaults to now if not provided.
group_byNoLabel to group results by, such as 'pod' or 'namespace'.pod
qlYesThe PromQL query string to run against the Prometheus server.
startNo(Only for data_type='range') Start time in ISO 8601 format, e.g., '2025-06-06T00:00:00Z'.
stepNo(Only for data_type='range') Query resolution step (e.g., '30s', '5m', '1h').5m
unitNoThe desired output unit: 'auto', 'bytes', 'MiB', 'GiB', 'cores', or 'millicores'.auto

Input Schema (JSON Schema)

{ "properties": { "cluster": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "The target cluster name. Defaults to the hub cluster.", "title": "Cluster" }, "data_type": { "default": "snapshot", "description": "Type of query: 'snapshot' for instant or 'range' for time-series.", "title": "Data Type", "type": "string" }, "end": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "(Only for data_type='range') End time in ISO 8601 format. Defaults to now if not provided.", "title": "End" }, "group_by": { "default": "pod", "description": "Label to group results by, such as 'pod' or 'namespace'.", "title": "Group By", "type": "string" }, "ql": { "description": "The PromQL query string to run against the Prometheus server.", "title": "Ql", "type": "string" }, "start": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "(Only for data_type='range') Start time in ISO 8601 format, e.g., '2025-06-06T00:00:00Z'.", "title": "Start" }, "step": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": "5m", "description": "(Only for data_type='range') Query resolution step (e.g., '30s', '5m', '1h').", "title": "Step" }, "unit": { "default": "auto", "description": "The desired output unit: 'auto', 'bytes', 'MiB', 'GiB', 'cores', or 'millicores'.", "title": "Unit", "type": "string" } }, "required": [ "ql" ], "title": "prometheusArguments", "type": "object" }
Install Server

Other Tools from Multi-Cluster MCP Server

Related Tools

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/yanmxa/multicluster-mcp-server'

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