Files
grafana-dashboards/node-logs.json

288 lines
6.6 KiB
JSON

{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"description": "Node logs",
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 20,
"links": [],
"liveNow": true,
"panels": [
{
"datasource": {
"type": "loki",
"uid": "loki"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "bars",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": 0
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 5,
"w": 24,
"x": 0,
"y": 0
},
"id": 4,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": false
},
"tooltip": {
"hideZeros": false,
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "12.1.0",
"targets": [
{
"datasource": {
"type": "loki",
"uid": "loki"
},
"direction": "backward",
"editorMode": "code",
"expr": "sum(count_over_time({cluster=~\"$cluster\", instance=~\"$Node\", job=~\"integrations/kubernetes/journal\"} |~ \"$search\"[$__interval]))",
"instant": false,
"legendFormat": "Log count",
"queryType": "range",
"range": true,
"refId": "A"
}
],
"title": "Log count",
"type": "timeseries"
},
{
"datasource": {
"type": "loki",
"uid": "loki"
},
"fieldConfig": {
"defaults": {},
"overrides": []
},
"gridPos": {
"h": 16,
"w": 24,
"x": 0,
"y": 5
},
"id": 3,
"options": {
"dedupStrategy": "exact",
"enableInfiniteScrolling": false,
"enableLogDetails": true,
"prettifyLogMessage": false,
"showCommonLabels": false,
"showLabels": true,
"showTime": true,
"sortOrder": "Descending",
"wrapLogMessage": true
},
"pluginVersion": "12.1.0",
"targets": [
{
"datasource": {
"type": "loki",
"uid": "loki"
},
"direction": "backward",
"editorMode": "code",
"expr": "{cluster=~\"$cluster\", instance=~\"$Node\", job=~\"integrations/kubernetes/journal\"} |~ `(?i)$search`",
"queryType": "range",
"refId": "A"
}
],
"title": "Logs Panel",
"type": "logs"
}
],
"preload": false,
"refresh": "10s",
"schemaVersion": 41,
"tags": [],
"templating": {
"list": [
{
"allValue": ".+",
"current": {
"text": "All",
"value": "$__all"
},
"datasource": {
"type": "loki",
"uid": "loki"
},
"definition": "",
"description": "",
"includeAll": true,
"label": "Cluster",
"name": "cluster",
"options": [],
"query": {
"label": "cluster",
"refId": "LokiVariableQueryEditor-VariableQuery",
"stream": "",
"type": 1
},
"refresh": 1,
"regex": "",
"type": "query"
},
{
"allValue": ".+",
"current": {
"text": "All",
"value": "$__all"
},
"datasource": {
"type": "loki",
"uid": "loki"
},
"definition": "",
"includeAll": true,
"label": "Node",
"name": "Node",
"options": [],
"query": {
"label": "node",
"refId": "LokiVariableQueryEditor-VariableQuery",
"stream": "{cluster=~\"$cluster\"}",
"type": 1
},
"refresh": 1,
"regex": "",
"type": "query"
},
{
"current": {
"text": "warn|error|fatal",
"value": "warn|error|fatal"
},
"includeAll": false,
"label": "Search Term",
"name": "search",
"options": [
{
"selected": false,
"text": "error|fatal",
"value": "error|fatal"
},
{
"selected": true,
"text": "warn|error|fatal",
"value": "warn|error|fatal"
},
{
"selected": false,
"text": "fatal",
"value": "fatal"
},
{
"selected": false,
"text": "error",
"value": "error"
},
{
"selected": false,
"text": "warn",
"value": "warn"
},
{
"selected": false,
"text": "info",
"value": "info"
},
{
"selected": false,
"text": ".+",
"value": ".+"
}
],
"query": "error|fatal,warn|error|fatal,fatal,error,warn,info,.+",
"type": "custom"
}
]
},
"time": {
"from": "now-6h",
"to": "now"
},
"timepicker": {},
"timezone": "",
"title": "Node logs",
"uid": "ae3ec2c4-1c19-4450-9403-226270fe0c4f",
"version": 14
}