prometheus_runtime_info
Retrieve Prometheus runtime information to monitor system performance and health metrics through the prometheus-mcp server.
Instructions
Get Prometheus runtime information
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/prometheus/client.ts:276-279 (handler)Core handler logic for fetching Prometheus runtime information via HTTP request to the /api/v1/status/runtimeinfo endpoint using the private request method.async getRuntimeInfo(): Promise<RuntimeInfo> { const endpoint = "/api/v1/status/runtimeinfo"; return this.request<RuntimeInfo>(endpoint); }
- src/server/tools.ts:151-159 (registration)Tool registration in the tools array, defining name, schema, description, and handle function that delegates to PrometheusClient.getRuntimeInfo().defineTool<typeof EmptySchema, RuntimeInfo>({ capability: "info", name: "prometheus_runtime_info", title: "Get Runtime Info", description: "Get Prometheus runtime information", inputSchema: EmptySchema, type: "readonly", handle: async (client: PrometheusClient) => client.getRuntimeInfo(), }),
- src/types/prometheus-types.ts:14-14 (schema)Type definition for the output of the prometheus_runtime_info tool.export type RuntimeInfo = Prometheus.RuntimeInfo;
- src/server/tools.ts:76-76 (schema)Zod schema for empty input parameters, used by prometheus_runtime_info tool.const EmptySchema = z.object({});