metric
(string): Metric name to get metadata for
How to use it
metric is exposed by the Prometheus MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the metric tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Prometheus MCP
$
npx prometheus-mcp@latest http --port 3000Other tools in Prometheus MCP (8)
end
(string): End timestamp (RFC3339 or unix timestamp)
label
(string): Label name to get values for
query
(string): Prometheus query expression
Read-only
true
scrapePool
(string): Scrape pool name
start
(string): Start timestamp (RFC3339 or unix timestamp)
step
(string): Query resolution step width
time
(string, optional): Time parameter for the query (RFC3339 format)