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
Metadata
Release files for metrics-forge 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| metrics_forge-1.0.0.tar.gz | 13.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| metrics_forge-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 28.6 kB
Release files / metrics_forge-1.0.0.tar.gz
| Download URL | metrics_forge-1.0.0.tar.gz |
|---|---|
| Size | 13.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
77473165f025e65e4a4fe3003e4fa8783ad0f0ad69449144a1855d0d549cf01e
|
|
BLAKE2b-256 checksum How to use checksums |
684b4ab6bb9803d014bc9b40b73f1b06e3b67eb6dce55b6bbb1878ea154b6983
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.7
|
Release files / metrics_forge-1.0.0-py3-none-any.whl
| Download URL | metrics_forge-1.0.0-py3-none-any.whl |
|---|---|
| Size | 15.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b043217317f7384197d220b548d657d01612a78532ae8e46962076ed6a1df3aa
|
|
BLAKE2b-256 checksum How to use checksums |
06e6df02f424619ca42c8b052d40a3b6499e940e85a4ebabb069182d5873d002
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.7
|
Security for metrics-forge 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.