Generate Prometheus alerting rules and Grafana dashboards from service definitions
Project description
metrics-forge
Generate Prometheus alerting rules and Grafana dashboards from service definitions.
Define services with SLOs in YAML, and metrics-forge generates production-ready Prometheus alert rules and Grafana dashboards automatically.
Features
- Rule Generation — Standard + SLO-based Prometheus alert rules per service tier
- Dashboard Generation — Grafana dashboards with request rate, latency, CPU, memory, pod panels
- Service Tiers — Critical, Standard, Best Effort with adjusted thresholds and durations
- SLO Support — Availability, Latency, Error Rate with burn rate alerting
- Rule Validation — 10 rules (MET-001 to MET-010) for alert quality
- Multi-Format Export — Prometheus YAML, Grafana JSON, report JSON
Installation
pip install -e .
Quick Start
metrics-forge demo
metrics-forge generate demo-metrics/services.yaml
metrics-forge generate demo-metrics/services.yaml -o rules.yaml -d dashboards/
metrics-forge validate demo-metrics/services.yaml
metrics-forge rules
Testing
python -m pytest tests/ -v
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file metrics_forge-1.0.0.tar.gz.
File metadata
- Download URL: metrics_forge-1.0.0.tar.gz
- Upload date:
- Size: 13.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
77473165f025e65e4a4fe3003e4fa8783ad0f0ad69449144a1855d0d549cf01e
|
|
| MD5 |
426b84efbbbfe3f9ad94b739605e4e3f
|
|
| BLAKE2b-256 |
684b4ab6bb9803d014bc9b40b73f1b06e3b67eb6dce55b6bbb1878ea154b6983
|
File details
Details for the file metrics_forge-1.0.0-py3-none-any.whl.
File metadata
- Download URL: metrics_forge-1.0.0-py3-none-any.whl
- Upload date:
- Size: 15.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b043217317f7384197d220b548d657d01612a78532ae8e46962076ed6a1df3aa
|
|
| MD5 |
ed851d1a75c418d26b276e3393dd9374
|
|
| BLAKE2b-256 |
06e6df02f424619ca42c8b052d40a3b6499e940e85a4ebabb069182d5873d002
|