Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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); }
  • 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(), }),
  • Type definition for the output of the prometheus_runtime_info tool.
    export type RuntimeInfo = Prometheus.RuntimeInfo;
  • Zod schema for empty input parameters, used by prometheus_runtime_info tool.
    const EmptySchema = z.object({});

Latest Blog Posts

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/idanfishman/prometheus-mcp'

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