Add Loki Alloy logging baseline
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"uid": "kallilab-container-error-rate",
|
||||
"title": "Container Error Rate",
|
||||
"schemaVersion": 39,
|
||||
"version": 1,
|
||||
"refresh": "5m",
|
||||
"time": { "from": "now-24h", "to": "now" },
|
||||
"panels": [
|
||||
{
|
||||
"id": 1,
|
||||
"type": "table",
|
||||
"title": "Container Errors Last 24h",
|
||||
"datasource": { "type": "loki", "uid": "loki" },
|
||||
"targets": [
|
||||
{
|
||||
"refId": "A",
|
||||
"expr": "sum by (container_name) (count_over_time({platform=\"docker\"} |~ \"(?i)(level=error|error|fatal|panic)\" [24h]))"
|
||||
}
|
||||
],
|
||||
"gridPos": { "h": 16, "w": 24, "x": 0, "y": 0 }
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user