grafana-billing

Query Grafana billing metrics from Prometheus and Loki via proxy endpoints.

15|7|Updated Sep 29, 2025
One-click install
npx skills add https://github.com/nodnarbnitram/claude-code-extensions --skill grafana-billing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: grafana-billing
Source: https://github.com/nodnarbnitram/claude-code-extensions/tree/main/.claude/skills/grafana-billing
Command: npx skills add https://github.com/nodnarbnitram/claude-code-extensions --skill grafana-billing

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires httpx, python-dotenv, rich, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps you understand Grafana Cloud observability costs by collecting Prometheus active series, DPM, TSDB storage, and Loki ingestion metrics, across environments.

Core Features & Use Cases

  • Prometheus metrics: Active time series, samples/sec, TSDB storage, cardinality
  • Loki metrics: Ingestion rate, total bytes, active streams, memory chunks
  • Multi-environment support
  • Flexible output: tables or JSON for automation

Quick Start

Run uv run .claude/skills/grafana-billing/scripts/billing_metrics.py to fetch metrics. Use --env to filter environment and --json for machine-readable output.

Frequently Asked Questions about grafana-billing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I track Grafana Cloud billing costs across Prometheus and Loki?

Query Grafana billing metrics using this Skill to collect Prometheus active series, samples per second, TSDB storage, and Loki ingestion rates across environments. Results export as tables or JSON for cost analysis and capacity planning.

Can I monitor observability metrics across staging and production environments?

Yes. This Skill filters metrics by environment and service, enabling multi-environment cost comparison. Run with --env flag to isolate staging or production data separately or analyze both together.

What metrics does this Skill collect from Prometheus and Loki?

From Prometheus: active time series, samples per second, TSDB storage usage, and cardinality. From Loki: ingestion rate, total bytes ingested, active streams, and memory chunks consumed.

How do I automate Grafana billing metric collection for reporting?

Export metrics as JSON using the --json flag for machine-readable output, enabling integration into automated reporting pipelines, dashboards, or downstream analysis tools.

Does this work with Grafana Cloud's data source proxy authentication?

Yes. The Skill authenticates via Grafana API keys and queries through Grafana's data source proxy endpoints for both Prometheus and Loki, supporting secure multi-tenant access.

What do I need to run this Skill?

A Grafana Cloud account with API key access, Prometheus and Loki data sources configured, and Python environment with httpx, python-dotenv, and rich dependencies installed.