What is the feature or problem you’d like to solve?
I would like to propose adding a new tool (e.g., query_prometheus or query_promql) to the observability-mcp package. This tool would allow the MCP server to execute PromQL queries directly against the Google Cloud Managed Service for Prometheus.
Currently, the server supports standard Cloud Monitoring API interactions (like listTimeSeries), but does not expose an interface for PromQL, which requires targeting the specific Prometheus compatibility endpoint (e.g., https://monitoring.googleapis.com/v1/projects/${PROJECT_ID}/location/global/prometheus/api/v1/query).
Why do you need this feature?
PromQL (Prometheus Query Language) is the de-facto industry standard for cloud-native observability. Adding support for it provides high value for several reasons:
- LLM Proficiency: LLMs are generally better at writing PromQL than Google's custom MQL (Monitoring Query Language) due to the vast amount of open-source training data. This reduces syntax errors and "hallucinations" when the agent tries to fetch metrics.
- Unified Querying: Users can use a single language to query both Google Cloud system metrics (e.g., Compute Engine) and custom application metrics (e.g., from GKE sidecars).
- User Familiarity: SREs and DevOps engineers often already have a library of PromQL queries mentally available, making natural language requests more precise (e.g., "Run this PromQL query...").
Example prompts, workflows, or additional information
Example Prompts:
- "What is the 99th percentile latency for the 'frontend' service over the last hour?"
- "Show me the rate of 5xx errors for my GKE cluster broken down by namespace."
- "Are there any pods in the 'production' namespace that have restarted more than 3 times in the last 24 hours?"
- "Compare the CPU usage of my redis instances using the standard
compute_googleapis_com:instance_cpu_utilization metric."
Implementation Details:
What is the feature or problem you’d like to solve?
I would like to propose adding a new tool (e.g.,
query_prometheusorquery_promql) to theobservability-mcppackage. This tool would allow the MCP server to execute PromQL queries directly against the Google Cloud Managed Service for Prometheus.Currently, the server supports standard Cloud Monitoring API interactions (like
listTimeSeries), but does not expose an interface for PromQL, which requires targeting the specific Prometheus compatibility endpoint (e.g.,https://monitoring.googleapis.com/v1/projects/${PROJECT_ID}/location/global/prometheus/api/v1/query).Why do you need this feature?
PromQL (Prometheus Query Language) is the de-facto industry standard for cloud-native observability. Adding support for it provides high value for several reasons:
Example prompts, workflows, or additional information
Example Prompts:
compute_googleapis_com:instance_cpu_utilizationmetric."Implementation Details:
compute.googleapis.com/instance/cpu/utilization->compute_googleapis_com:instance_cpu_utilization).References & Documentation: