diff --git a/grafana/dashboards/dns-sanity.json b/grafana/dashboards/dns-sanity.json
index e68bf74..50980bd 100644
--- a/grafana/dashboards/dns-sanity.json
+++ b/grafana/dashboards/dns-sanity.json
@@ -24,7 +24,7 @@
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
- "id": 5,
+ "id": 1,
"links": [],
"liveNow": false,
"panels": [
@@ -733,6 +733,6 @@
"timezone": "",
"title": "DNS sanity",
"uid": "dnsy",
- "version": 2,
+ "version": 8,
"weekStart": ""
}
diff --git a/grafana/dashboards/dovecot.json b/grafana/dashboards/dovecot.json
index e596570..51259ec 100644
--- a/grafana/dashboards/dovecot.json
+++ b/grafana/dashboards/dovecot.json
@@ -24,7 +24,7 @@
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
- "id": 1,
+ "id": 2,
"links": [],
"liveNow": false,
"panels": [
@@ -982,6 +982,6 @@
"timezone": "",
"title": "dovecot",
"uid": "dvct",
- "version": 3,
+ "version": 12,
"weekStart": ""
}
diff --git a/grafana/dashboards/fail2ban.json b/grafana/dashboards/fail2ban.json
index 0b940b0..170e7de 100644
--- a/grafana/dashboards/fail2ban.json
+++ b/grafana/dashboards/fail2ban.json
@@ -18,7 +18,7 @@
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
- "id": 2,
+ "id": 3,
"links": [],
"liveNow": false,
"panels": [
@@ -397,6 +397,6 @@
"timezone": "",
"title": "Fail2ban",
"uid": "f2bn",
- "version": 2,
+ "version": 8,
"weekStart": ""
}
diff --git a/grafana/dashboards/main.json b/grafana/dashboards/main.json
index 672d532..3ffa437 100644
--- a/grafana/dashboards/main.json
+++ b/grafana/dashboards/main.json
@@ -24,10 +24,93 @@
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
- "id": 3,
+ "id": 4,
"links": [],
"liveNow": false,
"panels": [
+ {
+ "datasource": {
+ "type": "prometheus",
+ "uid": "PBFA97CFB590B2093"
+ },
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "thresholds"
+ },
+ "fieldMinMax": false,
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "dark-red",
+ "value": null
+ },
+ {
+ "color": "dark-red",
+ "value": 86400
+ },
+ {
+ "color": "#EAB839",
+ "value": 604800
+ },
+ {
+ "color": "green",
+ "value": 1200000
+ }
+ ]
+ },
+ "unit": "s"
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 2,
+ "w": 3,
+ "x": 0,
+ "y": 0
+ },
+ "id": 46,
+ "options": {
+ "colorMode": "value",
+ "graphMode": "none",
+ "justifyMode": "auto",
+ "orientation": "auto",
+ "reduceOptions": {
+ "calcs": [
+ "lastNotNull"
+ ],
+ "fields": "",
+ "values": false
+ },
+ "showPercentChange": false,
+ "text": {
+ "titleSize": 18,
+ "valueSize": 22
+ },
+ "textMode": "auto",
+ "wideLayout": true
+ },
+ "pluginVersion": "11.0.0",
+ "targets": [
+ {
+ "datasource": {
+ "type": "prometheus",
+ "uid": "PBFA97CFB590B2093"
+ },
+ "editorMode": "code",
+ "expr": "ssl_certificate_expiration_seconds_validity_left",
+ "hide": false,
+ "instant": false,
+ "legendFormat": "\"\"",
+ "range": true,
+ "refId": "B"
+ }
+ ],
+ "title": "TLS Cert Expires In",
+ "type": "stat"
+ },
{
"datasource": {
"type": "prometheus",
@@ -63,8 +146,8 @@
},
"gridPos": {
"h": 5,
- "w": 3,
- "x": 0,
+ "w": 2,
+ "x": 3,
"y": 0
},
"id": 39,
@@ -173,8 +256,8 @@
},
"gridPos": {
"h": 5,
- "w": 3,
- "x": 3,
+ "w": 2,
+ "x": 5,
"y": 0
},
"id": 41,
@@ -279,8 +362,8 @@
},
"gridPos": {
"h": 5,
- "w": 3,
- "x": 6,
+ "w": 2,
+ "x": 7,
"y": 0
},
"id": 43,
@@ -433,7 +516,9 @@
"uid": "PBFA97CFB590B2093"
},
"editorMode": "code",
+ "exemplar": false,
"expr": "postmaster_unread_emails",
+ "instant": false,
"legendFormat": "Postmaster unread mails",
"range": true,
"refId": "A"
@@ -508,6 +593,87 @@
],
"type": "stat"
},
+ {
+ "datasource": {
+ "type": "prometheus",
+ "uid": "PBFA97CFB590B2093"
+ },
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "thresholds"
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "dark-red",
+ "value": null
+ },
+ {
+ "color": "red",
+ "value": 86400
+ },
+ {
+ "color": "#EAB839",
+ "value": 604800
+ },
+ {
+ "color": "green",
+ "value": 604801
+ }
+ ]
+ },
+ "unit": "dateTimeAsLocal"
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 3,
+ "w": 3,
+ "x": 0,
+ "y": 2
+ },
+ "id": 45,
+ "options": {
+ "colorMode": "value",
+ "graphMode": "none",
+ "justifyMode": "auto",
+ "orientation": "auto",
+ "reduceOptions": {
+ "calcs": [
+ "lastNotNull"
+ ],
+ "fields": "",
+ "values": false
+ },
+ "showPercentChange": false,
+ "text": {
+ "titleSize": 18,
+ "valueSize": 20
+ },
+ "textMode": "auto",
+ "wideLayout": true
+ },
+ "pluginVersion": "11.0.0",
+ "targets": [
+ {
+ "datasource": {
+ "type": "prometheus",
+ "uid": "PBFA97CFB590B2093"
+ },
+ "editorMode": "code",
+ "expr": "ssl_certificate_expiration_date_seconds * 1000",
+ "instant": false,
+ "legendFormat": " ",
+ "range": true,
+ "refId": "A"
+ }
+ ],
+ "title": "TLS Cert Expires On",
+ "type": "stat"
+ },
{
"datasource": {
"type": "prometheus",
@@ -832,112 +998,6 @@
],
"type": "table"
},
- {
- "datasource": {
- "type": "prometheus",
- "uid": "PBFA97CFB590B2093"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "dark-red",
- "value": null
- },
- {
- "color": "red",
- "value": 86400
- },
- {
- "color": "#EAB839",
- "value": 604800
- },
- {
- "color": "green",
- "value": 604801
- }
- ]
- },
- "unit": "dateTimeAsLocal"
- },
- "overrides": [
- {
- "matcher": {
- "id": "byFrameRefID",
- "options": "B"
- },
- "properties": [
- {
- "id": "unit",
- "value": "s"
- }
- ]
- }
- ]
- },
- "gridPos": {
- "h": 2,
- "w": 9,
- "x": 0,
- "y": 5
- },
- "id": 45,
- "options": {
- "colorMode": "value",
- "graphMode": "none",
- "justifyMode": "auto",
- "orientation": "auto",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "showPercentChange": false,
- "text": {
- "titleSize": 18,
- "valueSize": 22
- },
- "textMode": "auto",
- "wideLayout": true
- },
- "pluginVersion": "11.0.0",
- "targets": [
- {
- "datasource": {
- "type": "prometheus",
- "uid": "PBFA97CFB590B2093"
- },
- "editorMode": "code",
- "expr": "ssl_certificate_expiration_date_seconds * 1000",
- "instant": false,
- "legendFormat": "Mailserver Cert Expires On",
- "range": true,
- "refId": "A"
- },
- {
- "datasource": {
- "type": "prometheus",
- "uid": "PBFA97CFB590B2093"
- },
- "editorMode": "code",
- "expr": "ssl_certificate_expiration_seconds_validity_left",
- "hide": false,
- "instant": false,
- "legendFormat": " Expires in",
- "range": true,
- "refId": "B"
- }
- ],
- "type": "stat"
- },
{
"datasource": {
"type": "prometheus",
@@ -1019,7 +1079,7 @@
"h": 6,
"w": 9,
"x": 0,
- "y": 7
+ "y": 5
},
"id": 44,
"options": {
@@ -1389,180 +1449,42 @@
"sortBy": [
{
"desc": true,
- "displayName": "# Attempts"
- }
- ]
- },
- "pluginVersion": "11.0.0",
- "targets": [
- {
- "datasource": {
- "type": "prometheus",
- "uid": "PBFA97CFB590B2093"
- },
- "editorMode": "code",
- "exemplar": false,
- "expr": "dovecot_auth_failures_total",
- "format": "table",
- "instant": true,
- "legendFormat": "__auto",
- "range": false,
- "refId": "A"
- }
- ],
- "title": "Failed logins",
- "transformations": [
- {
- "id": "filterFieldsByName",
- "options": {
- "include": {
- "names": [
- "user",
- "Value"
- ]
- }
- }
- }
- ],
- "type": "table"
- },
- {
- "datasource": {
- "type": "prometheus",
- "uid": "PBFA97CFB590B2093"
- },
- "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": [
- {
- "matcher": {
- "id": "byName",
- "options": "Sieve action duration"
- },
- "properties": [
- {
- "id": "custom.axisPlacement",
- "value": "right"
- },
- {
- "id": "unit",
- "value": "s"
- }
- ]
- }
- ]
- },
- "gridPos": {
- "h": 5,
- "w": 11,
- "x": 13,
- "y": 12
- },
- "id": 38,
- "options": {
- "legend": {
- "calcs": [
- "lastNotNull"
- ],
- "displayMode": "table",
- "placement": "right",
- "showLegend": true
- },
- "tooltip": {
- "maxHeight": 600,
- "mode": "single",
- "sort": "none"
- }
- },
- "targets": [
- {
- "datasource": {
- "type": "prometheus",
- "uid": "PBFA97CFB590B2093"
- },
- "editorMode": "code",
- "expr": "rate(dovecot_sieve_action_count[1m])*60",
- "legendFormat": "Sieve actions",
- "range": true,
- "refId": "A"
- },
- {
- "datasource": {
- "type": "prometheus",
- "uid": "PBFA97CFB590B2093"
- },
- "editorMode": "code",
- "expr": "rate(dovecot_sieve_error_count[1m])*60",
- "hide": false,
- "legendFormat": "Sieve errors",
- "range": true,
- "refId": "B"
- },
+ "displayName": "# Attempts"
+ }
+ ]
+ },
+ "pluginVersion": "11.0.0",
+ "targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"editorMode": "code",
- "expr": "rate(dovecot_sieve_action_duration_seconds_sum[1m])*60",
- "hide": false,
- "legendFormat": "Sieve action duration",
- "range": true,
- "refId": "C"
+ "exemplar": false,
+ "expr": "dovecot_auth_failures_total",
+ "format": "table",
+ "instant": true,
+ "legendFormat": "__auto",
+ "range": false,
+ "refId": "A"
}
],
- "title": "Sieve",
- "type": "timeseries"
+ "title": "Failed logins",
+ "transformations": [
+ {
+ "id": "filterFieldsByName",
+ "options": {
+ "include": {
+ "names": [
+ "user",
+ "Value"
+ ]
+ }
+ }
+ }
+ ],
+ "type": "table"
},
{
"datasource": {
@@ -1673,10 +1595,10 @@
]
},
"gridPos": {
- "h": 5,
+ "h": 6,
"w": 9,
"x": 0,
- "y": 13
+ "y": 11
},
"id": 40,
"options": {
@@ -1775,30 +1697,6 @@
"title": "Memoy & Swap",
"type": "timeseries"
},
- {
- "datasource": {
- "type": "prometheus",
- "uid": "PBFA97CFB590B2093"
- },
- "gridPos": {
- "h": 2,
- "w": 4,
- "x": 9,
- "y": 15
- },
- "id": 35,
- "options": {
- "code": {
- "language": "plaintext",
- "showLineNumbers": false,
- "showMiniMap": false
- },
- "content": "
\n