If your Prometheus is already configured as a Grafana datasource, you likely do not need this integration — the Grafana integration covers Prometheus queries through a single MCP server. Connect Prometheus directly only if you run Prometheus standalone without Grafana, or if your Prometheus is not reachable through your Grafana instance.
What this integration enables
- PromQL queries — agents run arbitrary PromQL against your Prometheus for metric diagnosis and verification
- Service health checks — agents evaluate
up,kube_pod_status_ready,kube_deployment_status_replicas_available, and similar series during incident investigation - Alert correlation — agents can query the metrics that triggered an alert to understand trend context
- Landscape discovery — sureops runs PromQL (
kube_pod_labels,kube_deployment_status_replicas,traces_service_graph_request_total) throughprometheus-mcpto build your service nodes, deployment topology, and call edges. If both Prometheus and Grafana are connected, sureops uses Prometheus, and falls back to Grafana wheneverprometheus-mcpis unreachable, rejects the token, lacks the instant-query tool, or cannot run a test query
Prerequisites
- An environment selected in the top-right context switcher — Settings → Environment → Integrations is scoped to that environment and stays disabled until one is selected
- A running Prometheus instance reachable from your network
- The
prometheus-mcpserver running and reachable from sureops, exposing an instant-query tool (execute_query, with or without aTOOL_PREFIXprefix, orprometheus_query) - An ingress or reverse proxy in front of
prometheus-mcpthat checks a bearer token —prometheus-mcphas no built-in authentication
Integration connections are per-environment. Connecting Prometheus here only applies to the environment that was selected in the context switcher at the time — it does not carry over to your other environments. Repeat this connect flow for each environment that needs Prometheus.
Setup
1
Stand up prometheus-mcp
Deploy an MCP server that speaks PromQL against your Prometheus instance. The sureops demo environment doesn’t use this integration — Grafana is already connected there and covers Prometheus queries.For your own environment, deploy pab1it0/prometheus-mcp-server (or another MCP server that exposes one of the instant-query tools listed above), pointed at your Prometheus URL with whatever auth (none, basic, or bearer) your Prometheus instance requires configured as its upstream. These Prometheus-side credentials configure your MCP server directly — they are never entered into sureops. Run it with:
PROMETHEUS_MCP_SERVER_TRANSPORT=httpPROMETHEUS_MCP_STATELESS_HTTP=true— otherwise each landscape sync leaves idle sessions open on the serverPROMETHEUS_DISABLE_LINKS=true— otherwise every query result carries a link to your Prometheus URL
http transport the Docker image binds 0.0.0.0:8080; outside Docker also set PROMETHEUS_MCP_BIND_HOST=0.0.0.0. Its endpoint ends in /mcp.2
Put it behind bearer auth
prometheus-mcp has no built-in authentication. Expose it through an ingress or reverse proxy that checks a bearer token, and keep that token for the next step.3
Connect in sureops
In sureops, go to Settings → Environment → Integrations and click Connect next to Prometheus.Fill in:
- Integration Name — prefilled; change it if you need to tell two configurations of this integration apart
- MCP Server Endpoint — the public URL of your
prometheus-mcpserver (ending in/mcp) - Bearer Token — the token checked by the ingress or proxy in front of
prometheus-mcp. sureops always sends this toprometheus-mcpas anAuthorization: Bearerheader, so there is no method to choose
Required credentials
Fields collected when you connect the integration:
Your Prometheus instance’s own URL, bearer token, or basic-auth credentials are never entered into sureops — they configure
prometheus-mcp, which handles authentication to Prometheus on sureops’ behalf.