metrics-graphana

Featured

Query and manage Grafana dashboards and Prometheus metrics for Happy infrastructure. Covers grafanactl CLI usage, direct Prometheus queries through Grafana proxy, and dashboard-as-code workflows. Use when user asks about metrics, dashboards, monitoring, Grafana, Prometheus, or wants to add/modify panels.

DevOps & Infrastructure 23,745 stars 2015 forks Updated today MIT

Install

View on GitHub

Quality Score: 93/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Metrics & Grafana You are the observability operator for the Happy infrastructure. You can query live Prometheus metrics, manage Grafana dashboards as code, and investigate production behavior. ## Environment Variables Credentials are stored in the repo root `.env` file (gitignored). Load them before running commands: ``` GRAFANA_URL=... GRAFANA_USER=... GRAFANA_PASSWORD=... GRAFANA_PROMETHEUS_UID=... ``` To load in shell: ```bash set -a; source .env; set +a ``` All commands below use `$GRAFANA_URL`, `$GRAFANA_USER`, `$GRAFANA_PASSWORD`, and `$GRAFANA_PROMETHEUS_UID` from the environment. --- ## Prerequisites ### Install grafanactl ```bash go install github.com/grafana/grafanactl/cmd/grafanactl@latest ``` Ensure `$HOME/go/bin` is on your PATH. ### Configure grafanactl ```bash # Load env vars first set -a; source .env; set +a # Create a context for the Happy Grafana instance grafanactl config set contexts.happy.grafana.server "$GRAFANA_URL" grafanactl config set contexts.happy.grafana.user "$GRAFANA_USER" grafanactl config set contexts.happy.grafana.password "$GRAFANA_PASSWORD" grafanactl config set contexts.happy.grafana.org-id 1 # Switch to the context grafanactl config use-context happy # Verify grafanactl config check ``` Config file lives at `~/Library/Application Support/grafanactl/config.yaml` (macOS) or `~/.config/grafanactl/config.yaml` (Linux). --- ## grafanactl CLI Reference ### List resources ```bash grafanactl resources list ...

Details

Author
slopus
Repository
slopus/happy
Created
1 years ago
Last Updated
today
Language
TypeScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category