Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

metrics-analysis

Skill by swapnildahiphale

Queries Prometheus and Grafana for metrics analysis using PromQL. Helps investigate latency, error rates, resource usage and other time-series metrics.

  • Score 73
  • 187 stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install metrics-analysis

Built from the published package, never by AI.

git clone --depth 1 https://github.com/swapnildahiphale/OpenSRE /tmp/OpenSRE && mkdir -p ~/.claude/skills && cp -r /tmp/OpenSRE/sre-agent/.claude/skills/metrics-analysis ~/.claude/skills/metrics-analysis

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install metrics-analysis in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The metrics-analysis skill gives an AI assistant tools to run PromQL queries against Prometheus, search Grafana dashboards and check firing alerts. Its scripts run with Python: query_prometheus.py, list_dashboards.py and get_alerts.py. The skill also includes a PromQL quick reference and step-by-step workflows for latency, error rate and CPU or memory investigations.

The skill is organised around the USE method for infrastructure (utilization, saturation, errors) and the RED method for services (rate, errors, duration). According to the source, credentials are injected automatically by a proxy layer, so the assistant does not need to read Prometheus or Grafana keys from environment variables. It is aimed at engineers and operators who investigate time-series metrics.

Written from the project's SKILL.md and checked against it.

What it can do

  • query_prometheus.pyExecutes PromQL queries with optional time range and step settings.
  • list_dashboards.pyFinds Grafana dashboards, optionally filtered by a search term.
  • get_alerts.pyChecks alerts, optionally filtered by state such as alerting.
  • Latency investigation workflowSteps through p95 and p50 histogram quantiles and breaks latency down by endpoint.
  • Error rate investigation workflowCalculates overall error rate, then breaks errors down by status code and service.
  • Resource investigation workflowQueries CPU usage and memory usage percentage for pods.
  • PromQL quick referenceCovers basic queries, operators, aggregations and label matching.

What you need

  • Python, since the scripts are run with python
  • Access to Prometheus and Grafana through the proxy layer described in the source

Try asking

  • Check the p95 latency of the api service over the last hour.
  • Find Grafana dashboards related to api and list them.
  • Show me which alerts are currently in the alerting state.

Good to know

  • Credentials are handled by a proxy layer, not read from environment variables.
  • Scripts are referenced from .claude/skills/metrics-analysis/scripts/.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: sre-agent/.claude/skills/metrics-analysis/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: Bash(python *)

Alternatives to metrics-analysis

All alternatives →
deploy-release-testvercel
94

Runs the full Next.js deployment test suite for an internal vercel/next.js pull request. It validates the commit's preview package, then dispatches the test_e2e_deploy_release.yml workflow. Meant for maintainers who explicitly ask for the entire suite.

AAA Skill 144k
deepeval-tracingconfident-ai
94

Instruments Python AI applications with DeepEval's native tracing so their execution appears span by span in Confident AI's Observatory. It is for developers building LLM apps, agents, RAG pipelines and chatbots.

AAA Skill 20k
azure-container-registry-cligithub
94

Manages Azure Container Registry through the az acr Azure CLI command group. It covers registries, images, cloud builds, ACR Tasks, tokens, geo-replication and networking. Built for developers and operators who work with ACR in Azure.

AAA Skill 42k
crabbox-appsopenclaw
94

Opens, runs, and shows apps on a temporary Crabbox machine, including native desktops and web previews. It is for OpenClaw users who want an app running and visible in their chat side panel.

AAA Skill 395k
gke-batch-hpcgoogle
94

Runs batch and HPC workloads on GKE using job queues and parallel processing. Aimed at teams running batch pipelines, HPC simulations, or ML training jobs on Google Kubernetes Engine.

AAA Skill 25k
gke-cost-analysisgoogle
94

Answers questions about GKE cluster and workload costs using BigQuery billing exports and live cluster metrics. Built for platform engineers and cloud teams who need to analyze and diagnose GKE spend.

AAA Skill 25k

Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli

metrics-analysis: common questions

Do I need to set up Prometheus or Grafana API keys for this skill?

The source says credentials are injected automatically by a proxy layer. It tells the assistant not to check GRAFANA_API_KEY or PROMETHEUS_URL in environment variables.

Which methods does the skill use to structure investigations?

It is built around the USE method for infrastructure and the RED method for services.

What can the skill query?

It runs PromQL queries against Prometheus, lists Grafana dashboards by search term, and checks alerts by state.

How do I install metrics-analysis?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is metrics-analysis free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is metrics-analysis safe to use?

It scores 73 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to metrics-analysis?

Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.

metrics-analysis Install

Add to stack

Loading.