quote-app/observability/grafana/provisioning/dashboards/daily-quote.json

50 lines
1.3 KiB
JSON
Raw Permalink Normal View History

{
"title": "Daily Quote — App Metrics",
"uid": "daily-quote-app",
"timezone": "browser",
"schemaVersion": 39,
"version": 1,
"refresh": "30s",
"time": { "from": "now-6h", "to": "now" },
"panels": [
{
"id": 1,
"title": "HTTP requests / sec",
"type": "timeseries",
"gridPos": { "h": 8, "w": 12, "x": 0, "y": 0 },
"targets": [
{
"expr": "sum(rate(http_request_duration_seconds_count[5m])) by (route)",
"legendFormat": "{{route}}"
}
]
},
{
"id": 2,
"title": "p95 request latency (s)",
"type": "timeseries",
"gridPos": { "h": 8, "w": 12, "x": 12, "y": 0 },
"targets": [
{
"expr": "histogram_quantile(0.95, sum(rate(http_request_duration_seconds_bucket[5m])) by (le, route))",
"legendFormat": "{{route}}"
}
]
},
{
"id": 3,
"title": "Quotes submitted (total)",
"type": "stat",
"gridPos": { "h": 8, "w": 6, "x": 0, "y": 8 },
"targets": [{ "expr": "quotes_submitted_total" }]
},
{
"id": 4,
"title": "Node.js process memory (RSS)",
"type": "timeseries",
"gridPos": { "h": 8, "w": 18, "x": 6, "y": 8 },
"targets": [{ "expr": "process_resident_memory_bytes", "legendFormat": "RSS" }]
}
]
}