Promql Generator

🌐Community
by akin-ozer · vlatest · Repository

Generates PromQL queries automatically based on your descriptions, streamlining monitoring and alerting setup.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add promql-generator npx -- -y @trustedskills/promql-generator
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "promql-generator": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/promql-generator"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

The promql-generator skill generates PromQL (Prometheus Query Language) queries based on natural language descriptions. It translates requests for metrics and data from time-series databases into executable PromQL statements. This allows users to retrieve specific information about system performance without needing to know the intricacies of PromQL syntax.

When to use it

  • Monitoring System Performance: Generate queries to identify resource bottlenecks or unusual behavior in a Kubernetes cluster.
  • Troubleshooting Application Issues: Quickly create PromQL queries to investigate error rates, latency spikes, and other application-specific metrics.
  • Creating Dashboards: Automate the generation of PromQL expressions for use in Grafana dashboards or other visualization tools.
  • Learning Prometheus: Use it as a tool to understand how natural language requests are translated into PromQL queries.

Key capabilities

  • Generates PromQL queries from natural language input.
  • Supports querying metrics from time-series databases (specifically, Prometheus).
  • Can handle complex query requirements involving aggregations and filtering.

Example prompts

  • "Show me the average CPU usage of all pods in the 'production' namespace."
  • "What is the 95th percentile latency for requests to the API server over the last hour?"
  • "Give me a query that counts the number of errors returned by my web application."

Tips & gotchas

The skill’s effectiveness depends on clear and specific natural language descriptions. Ambiguous prompts may result in inaccurate or incomplete PromQL queries, so be as precise as possible when describing your data needs.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
akin-ozer
Installs
18

🌐 Community

Passed automated security scans.