# weaveworks/grafanalib

Python library for building Grafana dashboards

Repository: https://github.com/weaveworks/grafanalib
Canonical: https://ross.abutalabs.com/products/grafanalib
Language: Python
License: Apache-2.0
License Family: permissive
Topics: grafana, monitoring, edsl, dashboards
Last push: 2025-12-08T07:33:05+00:00

## Health v2 (maintenance only)
Score: 48/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 56, release rhythm 8, longevity 100
- inputs: {"age_days": 3561, "days_push": 268, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1971, forks 322 (observed 2026-08-28T04:06:00.849736+00:00)

## What it is
grafanalib is a Python library (EDSL) for programmatically building Grafana dashboards and generating their JSON configuration. It lets you version dashboards in code and reuse common patterns via Python scripts.

## Use cases
- generate grafana dashboards from python
- version control grafana dashboard configuration
- build grafana dashboards as code
- reuse dashboard patterns across teams
- automate grafana dashboard json generation

## When to choose
- you want dashboards in version control
- you repeat common dashboard patterns and want to factor them out
- you prefer Python over hand-editing dashboard JSON

## When to avoid
- you only need one-off dashboards edited in the UI
- you need cutting-edge Grafana panel types not yet supported
- you need an actively maintained project with fast turnaround

## Facets
- artifact type: library
- maturity: maintenance
- function: monitoring, developer-tools
- domain: monitoring, data-visualization
- platform: python, cli
- tags: grafana, dashboards-as-code, edsl, devops

## Member repositories
- weaveworks/grafanalib (main) score 48

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:00.849736+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:05:06.330506+00:00, confidence not recorded.
  - readme: https://github.com/weaveworks/grafanalib (fetched 2026-08-28T04:06:00.849736+00:00, sha d5293e9077e1)
  - registry_pypi: https://pypi.org/pypi/grafanalib/json (fetched 2026-08-29T10:44:34.139577+00:00, sha bdbeef7bd738)
- Data as of 2026-08-30T08:39:29.467469+00:00.
