npx skills add smithery/nodnarbnitram --skill grafana-billing
nodnarbnitram/claude-code-extensions
grafana-billing
Query Prometheus and Loki billing metrics from Grafana. Use when discussing observability costs, active series, ingestion rates, storage usage, or cardinality analysis.
Installation
npx skills add nodnarbnitram/claude-code-extensions --skill grafana-billing
Similar popular skills
Related neighbors and high-traction skills in the same topics — useful to compare before installing.
Configure Grafana OSS — provisions dashboards from YAML, sets up data sources (Prometheus / Lok…
3.9K installsBuild Grafana plugin pages using the @grafana/scenes framework. Use when creating new scene pag…
2.8K installsCreate professional Grafana dashboards with visualizations, templating, and alerts. Use when bu…
482 installsSet up metrics collection and visualization with Prometheus and Grafana. Configure scrape targe…
320 installsCreate and manage production-ready Grafana dashboards for comprehensive system observability.
311 installsAlso in this package
Other skills from nodnarbnitram/claude-code-extensions · top by installs.
npx skills add nodnarbnitram/claude-code-extensions
More details
Agent compatibility
Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.
Also listed on
Alternate registries and mirrors of this skill.
Repository health
main
Skill metadata
Parsed from SKILL.md frontmatter.
Package contents
Files included with this skill beyond the listing page.
-
skill md
SKILL.md2,519 B -
docs
SUMMARY.md191 B
History
- First seen on skills.sh
- First recorded snapshot · 67 installs
SKILL.md
Grafana Billing Metrics Skill
Query key billing metrics from Prometheus and Loki through Grafana's data source proxy API.
Quick Start
# Query both staging and prod (default)
uv run .claude/skills/grafana-billing/scripts/billing_metrics.py
# Query specific environment
uv run .claude/skills/grafana-billing/scripts/billing_metrics.py --env staging
uv run .claude/skills/grafana-billing/scripts/billing_metrics.py --env prod
# JSON output for automation
uv run .claude/skills/grafana-billing/scripts/billing_metrics.py --json
# Filter to specific service
uv run .claude/skills/grafana-billing/scripts/billing_metrics.py --service prometheus
uv run .claude/skills/grafana-billing/scripts/billing_metrics.py --service loki
Environment Variables Required
GRAFANASTAGINGAPI_KEY- API key for staging Grafana workspaceGRAFANAPRODAPI_KEY- API key for prod Grafana workspace
Key Metrics Captured
Prometheus
| Metric | Description |
|---|---|
| Active Time Series | Current count of active series (billing dimension) |
| Samples/sec | Ingestion rate (DPM = samples/sec * 60) |
| TSDB Storage | On-disk storage bytes |
| Top Cardinality | Top 10 metrics by series count |
Loki
| Metric | Description |
|---|---|
| Ingestion Rate | GB/day being ingested |
| Total Bytes | Cumulative bytes received |
| Active Streams | Number of active log streams |
| Memory Chunks | Chunks held in memory |
When to Use
Use this skill when the user asks about:
- Observability billing or costs
- Active time series counts
- Prometheus cardinality analysis
- Loki ingestion rates
- Storage usage for metrics or logs
- Comparing staging vs production usage
Instructions for Claude
- Run the billing metrics script to gather current data
- Present the results in a clear, formatted way
- Highlight any concerning metrics (high cardinality, rapid growth)
- Compare staging vs prod if both are queried
- Suggest cost optimization if metrics are unusually high
Critical Rules
- Always check that API keys are set before running
- Use
--jsonflag when you need to process the output programmatically - Default to querying both environments for comparison
- Handle errors gracefully - missing data sources should not crash the script