Skip to content
Snippets Groups Projects
Commit 6d5b751f authored by Jan David Mol's avatar Jan David Mol
Browse files

Renewed Logs dashboard

parent e603ed84
No related branches found
No related tags found
No related merge requests found
Pipeline #49986 passed
...@@ -23,13 +23,118 @@ ...@@ -23,13 +23,118 @@
"liveNow": false, "liveNow": false,
"panels": [ "panels": [
{ {
"collapsed": false,
"gridPos": { "gridPos": {
"h": 1, "h": 1,
"w": 24, "w": 24,
"x": 0, "x": 0,
"y": 0 "y": 0
}, },
"id": 11,
"title": "All logs",
"type": "row"
},
{
"datasource": {
"type": "loki",
"uid": "loki"
},
"description": "Errors appearing in the logs of each program.",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": 3600000,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 6,
"w": 24,
"x": 0,
"y": 1
},
"id": 10,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "loki",
"uid": "loki"
},
"editorMode": "code",
"expr": "sum by (program) (count_over_time({level=\"ERROR\"}[$__interval]))",
"legendFormat": "{{program}}",
"queryType": "range",
"refId": "A"
}
],
"title": "Errors",
"type": "timeseries"
},
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 7
},
"id": 3, "id": 3,
"panels": [], "panels": [],
"title": "Selection for $program", "title": "Selection for $program",
...@@ -129,6 +234,21 @@ ...@@ -129,6 +234,21 @@
} }
} }
] ]
},
{
"matcher": {
"id": "byName",
"options": "WARN"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "yellow",
"mode": "fixed"
}
}
]
} }
] ]
}, },
...@@ -136,7 +256,7 @@ ...@@ -136,7 +256,7 @@
"h": 7, "h": 7,
"w": 24, "w": 24,
"x": 0, "x": 0,
"y": 1 "y": 8
}, },
"id": 1, "id": 1,
"interval": "5m", "interval": "5m",
...@@ -187,7 +307,7 @@ ...@@ -187,7 +307,7 @@
"h": 10, "h": 10,
"w": 24, "w": 24,
"x": 0, "x": 0,
"y": 8 "y": 15
}, },
"id": 2, "id": 2,
"options": { "options": {
...@@ -213,6 +333,7 @@ ...@@ -213,6 +333,7 @@
} }
], ],
"title": "Tail", "title": "Tail",
"transformations": [],
"type": "logs" "type": "logs"
}, },
{ {
...@@ -221,7 +342,7 @@ ...@@ -221,7 +342,7 @@
"h": 1, "h": 1,
"w": 24, "w": 24,
"x": 0, "x": 0,
"y": 18 "y": 25
}, },
"id": 7, "id": 7,
"panels": [], "panels": [],
...@@ -304,7 +425,7 @@ ...@@ -304,7 +425,7 @@
"h": 9, "h": 9,
"w": 7, "w": 7,
"x": 0, "x": 0,
"y": 19 "y": 26
}, },
"id": 8, "id": 8,
"options": { "options": {
...@@ -422,7 +543,7 @@ ...@@ -422,7 +543,7 @@
"h": 9, "h": 9,
"w": 8, "w": 8,
"x": 7, "x": 7,
"y": 19 "y": 26
}, },
"id": 5, "id": 5,
"options": { "options": {
...@@ -444,7 +565,7 @@ ...@@ -444,7 +565,7 @@
"uid": "prometheus" "uid": "prometheus"
}, },
"editorMode": "code", "editorMode": "code",
"expr": "sum by (plugin) (rate(logstash_node_plugin_events_in_total{plugin!~\"throttle|drop\"}[$__rate_interval]))", "expr": "sum by (plugin_id) (rate(logstash_node_plugin_events_in_total{plugin_id=~\"(output|input)_.*\"}[$__rate_interval]))",
"legendFormat": "{{plugin}} - {{plugin_id}}", "legendFormat": "{{plugin}} - {{plugin_id}}",
"range": true, "range": true,
"refId": "A" "refId": "A"
...@@ -541,7 +662,7 @@ ...@@ -541,7 +662,7 @@
"h": 9, "h": 9,
"w": 9, "w": 9,
"x": 15, "x": 15,
"y": 19 "y": 26
}, },
"id": 6, "id": 6,
"options": { "options": {
...@@ -586,6 +707,44 @@ ...@@ -586,6 +707,44 @@
], ],
"title": "Loki storage", "title": "Loki storage",
"type": "timeseries" "type": "timeseries"
},
{
"datasource": {
"type": "loki",
"uid": "loki"
},
"description": "Log lines that did not parse correctly in the logstash configuration.",
"gridPos": {
"h": 5,
"w": 24,
"x": 0,
"y": 35
},
"id": 9,
"options": {
"dedupStrategy": "none",
"enableLogDetails": true,
"prettifyLogMessage": false,
"showCommonLabels": true,
"showLabels": false,
"showTime": true,
"sortOrder": "Descending",
"wrapLogMessage": false
},
"targets": [
{
"datasource": {
"type": "loki",
"uid": "loki"
},
"editorMode": "code",
"expr": "{tags=~\".*parsefailure.*\"}",
"queryType": "range",
"refId": "A"
}
],
"title": "Log parse failures",
"type": "logs"
} }
], ],
"refresh": "", "refresh": "",
...@@ -599,8 +758,8 @@ ...@@ -599,8 +758,8 @@
{ {
"current": { "current": {
"selected": false, "selected": false,
"text": "grafana", "text": "l2ss-antennafield",
"value": "grafana" "value": "l2ss-antennafield"
}, },
"datasource": { "datasource": {
"type": "loki", "type": "loki",
...@@ -659,7 +818,7 @@ ...@@ -659,7 +818,7 @@
}, },
{ {
"current": { "current": {
"selected": false, "selected": true,
"text": "", "text": "",
"value": "" "value": ""
}, },
...@@ -679,7 +838,7 @@ ...@@ -679,7 +838,7 @@
] ]
}, },
"time": { "time": {
"from": "now-6h", "from": "now-1h",
"to": "now" "to": "now"
}, },
"timepicker": {}, "timepicker": {},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment