Grafana Dashboards¶
Visualize rninja metrics with Grafana.
Sample Dashboard¶
{
"title": "rninja Cache",
"panels": [
{
"title": "Cache Hit Rate",
"type": "gauge",
"targets": [
{"expr": "rninja_cache_hit_rate"}
]
},
{
"title": "Cache Size",
"type": "graph",
"targets": [
{"expr": "rninja_cache_size_bytes"}
]
}
]
}
Key Panels¶
- Cache Hit Rate - Gauge showing current hit percentage
- Cache Size Over Time - Graph of storage growth
- Build Duration - Average build times
- Active Connections - Server connection count
Thresholds¶
| Metric | Green | Yellow | Red |
|---|---|---|---|
| Hit Rate | > 80% | 50-80% | < 50% |
| Build Time | < 1m | 1-5m | > 5m |
| Cache Size | < 80% | 80-95% | > 95% |