127 lines
2.6 KiB
JSON
127 lines
2.6 KiB
JSON
{
|
|
"annotations": {
|
|
"list": [
|
|
{
|
|
"builtIn": 1,
|
|
"datasource": {
|
|
"type": "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"
|
|
},
|
|
"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"
|
|
},
|
|
"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"
|
|
},
|
|
"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 \u2014 Logs",
|
|
"uid": "contract-check-logs",
|
|
"version": 1,
|
|
"weekStart": ""
|
|
}
|