Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
nodnarbnitram avatar

Grafana Billing

  • 65 installs
  • 14 repo stars
  • Updated April 20, 2026
  • nodnarbnitram/claude-code-extensions

Helps with ai & agent building tasks during AI-assisted development.

About

grafana-billing is a Claude Code skill for ai & agent building. It helps solo builders move faster with AI-assisted coding.

  • grafana-billing
  • AI & Agent Building
  • AI-coding skill

Grafana Billing by the numbers

  • 65 all-time installs (skills.sh)
  • Ranked #6,042 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Data as of Aug 4, 2026 (Skillselion catalog sync)
npx skills add https://github.com/nodnarbnitram/claude-code-extensions --skill grafana-billing

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs65
repo stars14
Last updatedApril 20, 2026
Repositorynodnarbnitram/claude-code-extensions

What it does

Helps with ai & agent building tasks during AI-assisted development.

Files

SKILL.mdMarkdownGitHub ↗

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

  • GRAFANA_STAGING_API_KEY - API key for staging Grafana workspace
  • GRAFANA_PROD_API_KEY - API key for prod Grafana workspace

Key Metrics Captured

Prometheus

MetricDescription
Active Time SeriesCurrent count of active series (billing dimension)
Samples/secIngestion rate (DPM = samples/sec * 60)
TSDB StorageOn-disk storage bytes
Top CardinalityTop 10 metrics by series count

Loki

MetricDescription
Ingestion RateGB/day being ingested
Total BytesCumulative bytes received
Active StreamsNumber of active log streams
Memory ChunksChunks 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

1. Run the billing metrics script to gather current data 2. Present the results in a clear, formatted way 3. Highlight any concerning metrics (high cardinality, rapid growth) 4. Compare staging vs prod if both are queried 5. Suggest cost optimization if metrics are unusually high

Critical Rules

  • Always check that API keys are set before running
  • Use --json flag 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

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.