Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docker-compose/technical/grafana/dashboards/logs.json
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
"showCommonLabels": false,
"showLabels": false,
"showTime": false,
"sortOrder": "Descending",
"sortOrder": "Ascending",
"wrapLogMessage": true
},
"targets": [
Expand All @@ -183,7 +183,7 @@
"uid": "${datasource}"
},
"editorMode": "code",
"expr": "{pod=\"$pod\"} |~ \"$search\"",
"expr": "{pod=\"$pod\"} |~ \"$search\" | pattern \"<r> stdout F <message>\" | line_format \"{{.message}}\"",
"maxLines": 5000,
"queryType": "range",
"refId": "A"
Expand Down
131 changes: 126 additions & 5 deletions docker-compose/technical/grafana/dashboards/pods_supervision.json
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,7 @@
"disableTextWrap": false,
"editorMode": "code",
"exemplar": false,
"expr": "kube_pod_created{pod!~\".*cronjob.*\"} * 1000",
"expr": "kube_pod_created * 1000",
"format": "table",
"fullMetaSearch": false,
"hide": false,
Expand Down Expand Up @@ -883,6 +883,22 @@
]
}
}
},
{
"id": "filterByValue",
"options": {
"filters": [
{
"config": {
"id": "isNull",
"options": {}
},
"fieldName": "Value #CPU Usage"
}
],
"match": "any",
"type": "exclude"
}
}
],
"type": "table"
Expand Down Expand Up @@ -1117,6 +1133,13 @@
}
},
"fieldName": "last termination reason"
},
{
"config": {
"id": "isNotNull",
"options": {}
},
"fieldName": "last termination reason"
}
],
"match": "all",
Expand Down Expand Up @@ -1183,7 +1206,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
Expand Down Expand Up @@ -1277,7 +1301,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
Expand Down Expand Up @@ -1371,7 +1396,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
Expand Down Expand Up @@ -1408,7 +1434,7 @@
"uid": "${datasource}"
},
"editorMode": "code",
"expr": "(kube_pod_container_status_restarts_total - kube_pod_container_status_restarts_total offset 10m >= 1) and ignoring (reason) min_over_time(kube_pod_container_status_last_terminated_reason{reason=\"OOMKilled\"}[10m]) == 1",
"expr": "(kube_pod_container_status_restarts_total - kube_pod_container_status_restarts_total offset 10m) and ignoring (reason) min_over_time(kube_pod_container_status_last_terminated_reason{reason=\"OOMKilled\"}[10m]) == 1",
"instant": false,
"legendFormat": "{{pod}}",
"range": true,
Expand All @@ -1417,6 +1443,101 @@
],
"title": "OOMKilled events",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "$datasource"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"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": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 33
},
"id": 53,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"editorMode": "code",
"expr": "(kube_pod_container_status_restarts_total - kube_pod_container_status_restarts_total offset 10m) and ignoring (reason) min_over_time(kube_pod_container_status_last_terminated_reason{reason=\"Error\"}[10m]) == 1",
"instant": false,
"legendFormat": "{{pod}}",
"range": true,
"refId": "A"
}
],
"title": "Error events",
"type": "timeseries"
}
],
"title": "Detailed infos",
Expand Down
10 changes: 5 additions & 5 deletions docker-compose/technical/grafana/dashboards/users_metrics.json
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,9 @@
},
"editorMode": "code",
"exemplar": true,
"expr": "count(count by (user) (app_users))",
"expr": "count(count by (user) (app_users)) OR on() vector(0)",
"interval": "",
"legendFormat": "",
"legendFormat": "User count",
"range": true,
"refId": "A"
}
Expand Down Expand Up @@ -256,14 +256,14 @@
},
"editorMode": "code",
"exemplar": true,
"expr": "sum(app_users)",
"expr": "sum(app_users) OR on() vector(0)",
"interval": "",
"legendFormat": "",
"legendFormat": "Connection count",
"range": true,
"refId": "A"
}
],
"title": "Connexion count",
"title": "Connection count",
"type": "timeseries"
},
{
Expand Down