585 lines
14 KiB
JSON
585 lines
14 KiB
JSON
|
|
{
|
||
|
|
"annotations": {
|
||
|
|
"list": [
|
||
|
|
{
|
||
|
|
"builtIn": 1,
|
||
|
|
"datasource": "-- Grafana --",
|
||
|
|
"enable": true,
|
||
|
|
"hide": true,
|
||
|
|
"iconColor": "rgba(0, 211, 255, 1)",
|
||
|
|
"name": "Annotations & Alerts",
|
||
|
|
"type": "dashboard"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"editable": true,
|
||
|
|
"gnetId": null,
|
||
|
|
"graphTooltip": 0,
|
||
|
|
"id": null,
|
||
|
|
"links": [],
|
||
|
|
"panels": [
|
||
|
|
{
|
||
|
|
"datasource": "Prometheus",
|
||
|
|
"fieldConfig": {
|
||
|
|
"defaults": {
|
||
|
|
"color": {
|
||
|
|
"mode": "thresholds"
|
||
|
|
},
|
||
|
|
"mappings": [
|
||
|
|
{
|
||
|
|
"options": {
|
||
|
|
"0": {
|
||
|
|
"color": "red",
|
||
|
|
"index": 0,
|
||
|
|
"text": "Down"
|
||
|
|
},
|
||
|
|
"1": {
|
||
|
|
"color": "green",
|
||
|
|
"index": 1,
|
||
|
|
"text": "Running"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"type": "value"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"thresholds": {
|
||
|
|
"mode": "absolute",
|
||
|
|
"steps": [
|
||
|
|
{
|
||
|
|
"color": "red",
|
||
|
|
"value": null
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"color": "green",
|
||
|
|
"value": 1
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"unit": "none"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"gridPos": {
|
||
|
|
"h": 4,
|
||
|
|
"w": 6,
|
||
|
|
"x": 0,
|
||
|
|
"y": 0
|
||
|
|
},
|
||
|
|
"id": 1,
|
||
|
|
"options": {
|
||
|
|
"colorMode": "background",
|
||
|
|
"graphMode": "none",
|
||
|
|
"justifyMode": "auto",
|
||
|
|
"orientation": "auto",
|
||
|
|
"reduceOptions": {
|
||
|
|
"calcs": [
|
||
|
|
"lastNotNull"
|
||
|
|
],
|
||
|
|
"fields": "",
|
||
|
|
"values": false
|
||
|
|
},
|
||
|
|
"textMode": "auto"
|
||
|
|
},
|
||
|
|
"pluginVersion": "8.0.0",
|
||
|
|
"targets": [
|
||
|
|
{
|
||
|
|
"expr": "kube_pod_status_phase{namespace=\"mail\", pod=~\"stalwart-.*\", phase=\"Running\"}",
|
||
|
|
"refId": "A"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "Pod Status",
|
||
|
|
"type": "stat"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"datasource": "Prometheus",
|
||
|
|
"fieldConfig": {
|
||
|
|
"defaults": {
|
||
|
|
"color": {
|
||
|
|
"mode": "thresholds"
|
||
|
|
},
|
||
|
|
"mappings": [],
|
||
|
|
"thresholds": {
|
||
|
|
"mode": "absolute",
|
||
|
|
"steps": [
|
||
|
|
{
|
||
|
|
"color": "green",
|
||
|
|
"value": null
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"color": "yellow",
|
||
|
|
"value": 1
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"color": "red",
|
||
|
|
"value": 5
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"unit": "none"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"gridPos": {
|
||
|
|
"h": 4,
|
||
|
|
"w": 6,
|
||
|
|
"x": 6,
|
||
|
|
"y": 0
|
||
|
|
},
|
||
|
|
"id": 2,
|
||
|
|
"options": {
|
||
|
|
"colorMode": "background",
|
||
|
|
"graphMode": "area",
|
||
|
|
"justifyMode": "auto",
|
||
|
|
"orientation": "auto",
|
||
|
|
"reduceOptions": {
|
||
|
|
"calcs": [
|
||
|
|
"lastNotNull"
|
||
|
|
],
|
||
|
|
"fields": "",
|
||
|
|
"values": false
|
||
|
|
},
|
||
|
|
"textMode": "auto"
|
||
|
|
},
|
||
|
|
"pluginVersion": "8.0.0",
|
||
|
|
"targets": [
|
||
|
|
{
|
||
|
|
"expr": "kube_pod_container_status_restarts_total{namespace=\"mail\", pod=~\"stalwart-.*\"}",
|
||
|
|
"refId": "A"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "Container Restarts",
|
||
|
|
"type": "stat"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"datasource": "Prometheus",
|
||
|
|
"fieldConfig": {
|
||
|
|
"defaults": {
|
||
|
|
"color": {
|
||
|
|
"mode": "thresholds"
|
||
|
|
},
|
||
|
|
"mappings": [],
|
||
|
|
"max": 100,
|
||
|
|
"min": 0,
|
||
|
|
"thresholds": {
|
||
|
|
"mode": "absolute",
|
||
|
|
"steps": [
|
||
|
|
{
|
||
|
|
"color": "green",
|
||
|
|
"value": null
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"color": "yellow",
|
||
|
|
"value": 75
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"color": "red",
|
||
|
|
"value": 90
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"unit": "percent"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"gridPos": {
|
||
|
|
"h": 4,
|
||
|
|
"w": 6,
|
||
|
|
"x": 12,
|
||
|
|
"y": 0
|
||
|
|
},
|
||
|
|
"id": 3,
|
||
|
|
"options": {
|
||
|
|
"orientation": "auto",
|
||
|
|
"reduceOptions": {
|
||
|
|
"calcs": [
|
||
|
|
"lastNotNull"
|
||
|
|
],
|
||
|
|
"fields": "",
|
||
|
|
"values": false
|
||
|
|
},
|
||
|
|
"showThresholdLabels": false,
|
||
|
|
"showThresholdMarkers": true
|
||
|
|
},
|
||
|
|
"pluginVersion": "8.0.0",
|
||
|
|
"targets": [
|
||
|
|
{
|
||
|
|
"expr": "(kubelet_volume_stats_used_bytes{namespace=\"mail\", persistentvolumeclaim=\"stalwart-data\"} / kubelet_volume_stats_capacity_bytes{namespace=\"mail\", persistentvolumeclaim=\"stalwart-data\"}) * 100",
|
||
|
|
"refId": "A"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "Disk Usage (20Gi PVC)",
|
||
|
|
"type": "gauge"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"datasource": "Prometheus",
|
||
|
|
"fieldConfig": {
|
||
|
|
"defaults": {
|
||
|
|
"color": {
|
||
|
|
"mode": "thresholds"
|
||
|
|
},
|
||
|
|
"mappings": [],
|
||
|
|
"max": 100,
|
||
|
|
"min": 0,
|
||
|
|
"thresholds": {
|
||
|
|
"mode": "absolute",
|
||
|
|
"steps": [
|
||
|
|
{
|
||
|
|
"color": "green",
|
||
|
|
"value": null
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"color": "yellow",
|
||
|
|
"value": 75
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"color": "red",
|
||
|
|
"value": 85
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"unit": "percent"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"gridPos": {
|
||
|
|
"h": 4,
|
||
|
|
"w": 6,
|
||
|
|
"x": 18,
|
||
|
|
"y": 0
|
||
|
|
},
|
||
|
|
"id": 4,
|
||
|
|
"options": {
|
||
|
|
"orientation": "auto",
|
||
|
|
"reduceOptions": {
|
||
|
|
"calcs": [
|
||
|
|
"lastNotNull"
|
||
|
|
],
|
||
|
|
"fields": "",
|
||
|
|
"values": false
|
||
|
|
},
|
||
|
|
"showThresholdLabels": false,
|
||
|
|
"showThresholdMarkers": true
|
||
|
|
},
|
||
|
|
"pluginVersion": "8.0.0",
|
||
|
|
"targets": [
|
||
|
|
{
|
||
|
|
"expr": "(container_memory_working_set_bytes{namespace=\"mail\", pod=~\"stalwart-.*\", container=\"stalwart\"} / container_spec_memory_limit_bytes{namespace=\"mail\", pod=~\"stalwart-.*\", container=\"stalwart\"}) * 100",
|
||
|
|
"refId": "A"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "Memory Usage",
|
||
|
|
"type": "gauge"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"datasource": "Prometheus",
|
||
|
|
"fieldConfig": {
|
||
|
|
"defaults": {
|
||
|
|
"color": {
|
||
|
|
"mode": "palette-classic"
|
||
|
|
},
|
||
|
|
"custom": {
|
||
|
|
"axisLabel": "",
|
||
|
|
"axisPlacement": "auto",
|
||
|
|
"barAlignment": 0,
|
||
|
|
"drawStyle": "line",
|
||
|
|
"fillOpacity": 10,
|
||
|
|
"gradientMode": "none",
|
||
|
|
"hideFrom": {
|
||
|
|
"tooltip": false,
|
||
|
|
"viz": false,
|
||
|
|
"legend": false
|
||
|
|
},
|
||
|
|
"lineInterpolation": "linear",
|
||
|
|
"lineWidth": 1,
|
||
|
|
"pointSize": 5,
|
||
|
|
"scaleDistribution": {
|
||
|
|
"type": "linear"
|
||
|
|
},
|
||
|
|
"showPoints": "never",
|
||
|
|
"spanNulls": true
|
||
|
|
},
|
||
|
|
"mappings": [],
|
||
|
|
"thresholds": {
|
||
|
|
"mode": "absolute",
|
||
|
|
"steps": [
|
||
|
|
{
|
||
|
|
"color": "green",
|
||
|
|
"value": null
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"unit": "percentunit"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"gridPos": {
|
||
|
|
"h": 8,
|
||
|
|
"w": 12,
|
||
|
|
"x": 0,
|
||
|
|
"y": 4
|
||
|
|
},
|
||
|
|
"id": 5,
|
||
|
|
"options": {
|
||
|
|
"legend": {
|
||
|
|
"calcs": [],
|
||
|
|
"displayMode": "list",
|
||
|
|
"placement": "bottom"
|
||
|
|
},
|
||
|
|
"tooltip": {
|
||
|
|
"mode": "multi"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"pluginVersion": "8.0.0",
|
||
|
|
"targets": [
|
||
|
|
{
|
||
|
|
"expr": "rate(container_cpu_usage_seconds_total{namespace=\"mail\", pod=~\"stalwart-.*\", container=\"stalwart\"}[5m]) / (container_spec_cpu_quota{namespace=\"mail\", pod=~\"stalwart-.*\", container=\"stalwart\"} / container_spec_cpu_period{namespace=\"mail\", pod=~\"stalwart-.*\", container=\"stalwart\"})",
|
||
|
|
"legendFormat": "CPU Usage",
|
||
|
|
"refId": "A"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "CPU Usage Over Time",
|
||
|
|
"type": "timeseries"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"datasource": "Prometheus",
|
||
|
|
"fieldConfig": {
|
||
|
|
"defaults": {
|
||
|
|
"color": {
|
||
|
|
"mode": "palette-classic"
|
||
|
|
},
|
||
|
|
"custom": {
|
||
|
|
"axisLabel": "",
|
||
|
|
"axisPlacement": "auto",
|
||
|
|
"barAlignment": 0,
|
||
|
|
"drawStyle": "line",
|
||
|
|
"fillOpacity": 10,
|
||
|
|
"gradientMode": "none",
|
||
|
|
"hideFrom": {
|
||
|
|
"tooltip": false,
|
||
|
|
"viz": false,
|
||
|
|
"legend": false
|
||
|
|
},
|
||
|
|
"lineInterpolation": "linear",
|
||
|
|
"lineWidth": 1,
|
||
|
|
"pointSize": 5,
|
||
|
|
"scaleDistribution": {
|
||
|
|
"type": "linear"
|
||
|
|
},
|
||
|
|
"showPoints": "never",
|
||
|
|
"spanNulls": true
|
||
|
|
},
|
||
|
|
"mappings": [],
|
||
|
|
"thresholds": {
|
||
|
|
"mode": "absolute",
|
||
|
|
"steps": [
|
||
|
|
{
|
||
|
|
"color": "green",
|
||
|
|
"value": null
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"unit": "bytes"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"gridPos": {
|
||
|
|
"h": 8,
|
||
|
|
"w": 12,
|
||
|
|
"x": 12,
|
||
|
|
"y": 4
|
||
|
|
},
|
||
|
|
"id": 6,
|
||
|
|
"options": {
|
||
|
|
"legend": {
|
||
|
|
"calcs": [],
|
||
|
|
"displayMode": "list",
|
||
|
|
"placement": "bottom"
|
||
|
|
},
|
||
|
|
"tooltip": {
|
||
|
|
"mode": "multi"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"pluginVersion": "8.0.0",
|
||
|
|
"targets": [
|
||
|
|
{
|
||
|
|
"expr": "container_memory_working_set_bytes{namespace=\"mail\", pod=~\"stalwart-.*\", container=\"stalwart\"}",
|
||
|
|
"legendFormat": "Memory Usage",
|
||
|
|
"refId": "A"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"expr": "container_spec_memory_limit_bytes{namespace=\"mail\", pod=~\"stalwart-.*\", container=\"stalwart\"}",
|
||
|
|
"legendFormat": "Memory Limit",
|
||
|
|
"refId": "B"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "Memory Usage Over Time",
|
||
|
|
"type": "timeseries"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"datasource": "Prometheus",
|
||
|
|
"fieldConfig": {
|
||
|
|
"defaults": {
|
||
|
|
"color": {
|
||
|
|
"mode": "palette-classic"
|
||
|
|
},
|
||
|
|
"custom": {
|
||
|
|
"axisLabel": "",
|
||
|
|
"axisPlacement": "auto",
|
||
|
|
"barAlignment": 0,
|
||
|
|
"drawStyle": "line",
|
||
|
|
"fillOpacity": 10,
|
||
|
|
"gradientMode": "none",
|
||
|
|
"hideFrom": {
|
||
|
|
"tooltip": false,
|
||
|
|
"viz": false,
|
||
|
|
"legend": false
|
||
|
|
},
|
||
|
|
"lineInterpolation": "linear",
|
||
|
|
"lineWidth": 1,
|
||
|
|
"pointSize": 5,
|
||
|
|
"scaleDistribution": {
|
||
|
|
"type": "linear"
|
||
|
|
},
|
||
|
|
"showPoints": "never",
|
||
|
|
"spanNulls": true
|
||
|
|
},
|
||
|
|
"mappings": [],
|
||
|
|
"thresholds": {
|
||
|
|
"mode": "absolute",
|
||
|
|
"steps": [
|
||
|
|
{
|
||
|
|
"color": "green",
|
||
|
|
"value": null
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"unit": "bytes"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"gridPos": {
|
||
|
|
"h": 8,
|
||
|
|
"w": 12,
|
||
|
|
"x": 0,
|
||
|
|
"y": 12
|
||
|
|
},
|
||
|
|
"id": 7,
|
||
|
|
"options": {
|
||
|
|
"legend": {
|
||
|
|
"calcs": [
|
||
|
|
"lastNotNull"
|
||
|
|
],
|
||
|
|
"displayMode": "table",
|
||
|
|
"placement": "bottom"
|
||
|
|
},
|
||
|
|
"tooltip": {
|
||
|
|
"mode": "multi"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"pluginVersion": "8.0.0",
|
||
|
|
"targets": [
|
||
|
|
{
|
||
|
|
"expr": "kubelet_volume_stats_used_bytes{namespace=\"mail\", persistentvolumeclaim=\"stalwart-data\"}",
|
||
|
|
"legendFormat": "Used Space",
|
||
|
|
"refId": "A"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"expr": "kubelet_volume_stats_capacity_bytes{namespace=\"mail\", persistentvolumeclaim=\"stalwart-data\"}",
|
||
|
|
"legendFormat": "Total Capacity (20Gi)",
|
||
|
|
"refId": "B"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"expr": "kubelet_volume_stats_available_bytes{namespace=\"mail\", persistentvolumeclaim=\"stalwart-data\"}",
|
||
|
|
"legendFormat": "Available Space",
|
||
|
|
"refId": "C"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "Disk Space Over Time (Encrypted Volume)",
|
||
|
|
"type": "timeseries"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"datasource": "Prometheus",
|
||
|
|
"fieldConfig": {
|
||
|
|
"defaults": {
|
||
|
|
"color": {
|
||
|
|
"mode": "palette-classic"
|
||
|
|
},
|
||
|
|
"custom": {
|
||
|
|
"axisLabel": "",
|
||
|
|
"axisPlacement": "auto",
|
||
|
|
"barAlignment": 0,
|
||
|
|
"drawStyle": "line",
|
||
|
|
"fillOpacity": 10,
|
||
|
|
"gradientMode": "none",
|
||
|
|
"hideFrom": {
|
||
|
|
"tooltip": false,
|
||
|
|
"viz": false,
|
||
|
|
"legend": false
|
||
|
|
},
|
||
|
|
"lineInterpolation": "linear",
|
||
|
|
"lineWidth": 1,
|
||
|
|
"pointSize": 5,
|
||
|
|
"scaleDistribution": {
|
||
|
|
"type": "linear"
|
||
|
|
},
|
||
|
|
"showPoints": "never",
|
||
|
|
"spanNulls": true
|
||
|
|
},
|
||
|
|
"mappings": [],
|
||
|
|
"thresholds": {
|
||
|
|
"mode": "absolute",
|
||
|
|
"steps": [
|
||
|
|
{
|
||
|
|
"color": "green",
|
||
|
|
"value": null
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"unit": "none"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"gridPos": {
|
||
|
|
"h": 8,
|
||
|
|
"w": 12,
|
||
|
|
"x": 12,
|
||
|
|
"y": 12
|
||
|
|
},
|
||
|
|
"id": 8,
|
||
|
|
"options": {
|
||
|
|
"legend": {
|
||
|
|
"calcs": [],
|
||
|
|
"displayMode": "list",
|
||
|
|
"placement": "bottom"
|
||
|
|
},
|
||
|
|
"tooltip": {
|
||
|
|
"mode": "multi"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"pluginVersion": "8.0.0",
|
||
|
|
"targets": [
|
||
|
|
{
|
||
|
|
"expr": "kubelet_volume_stats_inodes_used{namespace=\"mail\", persistentvolumeclaim=\"stalwart-data\"}",
|
||
|
|
"legendFormat": "Inodes Used",
|
||
|
|
"refId": "A"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"expr": "kubelet_volume_stats_inodes{namespace=\"mail\", persistentvolumeclaim=\"stalwart-data\"}",
|
||
|
|
"legendFormat": "Total Inodes",
|
||
|
|
"refId": "B"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "Disk Inodes Usage",
|
||
|
|
"type": "timeseries"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"refresh": "30s",
|
||
|
|
"schemaVersion": 27,
|
||
|
|
"style": "dark",
|
||
|
|
"tags": ["stalwart", "mail", "kubernetes"],
|
||
|
|
"templating": {
|
||
|
|
"list": []
|
||
|
|
},
|
||
|
|
"time": {
|
||
|
|
"from": "now-6h",
|
||
|
|
"to": "now"
|
||
|
|
},
|
||
|
|
"timepicker": {},
|
||
|
|
"timezone": "",
|
||
|
|
"title": "Stalwart Mail Server",
|
||
|
|
"uid": "stalwart-mail",
|
||
|
|
"version": 1
|
||
|
|
}
|