Google
Edit File: grafana-dashboard.json
{ "annotations": { "list": [] }, "editable": true, "gnetId": null, "graphTooltip": 1, "id": null, "links": [], "panels": [ { "collapsed": false, "datasource": "Prometheus", "gridPos": { "h": 1, "w": 24, "x": 0, "y": 0 }, "id": 1, "panels": [], "title": "Overview", "type": "row" }, { "datasource": null, "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, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "short" }, "overrides": [] }, "gridPos": { "h": 8, "w": 18, "x": 0, "y": 1 }, "id": 2, "options": { "legend": { "calcs": ["mean", "lastNotNull"], "displayMode": "table", "placement": "right" }, "tooltip": { "mode": "multi" } }, "targets": [ { "expr": "rate(dovecot_logins_success_total{instance=~\"$instance\",job=~\"$job\",protocol=\"imap\"}[5m]) * 60", "legendFormat": "IMAP Success/min", "refId": "A" }, { "expr": "rate(dovecot_logins_success_total{instance=~\"$instance\",job=~\"$job\",protocol=\"pop3\"}[5m]) * 60", "legendFormat": "POP3 Success/min", "refId": "B" }, { "expr": "rate(dovecot_logins_success_total{instance=~\"$instance\",job=~\"$job\",protocol=\"lmtp\"}[5m]) * 60", "legendFormat": "LMTP Success/min", "refId": "C" }, { "expr": "rate(dovecot_login_failures_total{instance=~\"$instance\",job=~\"$job\"}[5m]) * 60", "legendFormat": "Login Failures/min", "refId": "D" } ], "title": "Login and Authentication Rate", "type": "timeseries" }, { "datasource": null, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [ { "options": { "0": { "color": "red", "index": 0, "text": "Down" }, "1": { "color": "green", "index": 1, "text": "Up" } }, "type": "value" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "red", "value": null }, { "color": "green", "value": 1 } ] }, "unit": "none" }, "overrides": [] }, "gridPos": { "h": 4, "w": 6, "x": 18, "y": 1 }, "id": 3, "options": { "orientation": "auto", "reduceOptions": { "values": false, "calcs": ["lastNotNull"], "fields": "" }, "showThresholdLabels": false, "showThresholdMarkers": true, "text": {} }, "pluginVersion": "8.0.0", "targets": [ { "expr": "dovecot_master_process_running{instance=~\"$instance\",job=~\"$job\"}", "refId": "A" } ], "title": "Dovecot Status", "type": "gauge" }, { "datasource": null, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "s" }, "overrides": [] }, "gridPos": { "h": 4, "w": 6, "x": 18, "y": 5 }, "id": 4, "options": { "orientation": "auto", "reduceOptions": { "values": false, "calcs": ["lastNotNull"], "fields": "" }, "showThresholdLabels": false, "showThresholdMarkers": true, "text": {} }, "pluginVersion": "8.0.0", "targets": [ { "expr": "dovecot_master_process_uptime_seconds{instance=~\"$instance\",job=~\"$job\"}", "refId": "A" } ], "title": "Uptime", "type": "gauge" }, { "collapsed": false, "datasource": null, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 9 }, "id": 5, "panels": [], "title": "Logins by Protocol", "type": "row" }, { "datasource": null, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 30, "gradientMode": "none", "hideFrom": { "tooltip": false, "viz": false, "legend": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "spanNulls": true, "stacking": { "group": "A", "mode": "normal" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "short" }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 10 }, "id": 6, "options": { "legend": { "calcs": ["mean", "lastNotNull", "max"], "displayMode": "table", "placement": "bottom" }, "tooltip": { "mode": "multi" } }, "targets": [ { "expr": "sum by (protocol) (rate(dovecot_logins_total{instance=~\"$instance\",job=~\"$job\",protocol=~\".+\"}[5m]) * 60)", "legendFormat": "{{protocol}}", "refId": "A" } ], "title": "Logins by Protocol (per minute)", "type": "timeseries" }, { "datasource": null, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "hideFrom": { "tooltip": false, "viz": false, "legend": false } }, "mappings": [] }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 10 }, "id": 7, "options": { "legend": { "displayMode": "table", "placement": "right", "values": ["value", "percent"] }, "pieType": "pie", "tooltip": { "mode": "single" } }, "targets": [ { "expr": "sum by (protocol) (increase(dovecot_logins_total{instance=~\"$instance\",job=~\"$job\",protocol=~\".+\"}[1h]))", "legendFormat": "{{protocol}}", "refId": "A" } ], "title": "Login Distribution (1h)", "type": "piechart" }, { "datasource": null, "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, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "short" }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 27 }, "id": 17, "options": { "legend": { "calcs": ["mean", "lastNotNull"], "displayMode": "table", "placement": "bottom" }, "tooltip": { "mode": "multi" } }, "targets": [ { "expr": "sum by (protocol) (rate(dovecot_logins_success_total{instance=~\"$instance\",job=~\"$job\",protocol=~\".+\"}[5m]) * 60)", "legendFormat": "Success {{protocol}}/min", "refId": "A" }, { "expr": "sum by (protocol) (rate(dovecot_login_failures_total{instance=~\"$instance\",job=~\"$job\",protocol=~\".+\"}[5m]) * 60)", "legendFormat": "Failures {{protocol}}/min", "refId": "B" } ], "title": "Success vs Failures by Protocol", "type": "timeseries" }, { "datasource": null, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [ { "options": { "0": { "color": "red", "index": 0, "text": "Failed" }, "1": { "color": "green", "index": 1, "text": "OK" } }, "type": "value" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "red", "value": null }, { "color": "green", "value": 1 } ] }, "unit": "none" }, "overrides": [] }, "gridPos": { "h": 4, "w": 6, "x": 12, "y": 27 }, "id": 18, "options": { "orientation": "auto", "reduceOptions": { "values": false, "calcs": ["lastNotNull"], "fields": "" }, "showThresholdLabels": false, "showThresholdMarkers": true, "text": {} }, "pluginVersion": "8.0.0", "targets": [ { "expr": "dovecot_exporter_last_scrape_success{instance=~\"$instance\",job=~\"$job\"}", "refId": "A" } ], "title": "Exporter Last Scrape", "type": "gauge" }, { "datasource": null, "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, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "short" }, "overrides": [] }, "gridPos": { "h": 4, "w": 6, "x": 18, "y": 27 }, "id": 19, "options": { "legend": { "calcs": ["lastNotNull"], "displayMode": "list", "placement": "bottom" }, "tooltip": { "mode": "single" } }, "targets": [ { "expr": "dovecot_exporter_scrape_errors_total{instance=~\"$instance\",job=~\"$job\"}", "legendFormat": "Scrape errors", "refId": "A" } ], "title": "Exporter Scrape Errors", "type": "timeseries" }, { "collapsed": false, "datasource": null, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 18 }, "id": 8, "panels": [], "title": "Authentication & Connections", "type": "row" }, { "datasource": null, "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, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "short" }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 19 }, "id": 9, "options": { "legend": { "calcs": ["mean", "lastNotNull"], "displayMode": "table", "placement": "bottom" }, "tooltip": { "mode": "multi" } }, "targets": [ { "expr": "rate(dovecot_auth_success_total{instance=~\"$instance\",job=~\"$job\"}[5m]) * 60", "legendFormat": "Success/min", "refId": "A" }, { "expr": "rate(dovecot_auth_failures_total{instance=~\"$instance\",job=~\"$job\"}[5m]) * 60", "legendFormat": "Failures/min", "refId": "B" } ], "title": "Authentication Rate", "type": "timeseries" }, { "datasource": null, "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, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "short" }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 19 }, "id": 10, "options": { "legend": { "calcs": ["mean", "lastNotNull"], "displayMode": "table", "placement": "bottom" }, "tooltip": { "mode": "multi" } }, "targets": [ { "expr": "rate(dovecot_disconnects_total{instance=~\"$instance\",job=~\"$job\"}[5m]) * 60", "legendFormat": "Disconnects/min", "refId": "A" } ], "title": "Connection Statistics", "type": "timeseries" }, { "collapsed": true, "datasource": null, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 27 }, "id": 11, "panels": [ { "datasource": null, "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, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "short" }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 28 }, "id": 12, "options": { "legend": { "calcs": ["mean", "lastNotNull"], "displayMode": "table", "placement": "bottom" }, "tooltip": { "mode": "multi" } }, "targets": [ { "expr": "rate(dovecot_messages_read_total{instance=~\"$instance\",job=~\"$job\"}[5m]) * 60", "legendFormat": "Read/min", "refId": "A" }, { "expr": "rate(dovecot_messages_saved_total{instance=~\"$instance\",job=~\"$job\"}[5m]) * 60", "legendFormat": "Saved/min", "refId": "B" }, { "expr": "rate(dovecot_messages_deleted_total{instance=~\"$instance\",job=~\"$job\"}[5m]) * 60", "legendFormat": "Deleted/min", "refId": "C" }, { "expr": "rate(dovecot_messages_expunged_total{instance=~\"$instance\",job=~\"$job\"}[5m]) * 60", "legendFormat": "Expunged/min", "refId": "D" }, { "expr": "rate(dovecot_messages_copied_total{instance=~\"$instance\",job=~\"$job\"}[5m]) * 60", "legendFormat": "Copied/min", "refId": "E" } ], "title": "Message Operations (per minute)", "type": "timeseries" }, { "datasource": null, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "hideFrom": { "tooltip": false, "viz": false, "legend": false } }, "mappings": [] }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 28 }, "id": 13, "options": { "legend": { "displayMode": "table", "placement": "right", "values": ["value", "percent"] }, "pieType": "pie", "tooltip": { "mode": "single" } }, "targets": [ { "expr": "increase(dovecot_messages_read_total{instance=~\"$instance\",job=~\"$job\"}[24h])", "legendFormat": "Read", "refId": "A" }, { "expr": "increase(dovecot_messages_saved_total{instance=~\"$instance\",job=~\"$job\"}[24h])", "legendFormat": "Saved", "refId": "B" }, { "expr": "increase(dovecot_messages_deleted_total{instance=~\"$instance\",job=~\"$job\"}[24h])", "legendFormat": "Deleted", "refId": "C" }, { "expr": "increase(dovecot_messages_copied_total{instance=~\"$instance\",job=~\"$job\"}[24h])", "legendFormat": "Copied", "refId": "D" } ], "title": "Message Operations Distribution (24h)", "type": "piechart" } ], "title": "Message Operations", "type": "row" }, { "collapsed": true, "datasource": null, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 28 }, "id": 14, "panels": [ { "datasource": null, "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, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "short" }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 29 }, "id": 15, "options": { "legend": { "calcs": ["mean", "lastNotNull"], "displayMode": "table", "placement": "bottom" }, "tooltip": { "mode": "multi" } }, "targets": [ { "expr": "rate(dovecot_mailbox_create_total{instance=~\"$instance\",job=~\"$job\"}[5m]) * 60", "legendFormat": "Created/min", "refId": "A" }, { "expr": "rate(dovecot_mailbox_delete_total{instance=~\"$instance\",job=~\"$job\"}[5m]) * 60", "legendFormat": "Deleted/min", "refId": "B" }, { "expr": "rate(dovecot_mailbox_rename_total{instance=~\"$instance\",job=~\"$job\"}[5m]) * 60", "legendFormat": "Renamed/min", "refId": "C" } ], "title": "Mailbox Operations (per minute)", "type": "timeseries" }, { "datasource": null, "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, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "binBps" }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 29 }, "id": 16, "options": { "legend": { "calcs": ["mean", "lastNotNull"], "displayMode": "table", "placement": "bottom" }, "tooltip": { "mode": "multi" } }, "targets": [ { "expr": "rate(dovecot_bytes_read_total{instance=~\"$instance\",job=~\"$job\"}[5m])", "legendFormat": "Read", "refId": "A" }, { "expr": "rate(dovecot_bytes_written_total{instance=~\"$instance\",job=~\"$job\"}[5m])", "legendFormat": "Written", "refId": "B" } ], "title": "Bandwidth Usage", "type": "timeseries" } ], "title": "Mailbox Operations & Bandwidth", "type": "row" } ], "refresh": "30s", "schemaVersion": 27, "style": "dark", "tags": ["dovecot", "mail", "prometheus"], "templating": { "list": [ { "allValue": null, "current": {}, "datasource": null, "definition": "label_values(dovecot_master_process_running, job)", "hide": 0, "includeAll": true, "label": "Job", "multi": true, "name": "job", "options": [], "query": { "query": "label_values(dovecot_master_process_running, job)", "refId": "StandardVariableQuery" }, "refresh": 1, "regex": "", "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", "tags": [], "tagsQuery": "", "type": "query", "useTags": false }, { "allValue": null, "current": {}, "datasource": null, "definition": "label_values(dovecot_master_process_running{job=~\"$job\"}, instance)", "hide": 0, "includeAll": true, "label": "Instance", "multi": true, "name": "instance", "options": [], "query": { "query": "label_values(dovecot_master_process_running{job=~\"$job\"}, instance)", "refId": "StandardVariableQuery" }, "refresh": 1, "regex": "", "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", "tags": [], "tagsQuery": "", "type": "query", "useTags": false } ] }, "time": { "from": "now-6h", "to": "now" }, "timepicker": {}, "timezone": "", "title": "Dovecot Mail Server Metrics", "uid": "dovecot-exporter", "version": 0 }