metrics-graphana
Skill by slopus
Queries and manages Grafana dashboards and Prometheus metrics for the Happy infrastructure. It is aimed at operators who investigate production behavior or edit dashboards as code.
Install metrics-graphana
Built from the published package, never by AI.
git clone --depth 1 https://github.com/slopus/happy /tmp/happy && mkdir -p ~/.claude/skills && cp -r /tmp/happy/.agents/skills/metrics-graphana ~/.claude/skills/metrics-graphanaRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/slopus/happy /tmp/happy && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/happy/.agents/skills/metrics-graphana ~/.gemini/antigravity-cli/skills/metrics-graphanaAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill sets up an AI assistant as an observability operator for the Happy infrastructure. It uses the grafanactl CLI to list, pull, and push Grafana dashboards, so dashboards can be edited as JSON files on disk. It also runs instant and range PromQL queries through the Grafana datasource proxy API, which allows live investigation without opening the Grafana UI.
The skill includes a reference of Happy server application metrics, such as RPC, HTTP, WebSocket, session, and database metrics, along with example PromQL queries. It also describes how to add panels to a dashboard JSON file. It is intended for developers and operators who work on the Happy infrastructure and need to query metrics or change dashboards.
Written from the project's SKILL.md and checked against it.
What it can do
- grafanactl dashboard managementLists, pulls, and pushes Grafana dashboards and folders using the grafanactl CLI.
- Dashboard as code workflowEdits exported dashboard JSON files on disk and pushes them back, with a dry-run option.
- Instant Prometheus queriesRuns current-value PromQL queries through the Grafana Prometheus datasource proxy.
- Range Prometheus queriesFetches time series data over a start and end timestamp at a set step.
- Metric name discoveryLists all Prometheus metric names and filters them by keyword.
- Happy server metrics referenceDocuments RPC, HTTP, WebSocket, session, and database metrics with their types.
- Example PromQL queriesProvides ready-made queries for RPC success rate, latency, timeouts, and HTTP error rate.
- Panel creation guidanceExplains how to add stat, timeseries, table, and other panels to a dashboard JSON file.
- Happy server dashboard referenceIdentifies the Happy Server Application Metrics dashboard by ID and lists its panels.
What you need
- Grafana instance URL, username, and password in a repo root .env file
- Prometheus datasource UID for the Grafana instance
- grafanactl installed with go install
- Go toolchain with $HOME/go/bin on PATH
Try asking
- Show the current RPC success rate by method for the Happy server.
- Pull the Happy Server Application Metrics dashboard and add a new panel.
- Find all Prometheus metric names related to websocket connections.
Good to know
- Pushing dashboards without --omit-manager-fields locks them from UI edits.
- Written for the Happy infrastructure and its specific Grafana instance and dashboard IDs.
- Credentials are read from a local .env file that the source says is gitignored.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/metrics-graphana/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md8 KB
Alternatives to metrics-graphana
All alternatives →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.
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.
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.
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.
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.
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.
Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli
metrics-graphana: common questions
How does the skill change Grafana dashboards?
It pulls dashboards to JSON files with grafanactl, lets the assistant edit them, and pushes them back. The source recommends the --omit-manager-fields flag so the dashboards stay editable in the UI.
Can it query Prometheus without the Grafana UI?
Yes. The source shows instant and range queries sent through the Grafana datasource proxy API using curl.
Which metrics does the skill document?
It documents handy-server metrics such as rpc_calls_total, http_requests_total, websocket_connections_total, and database_records_total, with example PromQL queries.
How do I install metrics-graphana?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is metrics-graphana free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is metrics-graphana safe to use?
It scores 91 of 100. Grades: maintenance A, licence A, quality A. 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-graphana?
Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.
