Update Grafana dashboard config.

This commit is contained in:
febux 2026-09-03 01:14:56 +03:00
parent 97189c97b6
commit 748695319b
3 changed files with 565 additions and 126 deletions

View file

@ -3,11 +3,15 @@
"list": [ "list": [
{ {
"builtIn": 1, "builtIn": 1,
"datasource": { "type": "loki", "uid": "loki" }, "datasource": {
"type": "loki"
},
"enable": true, "enable": true,
"iconColor": "red", "iconColor": "red",
"name": "Log events", "name": "Log events",
"target": { "expr": "{service=~\".+\"} |~ \"(?i)error|exception|fatal|panic\"" }, "target": {
"expr": "{service=~\".+\"} |~ \"(?i)error|exception|fatal|panic\""
},
"type": "logs" "type": "logs"
} }
] ]
@ -20,9 +24,16 @@
"liveNow": false, "liveNow": false,
"panels": [ "panels": [
{ {
"datasource": { "type": "loki", "uid": "loki" }, "datasource": {
"type": "loki"
},
"description": "All application logs from the docker-compose stack. Filter by service or search for a correlation_id.", "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 }, "gridPos": {
"h": 20,
"w": 24,
"x": 0,
"y": 0
},
"id": 1, "id": 1,
"options": { "options": {
"showTime": true, "showTime": true,
@ -34,7 +45,9 @@
}, },
"targets": [ "targets": [
{ {
"datasource": { "type": "loki", "uid": "loki" }, "datasource": {
"type": "loki"
},
"expr": "{service=~\"${service:regex}\"} |= \"$query\"", "expr": "{service=~\"${service:regex}\"} |= \"$query\"",
"refId": "A" "refId": "A"
} }
@ -46,12 +59,25 @@
"refresh": "5s", "refresh": "5s",
"schemaVersion": 38, "schemaVersion": 38,
"style": "dark", "style": "dark",
"tags": ["logs", "loki"], "tags": [
"logs",
"loki"
],
"templating": { "templating": {
"list": [ "list": [
{ {
"current": { "selected": false, "text": ["All"], "value": ["$__all"] }, "current": {
"datasource": { "type": "loki", "uid": "loki" }, "selected": false,
"text": [
"All"
],
"value": [
"$__all"
]
},
"datasource": {
"type": "loki"
},
"definition": "label_values(service)", "definition": "label_values(service)",
"hide": 0, "hide": 0,
"includeAll": true, "includeAll": true,
@ -67,12 +93,20 @@
"type": "query" "type": "query"
}, },
{ {
"current": { "selected": false, "text": "", "value": "" }, "current": {
"selected": false,
"text": "",
"value": ""
},
"hide": 0, "hide": 0,
"label": "Search", "label": "Search",
"name": "query", "name": "query",
"options": [ "options": [
{ "selected": true, "text": "", "value": "" } {
"selected": true,
"text": "",
"value": ""
}
], ],
"query": "", "query": "",
"skipUrlSync": false, "skipUrlSync": false,
@ -80,10 +114,13 @@
} }
] ]
}, },
"time": { "from": "now-15m", "to": "now" }, "time": {
"from": "now-15m",
"to": "now"
},
"timepicker": {}, "timepicker": {},
"timezone": "browser", "timezone": "browser",
"title": "Contract Check — Logs", "title": "Contract Check \u2014 Logs",
"uid": "contract-check-logs", "uid": "contract-check-logs",
"version": 1, "version": 1,
"weekStart": "" "weekStart": ""

View file

@ -3,11 +3,15 @@
"list": [ "list": [
{ {
"builtIn": 1, "builtIn": 1,
"datasource": { "type": "loki", "uid": "loki" }, "datasource": {
"type": "loki"
},
"enable": true, "enable": true,
"iconColor": "red", "iconColor": "red",
"name": "Errors / exceptions", "name": "Errors / exceptions",
"target": { "expr": "{service=~\".+\"} |~ \"(?i)error|exception|fatal|panic\"" }, "target": {
"expr": "{service=~\".+\"} |~ \"(?i)error|exception|fatal|panic\""
},
"type": "logs" "type": "logs"
} }
] ]
@ -21,32 +25,78 @@
"panels": [ "panels": [
{ {
"collapsed": false, "collapsed": false,
"gridPos": { "h": 1, "w": 24, "x": 0, "y": 0 }, "gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 0
},
"id": 1, "id": 1,
"panels": [], "panels": [],
"title": "Service health", "title": "Service health",
"type": "row" "type": "row"
}, },
{ {
"datasource": { "type": "prometheus", "uid": "prometheus" }, "datasource": {
"type": "prometheus"
},
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"mappings": [ "mappings": [
{ "options": { "0": { "color": "red", "text": "Down" } }, "type": "value" }, {
{ "options": { "1": { "color": "green", "text": "Up" } }, "type": "value" } "options": {
"0": {
"color": "red",
"text": "Down"
}
},
"type": "value"
},
{
"options": {
"1": {
"color": "green",
"text": "Up"
}
},
"type": "value"
}
], ],
"thresholds": { "mode": "absolute", "steps": [{ "color": "red", "value": 0 }, { "color": "green", "value": 1 }] }, "thresholds": {
"mode": "absolute",
"steps": [
{
"color": "red",
"value": 0
},
{
"color": "green",
"value": 1
}
]
},
"unit": "none" "unit": "none"
}, },
"overrides": [] "overrides": []
}, },
"gridPos": { "h": 4, "w": 24, "x": 0, "y": 1 }, "gridPos": {
"h": 4,
"w": 24,
"x": 0,
"y": 1
},
"id": 2, "id": 2,
"options": { "options": {
"colorMode": "background", "colorMode": "background",
"graphMode": "none", "graphMode": "none",
"orientation": "auto", "orientation": "auto",
"reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false }, "reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showPercentChange": false, "showPercentChange": false,
"textMode": "auto", "textMode": "auto",
"wideLayout": true "wideLayout": true
@ -64,17 +114,26 @@
}, },
{ {
"collapsed": false, "collapsed": false,
"gridPos": { "h": 1, "w": 24, "x": 0, "y": 5 }, "gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 5
},
"id": 3, "id": 3,
"panels": [], "panels": [],
"title": "API", "title": "API",
"type": "row" "type": "row"
}, },
{ {
"datasource": { "type": "prometheus", "uid": "prometheus" }, "datasource": {
"type": "prometheus"
},
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "mode": "palette-classic" }, "color": {
"mode": "palette-classic"
},
"custom": { "custom": {
"axisBorderShow": false, "axisBorderShow": false,
"axisCenteredZero": false, "axisCenteredZero": false,
@ -85,26 +144,50 @@
"drawStyle": "line", "drawStyle": "line",
"fillOpacity": 10, "fillOpacity": 10,
"gradientMode": "none", "gradientMode": "none",
"hideFrom": { "legend": false, "tooltip": false, "viz": false }, "hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false, "insertNulls": false,
"lineInterpolation": "linear", "lineInterpolation": "linear",
"lineWidth": 1, "lineWidth": 1,
"pointSize": 5, "pointSize": 5,
"scaleDistribution": { "type": "linear" }, "scaleDistribution": {
"type": "linear"
},
"showPoints": "never", "showPoints": "never",
"spanNulls": false, "spanNulls": false,
"stacking": { "group": "A", "mode": "none" }, "stacking": {
"thresholdsStyle": { "mode": "off" } "group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
}, },
"unit": "reqps" "unit": "reqps"
}, },
"overrides": [] "overrides": []
}, },
"gridPos": { "h": 8, "w": 12, "x": 0, "y": 6 }, "gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 6
},
"id": 4, "id": 4,
"options": { "options": {
"legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "legend": {
"tooltip": { "mode": "multi", "sort": "none" } "calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
}, },
"targets": [ "targets": [
{ {
@ -117,10 +200,14 @@
"type": "timeseries" "type": "timeseries"
}, },
{ {
"datasource": { "type": "prometheus", "uid": "prometheus" }, "datasource": {
"type": "prometheus"
},
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "mode": "palette-classic" }, "color": {
"mode": "palette-classic"
},
"custom": { "custom": {
"axisBorderShow": false, "axisBorderShow": false,
"axisCenteredZero": false, "axisCenteredZero": false,
@ -131,26 +218,50 @@
"drawStyle": "line", "drawStyle": "line",
"fillOpacity": 10, "fillOpacity": 10,
"gradientMode": "none", "gradientMode": "none",
"hideFrom": { "legend": false, "tooltip": false, "viz": false }, "hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false, "insertNulls": false,
"lineInterpolation": "linear", "lineInterpolation": "linear",
"lineWidth": 1, "lineWidth": 1,
"pointSize": 5, "pointSize": 5,
"scaleDistribution": { "type": "linear" }, "scaleDistribution": {
"type": "linear"
},
"showPoints": "never", "showPoints": "never",
"spanNulls": false, "spanNulls": false,
"stacking": { "group": "A", "mode": "none" }, "stacking": {
"thresholdsStyle": { "mode": "off" } "group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
}, },
"unit": "s" "unit": "s"
}, },
"overrides": [] "overrides": []
}, },
"gridPos": { "h": 8, "w": 12, "x": 12, "y": 6 }, "gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 6
},
"id": 5, "id": 5,
"options": { "options": {
"legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "legend": {
"tooltip": { "mode": "multi", "sort": "none" } "calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
}, },
"targets": [ "targets": [
{ {
@ -173,19 +284,58 @@
"type": "timeseries" "type": "timeseries"
}, },
{ {
"datasource": { "type": "prometheus", "uid": "prometheus" }, "datasource": {
"type": "prometheus"
},
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "mode": "thresholds" }, "color": {
"custom": { "align": "auto", "cellOptions": { "type": "auto" }, "inspect": false }, "mode": "thresholds"
"thresholds": { "mode": "absolute", "steps": [{ "color": "green", "value": null }, { "color": "red", "value": 0.01 }] }, },
"custom": {
"align": "auto",
"cellOptions": {
"type": "auto"
},
"inspect": false
},
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 0.01
}
]
},
"unit": "percentunit" "unit": "percentunit"
}, },
"overrides": [] "overrides": []
}, },
"gridPos": { "h": 7, "w": 12, "x": 0, "y": 14 }, "gridPos": {
"h": 7,
"w": 12,
"x": 0,
"y": 14
},
"id": 6, "id": 6,
"options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": ["sum"], "show": false }, "showHeader": true, "sortBy": [] }, "options": {
"cellHeight": "sm",
"footer": {
"countRows": false,
"fields": "",
"reducer": [
"sum"
],
"show": false
},
"showHeader": true,
"sortBy": []
},
"pluginVersion": "11.0.0", "pluginVersion": "11.0.0",
"targets": [ "targets": [
{ {
@ -197,15 +347,28 @@
], ],
"title": "API error rate by path/status", "title": "API error rate by path/status",
"transformations": [ "transformations": [
{ "id": "organize", "options": { "excludeByName": { "Time": true }, "indexByName": {}, "renameByName": {} } } {
"id": "organize",
"options": {
"excludeByName": {
"Time": true
},
"indexByName": {},
"renameByName": {}
}
}
], ],
"type": "table" "type": "table"
}, },
{ {
"datasource": { "type": "prometheus", "uid": "prometheus" }, "datasource": {
"type": "prometheus"
},
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "mode": "palette-classic" }, "color": {
"mode": "palette-classic"
},
"custom": { "custom": {
"axisBorderShow": false, "axisBorderShow": false,
"axisCenteredZero": false, "axisCenteredZero": false,
@ -216,26 +379,50 @@
"drawStyle": "line", "drawStyle": "line",
"fillOpacity": 10, "fillOpacity": 10,
"gradientMode": "none", "gradientMode": "none",
"hideFrom": { "legend": false, "tooltip": false, "viz": false }, "hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false, "insertNulls": false,
"lineInterpolation": "linear", "lineInterpolation": "linear",
"lineWidth": 1, "lineWidth": 1,
"pointSize": 5, "pointSize": 5,
"scaleDistribution": { "type": "linear" }, "scaleDistribution": {
"type": "linear"
},
"showPoints": "never", "showPoints": "never",
"spanNulls": false, "spanNulls": false,
"stacking": { "group": "A", "mode": "none" }, "stacking": {
"thresholdsStyle": { "mode": "off" } "group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
}, },
"unit": "short" "unit": "short"
}, },
"overrides": [] "overrides": []
}, },
"gridPos": { "h": 7, "w": 12, "x": 12, "y": 14 }, "gridPos": {
"h": 7,
"w": 12,
"x": 12,
"y": 14
},
"id": 7, "id": 7,
"options": { "options": {
"legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "legend": {
"tooltip": { "mode": "multi", "sort": "none" } "calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
}, },
"targets": [ "targets": [
{ {
@ -254,17 +441,26 @@
}, },
{ {
"collapsed": false, "collapsed": false,
"gridPos": { "h": 1, "w": 24, "x": 0, "y": 21 }, "gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 21
},
"id": 8, "id": 8,
"panels": [], "panels": [],
"title": "Workers", "title": "Workers",
"type": "row" "type": "row"
}, },
{ {
"datasource": { "type": "prometheus", "uid": "prometheus" }, "datasource": {
"type": "prometheus"
},
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "mode": "palette-classic" }, "color": {
"mode": "palette-classic"
},
"custom": { "custom": {
"axisBorderShow": false, "axisBorderShow": false,
"axisCenteredZero": false, "axisCenteredZero": false,
@ -275,26 +471,50 @@
"drawStyle": "line", "drawStyle": "line",
"fillOpacity": 10, "fillOpacity": 10,
"gradientMode": "none", "gradientMode": "none",
"hideFrom": { "legend": false, "tooltip": false, "viz": false }, "hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false, "insertNulls": false,
"lineInterpolation": "linear", "lineInterpolation": "linear",
"lineWidth": 1, "lineWidth": 1,
"pointSize": 5, "pointSize": 5,
"scaleDistribution": { "type": "linear" }, "scaleDistribution": {
"type": "linear"
},
"showPoints": "never", "showPoints": "never",
"spanNulls": false, "spanNulls": false,
"stacking": { "group": "A", "mode": "none" }, "stacking": {
"thresholdsStyle": { "mode": "off" } "group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
}, },
"unit": "ops" "unit": "ops"
}, },
"overrides": [] "overrides": []
}, },
"gridPos": { "h": 8, "w": 12, "x": 0, "y": 22 }, "gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 22
},
"id": 9, "id": 9,
"options": { "options": {
"legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "legend": {
"tooltip": { "mode": "multi", "sort": "none" } "calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
}, },
"targets": [ "targets": [
{ {
@ -322,10 +542,14 @@
"type": "timeseries" "type": "timeseries"
}, },
{ {
"datasource": { "type": "prometheus", "uid": "prometheus" }, "datasource": {
"type": "prometheus"
},
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "mode": "palette-classic" }, "color": {
"mode": "palette-classic"
},
"custom": { "custom": {
"axisBorderShow": false, "axisBorderShow": false,
"axisCenteredZero": false, "axisCenteredZero": false,
@ -336,26 +560,50 @@
"drawStyle": "line", "drawStyle": "line",
"fillOpacity": 10, "fillOpacity": 10,
"gradientMode": "none", "gradientMode": "none",
"hideFrom": { "legend": false, "tooltip": false, "viz": false }, "hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false, "insertNulls": false,
"lineInterpolation": "linear", "lineInterpolation": "linear",
"lineWidth": 1, "lineWidth": 1,
"pointSize": 5, "pointSize": 5,
"scaleDistribution": { "type": "linear" }, "scaleDistribution": {
"type": "linear"
},
"showPoints": "never", "showPoints": "never",
"spanNulls": false, "spanNulls": false,
"stacking": { "group": "A", "mode": "none" }, "stacking": {
"thresholdsStyle": { "mode": "off" } "group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
}, },
"unit": "s" "unit": "s"
}, },
"overrides": [] "overrides": []
}, },
"gridPos": { "h": 8, "w": 12, "x": 12, "y": 22 }, "gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 22
},
"id": 10, "id": 10,
"options": { "options": {
"legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "legend": {
"tooltip": { "mode": "multi", "sort": "none" } "calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
}, },
"targets": [ "targets": [
{ {
@ -383,10 +631,14 @@
"type": "timeseries" "type": "timeseries"
}, },
{ {
"datasource": { "type": "prometheus", "uid": "prometheus" }, "datasource": {
"type": "prometheus"
},
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "mode": "palette-classic" }, "color": {
"mode": "palette-classic"
},
"custom": { "custom": {
"axisBorderShow": false, "axisBorderShow": false,
"axisCenteredZero": false, "axisCenteredZero": false,
@ -397,26 +649,50 @@
"drawStyle": "line", "drawStyle": "line",
"fillOpacity": 10, "fillOpacity": 10,
"gradientMode": "none", "gradientMode": "none",
"hideFrom": { "legend": false, "tooltip": false, "viz": false }, "hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false, "insertNulls": false,
"lineInterpolation": "linear", "lineInterpolation": "linear",
"lineWidth": 1, "lineWidth": 1,
"pointSize": 5, "pointSize": 5,
"scaleDistribution": { "type": "linear" }, "scaleDistribution": {
"type": "linear"
},
"showPoints": "never", "showPoints": "never",
"spanNulls": false, "spanNulls": false,
"stacking": { "group": "A", "mode": "none" }, "stacking": {
"thresholdsStyle": { "mode": "off" } "group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
}, },
"unit": "short" "unit": "short"
}, },
"overrides": [] "overrides": []
}, },
"gridPos": { "h": 7, "w": 12, "x": 0, "y": 30 }, "gridPos": {
"h": 7,
"w": 12,
"x": 0,
"y": 30
},
"id": 11, "id": 11,
"options": { "options": {
"legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "legend": {
"tooltip": { "mode": "multi", "sort": "none" } "calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
}, },
"targets": [ "targets": [
{ {
@ -434,10 +710,14 @@
"type": "timeseries" "type": "timeseries"
}, },
{ {
"datasource": { "type": "prometheus", "uid": "prometheus" }, "datasource": {
"type": "prometheus"
},
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "mode": "palette-classic" }, "color": {
"mode": "palette-classic"
},
"custom": { "custom": {
"axisBorderShow": false, "axisBorderShow": false,
"axisCenteredZero": false, "axisCenteredZero": false,
@ -448,26 +728,50 @@
"drawStyle": "line", "drawStyle": "line",
"fillOpacity": 10, "fillOpacity": 10,
"gradientMode": "none", "gradientMode": "none",
"hideFrom": { "legend": false, "tooltip": false, "viz": false }, "hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false, "insertNulls": false,
"lineInterpolation": "linear", "lineInterpolation": "linear",
"lineWidth": 1, "lineWidth": 1,
"pointSize": 5, "pointSize": 5,
"scaleDistribution": { "type": "linear" }, "scaleDistribution": {
"type": "linear"
},
"showPoints": "never", "showPoints": "never",
"spanNulls": false, "spanNulls": false,
"stacking": { "group": "A", "mode": "none" }, "stacking": {
"thresholdsStyle": { "mode": "off" } "group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
}, },
"unit": "short" "unit": "short"
}, },
"overrides": [] "overrides": []
}, },
"gridPos": { "h": 7, "w": 12, "x": 12, "y": 30 }, "gridPos": {
"h": 7,
"w": 12,
"x": 12,
"y": 30
},
"id": 12, "id": 12,
"options": { "options": {
"legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "legend": {
"tooltip": { "mode": "multi", "sort": "none" } "calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
}, },
"targets": [ "targets": [
{ {
@ -486,17 +790,26 @@
}, },
{ {
"collapsed": false, "collapsed": false,
"gridPos": { "h": 1, "w": 24, "x": 0, "y": 37 }, "gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 37
},
"id": 13, "id": 13,
"panels": [], "panels": [],
"title": "Nginx edge", "title": "Nginx edge",
"type": "row" "type": "row"
}, },
{ {
"datasource": { "type": "prometheus", "uid": "prometheus" }, "datasource": {
"type": "prometheus"
},
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "mode": "palette-classic" }, "color": {
"mode": "palette-classic"
},
"custom": { "custom": {
"axisBorderShow": false, "axisBorderShow": false,
"axisCenteredZero": false, "axisCenteredZero": false,
@ -507,26 +820,50 @@
"drawStyle": "line", "drawStyle": "line",
"fillOpacity": 10, "fillOpacity": 10,
"gradientMode": "none", "gradientMode": "none",
"hideFrom": { "legend": false, "tooltip": false, "viz": false }, "hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false, "insertNulls": false,
"lineInterpolation": "linear", "lineInterpolation": "linear",
"lineWidth": 1, "lineWidth": 1,
"pointSize": 5, "pointSize": 5,
"scaleDistribution": { "type": "linear" }, "scaleDistribution": {
"type": "linear"
},
"showPoints": "never", "showPoints": "never",
"spanNulls": false, "spanNulls": false,
"stacking": { "group": "A", "mode": "none" }, "stacking": {
"thresholdsStyle": { "mode": "off" } "group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
}, },
"unit": "reqps" "unit": "reqps"
}, },
"overrides": [] "overrides": []
}, },
"gridPos": { "h": 8, "w": 12, "x": 0, "y": 38 }, "gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 38
},
"id": 14, "id": 14,
"options": { "options": {
"legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "legend": {
"tooltip": { "mode": "multi", "sort": "none" } "calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
}, },
"targets": [ "targets": [
{ {
@ -539,10 +876,14 @@
"type": "timeseries" "type": "timeseries"
}, },
{ {
"datasource": { "type": "prometheus", "uid": "prometheus" }, "datasource": {
"type": "prometheus"
},
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "mode": "palette-classic" }, "color": {
"mode": "palette-classic"
},
"custom": { "custom": {
"axisBorderShow": false, "axisBorderShow": false,
"axisCenteredZero": false, "axisCenteredZero": false,
@ -553,26 +894,50 @@
"drawStyle": "line", "drawStyle": "line",
"fillOpacity": 10, "fillOpacity": 10,
"gradientMode": "none", "gradientMode": "none",
"hideFrom": { "legend": false, "tooltip": false, "viz": false }, "hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false, "insertNulls": false,
"lineInterpolation": "linear", "lineInterpolation": "linear",
"lineWidth": 1, "lineWidth": 1,
"pointSize": 5, "pointSize": 5,
"scaleDistribution": { "type": "linear" }, "scaleDistribution": {
"type": "linear"
},
"showPoints": "never", "showPoints": "never",
"spanNulls": false, "spanNulls": false,
"stacking": { "group": "A", "mode": "none" }, "stacking": {
"thresholdsStyle": { "mode": "off" } "group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
}, },
"unit": "short" "unit": "short"
}, },
"overrides": [] "overrides": []
}, },
"gridPos": { "h": 8, "w": 12, "x": 12, "y": 38 }, "gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 38
},
"id": 15, "id": 15,
"options": { "options": {
"legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "legend": {
"tooltip": { "mode": "multi", "sort": "none" } "calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
}, },
"targets": [ "targets": [
{ {
@ -601,16 +966,28 @@
}, },
{ {
"collapsed": false, "collapsed": false,
"gridPos": { "h": 1, "w": 24, "x": 0, "y": 46 }, "gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 46
},
"id": 16, "id": 16,
"panels": [], "panels": [],
"title": "Logs", "title": "Logs",
"type": "row" "type": "row"
}, },
{ {
"datasource": { "type": "loki", "uid": "loki" }, "datasource": {
"type": "loki"
},
"description": "Application logs filtered by the selected service. Search for correlation_id, error, etc.", "description": "Application logs filtered by the selected service. Search for correlation_id, error, etc.",
"gridPos": { "h": 12, "w": 24, "x": 0, "y": 47 }, "gridPos": {
"h": 12,
"w": 24,
"x": 0,
"y": 47
},
"id": 17, "id": 17,
"options": { "options": {
"showTime": true, "showTime": true,
@ -632,12 +1009,26 @@
], ],
"refresh": "5s", "refresh": "5s",
"schemaVersion": 39, "schemaVersion": 39,
"tags": ["services", "prometheus", "loki"], "tags": [
"services",
"prometheus",
"loki"
],
"templating": { "templating": {
"list": [ "list": [
{ {
"current": { "selected": false, "text": ["All"], "value": ["$__all"] }, "current": {
"datasource": { "type": "prometheus", "uid": "prometheus" }, "selected": false,
"text": [
"All"
],
"value": [
"$__all"
]
},
"datasource": {
"type": "prometheus"
},
"definition": "label_values(up, job)", "definition": "label_values(up, job)",
"hide": 0, "hide": 0,
"includeAll": true, "includeAll": true,
@ -653,21 +1044,34 @@
"type": "query" "type": "query"
}, },
{ {
"current": { "selected": false, "text": "", "value": "" }, "current": {
"selected": false,
"text": "",
"value": ""
},
"hide": 0, "hide": 0,
"label": "Search", "label": "Search",
"name": "query", "name": "query",
"options": [{ "selected": true, "text": "", "value": "" }], "options": [
{
"selected": true,
"text": "",
"value": ""
}
],
"query": "", "query": "",
"skipUrlSync": false, "skipUrlSync": false,
"type": "textbox" "type": "textbox"
} }
] ]
}, },
"time": { "from": "now-15m", "to": "now" }, "time": {
"from": "now-15m",
"to": "now"
},
"timepicker": {}, "timepicker": {},
"timezone": "browser", "timezone": "browser",
"title": "Contract Check — Services", "title": "Contract Check \u2014 Services",
"uid": "contract-check-services", "uid": "contract-check-services",
"version": 1, "version": 1,
"weekStart": "" "weekStart": ""

View file

@ -5,9 +5,8 @@ datasources:
type: loki type: loki
access: proxy access: proxy
url: http://loki:3100 url: http://loki:3100
uid: loki
isDefault: false isDefault: false
editable: false editable: true
jsonData: jsonData:
maxLines: 1000 maxLines: 1000
derivedFields: derivedFields:
@ -20,9 +19,8 @@ datasources:
type: prometheus type: prometheus
access: proxy access: proxy
url: http://prometheus:9090 url: http://prometheus:9090
uid: prometheus
isDefault: true isDefault: true
editable: false editable: true
jsonData: jsonData:
timeInterval: 15s timeInterval: 15s
httpMethod: POST httpMethod: POST