DealDocumentScreening/deploy/observability/grafana/dashboards/logs.json
2026-09-02 23:32:47 +03:00

90 lines
2.3 KiB
JSON

{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": { "type": "loki", "uid": "loki" },
"enable": true,
"iconColor": "red",
"name": "Log events",
"target": { "expr": "{service=~\".+\"} |~ \"(?i)error|exception|fatal|panic\"" },
"type": "logs"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": null,
"links": [],
"liveNow": false,
"panels": [
{
"datasource": { "type": "loki", "uid": "loki" },
"description": "All application logs from the docker-compose stack. Filter by service or search for a correlation_id.",
"gridPos": { "h": 20, "w": 24, "x": 0, "y": 0 },
"id": 1,
"options": {
"showTime": true,
"sortOrder": "Descending",
"wrapLogMessage": true,
"prettifyLogMessage": true,
"enableLogDetails": true,
"dedupStrategy": "none"
},
"targets": [
{
"datasource": { "type": "loki", "uid": "loki" },
"expr": "{service=~\"${service:regex}\"} |= \"$query\"",
"refId": "A"
}
],
"title": "Application logs",
"type": "logs"
}
],
"refresh": "5s",
"schemaVersion": 38,
"style": "dark",
"tags": ["logs", "loki"],
"templating": {
"list": [
{
"current": { "selected": false, "text": ["All"], "value": ["$__all"] },
"datasource": { "type": "loki", "uid": "loki" },
"definition": "label_values(service)",
"hide": 0,
"includeAll": true,
"label": "Service",
"multi": true,
"name": "service",
"options": [],
"query": "label_values(service)",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 1,
"type": "query"
},
{
"current": { "selected": false, "text": "", "value": "" },
"hide": 0,
"label": "Search",
"name": "query",
"options": [
{ "selected": true, "text": "", "value": "" }
],
"query": "",
"skipUrlSync": false,
"type": "textbox"
}
]
},
"time": { "from": "now-15m", "to": "now" },
"timepicker": {},
"timezone": "browser",
"title": "Contract Check — Logs",
"uid": "contract-check-logs",
"version": 1,
"weekStart": ""
}