Skip to main content
Glama
yanmxa

Prometheus MCP Server

by yanmxa

prom_discover

Identify and list all available metrics in Prometheus for system monitoring and performance analysis using natural language queries on the MCP server.

Instructions

Discover all available metrics

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler logic within handleToolCall for the 'prom_discover' tool. It delegates execution to the PrometheusClient's discover method.
    case 'prom_discover': { result = await prometheusClient.discover(); break; }
  • Core implementation of metric discovery by querying the Prometheus API endpoint for __name__ label values, returning a list of available metrics.
    async discover(): Promise<PrometheusResponse<string[]>> { const response = await this.client.get<PrometheusResponse<string[]>>('/api/v1/label/__name__/values'); return response.data; }
  • src/tools.ts:39-43 (registration)
    Registration of the 'prom_discover' tool in the exported tools array, including its description and input schema (no required parameters).
    { name: 'prom_discover', description: 'Discover all available metrics', inputSchema: { type: 'object', properties: {} }, },
  • Input schema for prom_discover tool: an empty object, indicating no input parameters are required.
    inputSchema: { type: 'object', properties: {} },

Other Tools

Related Tools

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

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