Files
mailgw-salt/pmg/files/pmg-smtp-dashboard.json

1740 lines
40 KiB
JSON

{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"description": "PMG SMTP monitoring: blackbox probes, postfix queue, throughput, recent-window counters and service health. Infra metrics live on a separate dashboard.",
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 1,
"id": null,
"links": [],
"liveNow": false,
"panels": [
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 0
},
"id": 100,
"panels": [],
"title": "Overview",
"type": "row"
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"description": "Average probe_success over 5 minutes for selected SMTP ports.",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"decimals": 2,
"mappings": [],
"max": 1,
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "red",
"value": null
},
{
"color": "orange",
"value": 0.9
},
{
"color": "green",
"value": 0.99
}
]
},
"unit": "percentunit"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 4,
"x": 0,
"y": 1
},
"id": 1,
"options": {
"colorMode": "background",
"graphMode": "area",
"justifyMode": "center",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "11.0.0",
"targets": [
{
"editorMode": "code",
"expr": "avg(avg_over_time(probe_success{job=~\"pmg-smtp-(${smtp_port:pipe})\",hostname=~\"$hostname\"}[5m]))",
"legendFormat": "availability",
"range": true,
"refId": "A"
}
],
"title": "SMTP Availability (5m)",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"description": "Blackbox exporter targets responding on :9115.",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "red",
"value": null
},
{
"color": "orange",
"value": 1
},
{
"color": "green",
"value": 4
}
]
},
"unit": "none"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 4,
"x": 4,
"y": 1
},
"id": 2,
"options": {
"colorMode": "background",
"graphMode": "none",
"justifyMode": "center",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "value_and_name"
},
"pluginVersion": "11.0.0",
"targets": [
{
"editorMode": "code",
"expr": "sum(up{job=\"pmg-blackbox\",hostname=~\"$hostname\"})",
"legendFormat": "blackbox up",
"range": true,
"refId": "A"
}
],
"title": "Blackbox Exporters Up",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "red",
"value": null
},
{
"color": "green",
"value": 1
}
]
},
"unit": "none"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 4,
"x": 8,
"y": 1
},
"id": 3,
"options": {
"colorMode": "value",
"graphMode": "none",
"justifyMode": "center",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "value_and_name"
},
"pluginVersion": "11.0.0",
"targets": [
{
"editorMode": "code",
"expr": "sum(pmg_smtp_port_listen_up{job=\"pmg\",hostname=~\"$hostname\",port=~\"${smtp_port:pipe}\"})",
"legendFormat": "listen up",
"range": true,
"refId": "A"
}
],
"title": "Ports Listening",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "yellow",
"value": 50
},
{
"color": "red",
"value": 200
}
]
},
"unit": "none"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 4,
"x": 12,
"y": 1
},
"id": 4,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "center",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "value_and_name"
},
"pluginVersion": "11.0.0",
"targets": [
{
"editorMode": "code",
"expr": "sum(pmg_smtp_port_established_connections{job=\"pmg\",hostname=~\"$hostname\",port=~\"${smtp_port:pipe}\"})",
"legendFormat": "established",
"range": true,
"refId": "A"
}
],
"title": "Established SMTP Connections",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "yellow",
"value": 50
},
{
"color": "red",
"value": 500
}
]
},
"unit": "none"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 4,
"x": 16,
"y": 1
},
"id": 5,
"options": {
"colorMode": "background",
"graphMode": "area",
"justifyMode": "center",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"max"
],
"fields": "",
"values": false
},
"textMode": "value_and_name"
},
"pluginVersion": "11.0.0",
"targets": [
{
"editorMode": "code",
"expr": "max(pmg_postfix_queue_messages_total{job=\"pmg\",hostname=~\"$hostname\"})",
"legendFormat": "queue max",
"range": true,
"refId": "A"
}
],
"title": "Queue Total (max)",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "yellow",
"value": 3600
},
{
"color": "red",
"value": 14400
}
]
},
"unit": "s"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 4,
"x": 20,
"y": 1
},
"id": 6,
"options": {
"colorMode": "background",
"graphMode": "none",
"justifyMode": "center",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"max"
],
"fields": "",
"values": false
},
"textMode": "value_and_name"
},
"pluginVersion": "11.0.0",
"targets": [
{
"editorMode": "code",
"expr": "max(pmg_postfix_queue_oldest_age_seconds{job=\"pmg\",hostname=~\"$hostname\"})",
"legendFormat": "oldest",
"range": true,
"refId": "A"
}
],
"title": "Oldest Queued Message",
"type": "stat"
},
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 5
},
"id": 101,
"panels": [],
"title": "Blackbox Probes",
"type": "row"
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"drawStyle": "line",
"fillOpacity": 20,
"lineInterpolation": "stepAfter",
"lineWidth": 2,
"showPoints": "never"
},
"mappings": [
{
"options": {
"0": {
"color": "red",
"index": 0,
"text": "DOWN"
},
"1": {
"color": "green",
"index": 1,
"text": "UP"
}
},
"type": "value"
}
],
"max": 1,
"min": 0,
"unit": "none"
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 12,
"x": 0,
"y": 6
},
"id": 7,
"options": {
"legend": {
"calcs": [
"lastNotNull"
],
"displayMode": "table",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "desc"
}
},
"pluginVersion": "11.0.0",
"targets": [
{
"editorMode": "code",
"expr": "probe_success{job=~\"pmg-smtp-(${smtp_port:pipe})\",hostname=~\"$hostname\"}",
"legendFormat": "{{hostname}} :{{smtp_port}}",
"range": true,
"refId": "A"
}
],
"title": "Probe Success",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"drawStyle": "line",
"fillOpacity": 10,
"lineWidth": 2,
"showPoints": "never"
},
"unit": "s"
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 12,
"x": 12,
"y": 6
},
"id": 8,
"options": {
"legend": {
"calcs": [
"mean",
"max"
],
"displayMode": "table",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "desc"
}
},
"pluginVersion": "11.0.0",
"targets": [
{
"editorMode": "code",
"expr": "probe_duration_seconds{job=~\"pmg-smtp-(${smtp_port:pipe})\",hostname=~\"$hostname\"}",
"legendFormat": "{{hostname}} :{{smtp_port}}",
"range": true,
"refId": "A"
}
],
"title": "Probe Duration",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"drawStyle": "line",
"fillOpacity": 10,
"lineWidth": 2,
"showPoints": "never"
},
"unit": "s"
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 12,
"x": 0,
"y": 13
},
"id": 9,
"options": {
"legend": {
"calcs": [
"mean",
"max"
],
"displayMode": "table",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "desc"
}
},
"pluginVersion": "11.0.0",
"targets": [
{
"editorMode": "code",
"expr": "probe_dns_lookup_time_seconds{job=~\"pmg-smtp-(${smtp_port:pipe})\",hostname=~\"$hostname\"}",
"legendFormat": "{{hostname}} :{{smtp_port}}",
"range": true,
"refId": "A"
}
],
"title": "Probe DNS Lookup Time",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"drawStyle": "bars",
"fillOpacity": 80,
"lineWidth": 1,
"showPoints": "never"
},
"mappings": [
{
"options": {
"0": {
"color": "green",
"index": 0,
"text": "OK"
},
"1": {
"color": "red",
"index": 1,
"text": "REGEX FAIL"
}
},
"type": "value"
}
],
"max": 1,
"min": 0,
"unit": "none"
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 12,
"x": 12,
"y": 13
},
"id": 10,
"options": {
"legend": {
"calcs": [
"lastNotNull"
],
"displayMode": "table",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "desc"
}
},
"pluginVersion": "11.0.0",
"targets": [
{
"editorMode": "code",
"expr": "probe_failed_due_to_regex{job=~\"pmg-smtp-(${smtp_port:pipe})\",hostname=~\"$hostname\"}",
"legendFormat": "{{hostname}} :{{smtp_port}}",
"range": true,
"refId": "A"
}
],
"title": "Probe Failed Due to Regex",
"type": "timeseries"
},
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 20
},
"id": 102,
"panels": [],
"title": "SMTP Ports",
"type": "row"
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"drawStyle": "line",
"fillOpacity": 15,
"lineInterpolation": "stepAfter",
"lineWidth": 2,
"showPoints": "never"
},
"mappings": [
{
"options": {
"0": {
"color": "red",
"index": 0,
"text": "DOWN"
},
"1": {
"color": "green",
"index": 1,
"text": "LISTEN"
}
},
"type": "value"
}
],
"max": 1,
"min": 0,
"unit": "none"
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 12,
"x": 0,
"y": 21
},
"id": 11,
"options": {
"legend": {
"calcs": [
"lastNotNull"
],
"displayMode": "table",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"pluginVersion": "11.0.0",
"targets": [
{
"editorMode": "code",
"expr": "pmg_smtp_port_listen_up{job=\"pmg\",hostname=~\"$hostname\",port=~\"${smtp_port:pipe}\"}",
"legendFormat": "{{hostname}} :{{port}}",
"range": true,
"refId": "A"
}
],
"title": "Port Listen Status",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"drawStyle": "line",
"fillOpacity": 20,
"lineWidth": 2,
"showPoints": "never"
},
"unit": "none"
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 12,
"x": 12,
"y": 21
},
"id": 12,
"options": {
"legend": {
"calcs": [
"mean",
"max",
"lastNotNull"
],
"displayMode": "table",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "desc"
}
},
"pluginVersion": "11.0.0",
"targets": [
{
"editorMode": "code",
"expr": "pmg_smtp_port_established_connections{job=\"pmg\",hostname=~\"$hostname\",port=~\"${smtp_port:pipe}\"}",
"legendFormat": "{{hostname}} :{{port}}",
"range": true,
"refId": "A"
}
],
"title": "Established Connections by Port",
"type": "timeseries"
},
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 28
},
"id": 103,
"panels": [],
"title": "Postfix Queue",
"type": "row"
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"drawStyle": "line",
"fillOpacity": 15,
"lineWidth": 2,
"showPoints": "never"
},
"unit": "none"
},
"overrides": [
{
"matcher": {
"id": "byRegexp",
"options": ".*oldest.*"
},
"properties": [
{
"id": "unit",
"value": "s"
},
{
"id": "custom.axisPlacement",
"value": "right"
}
]
}
]
},
"gridPos": {
"h": 8,
"w": 16,
"x": 0,
"y": 29
},
"id": 13,
"options": {
"legend": {
"calcs": [
"lastNotNull",
"max"
],
"displayMode": "table",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "desc"
}
},
"pluginVersion": "11.0.0",
"targets": [
{
"editorMode": "code",
"expr": "pmg_postfix_queue_messages_total{job=\"pmg\",hostname=~\"$hostname\"}",
"legendFormat": "{{hostname}} total",
"range": true,
"refId": "A"
},
{
"editorMode": "code",
"expr": "pmg_postfix_queue_deferred_messages{job=\"pmg\",hostname=~\"$hostname\"}",
"legendFormat": "{{hostname}} deferred",
"range": true,
"refId": "B"
},
{
"editorMode": "code",
"expr": "pmg_postfix_queue_oldest_age_seconds{job=\"pmg\",hostname=~\"$hostname\"}",
"legendFormat": "{{hostname}} oldest age",
"range": true,
"refId": "C"
}
],
"title": "Queue Size and Age",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"drawStyle": "line",
"fillOpacity": 25,
"lineWidth": 2,
"showPoints": "never"
},
"unit": "none"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 8,
"x": 16,
"y": 29
},
"id": 14,
"options": {
"legend": {
"calcs": [
"mean",
"lastNotNull"
],
"displayMode": "table",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "desc"
}
},
"pluginVersion": "11.0.0",
"targets": [
{
"editorMode": "code",
"expr": "pmg_postfix_queue_drain_per_minute{job=\"pmg\",hostname=~\"$hostname\"}",
"legendFormat": "{{hostname}} drain/min",
"range": true,
"refId": "A"
}
],
"title": "Queue Drain Rate",
"type": "timeseries"
},
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 37
},
"id": 104,
"panels": [],
"title": "Throughput (counter rates)",
"type": "row"
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"drawStyle": "line",
"fillOpacity": 10,
"lineWidth": 2,
"showPoints": "never"
},
"unit": "none"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 38
},
"id": 15,
"options": {
"legend": {
"calcs": [
"mean",
"max"
],
"displayMode": "table",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "desc"
}
},
"pluginVersion": "11.0.0",
"targets": [
{
"editorMode": "code",
"expr": "sum by (hostname) (rate(pmg_smtp_messages_total{job=\"pmg\",hostname=~\"$hostname\",direction=\"received\",status=\"accepted\"}[5m])) * 60",
"legendFormat": "{{hostname}} accepted/min",
"range": true,
"refId": "A"
},
{
"editorMode": "code",
"expr": "sum by (hostname) (rate(pmg_smtp_messages_total{job=\"pmg\",hostname=~\"$hostname\",direction=\"sent\",status=\"sent\"}[5m])) * 60",
"legendFormat": "{{hostname}} sent/min",
"range": true,
"refId": "B"
},
{
"editorMode": "code",
"expr": "sum by (hostname) (rate(pmg_smtp_connections_total{job=\"pmg\",hostname=~\"$hostname\"}[5m])) * 60",
"legendFormat": "{{hostname}} connections/min",
"range": true,
"refId": "C"
}
],
"title": "Accepted / Sent / Connections",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"drawStyle": "line",
"fillOpacity": 10,
"lineWidth": 2,
"showPoints": "never"
},
"unit": "none"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 38
},
"id": 16,
"options": {
"legend": {
"calcs": [
"mean",
"max"
],
"displayMode": "table",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "desc"
}
},
"pluginVersion": "11.0.0",
"targets": [
{
"editorMode": "code",
"expr": "sum by (hostname) (rate(pmg_smtp_messages_total{job=\"pmg\",hostname=~\"$hostname\",direction=\"inbound\",status=\"rejected\"}[5m])) * 60",
"legendFormat": "{{hostname}} rejected/min",
"range": true,
"refId": "A"
},
{
"editorMode": "code",
"expr": "sum by (hostname) (rate(pmg_smtp_messages_total{job=\"pmg\",hostname=~\"$hostname\",direction=\"delivery\",status=\"deferred\"}[5m])) * 60",
"legendFormat": "{{hostname}} deferred/min",
"range": true,
"refId": "B"
},
{
"editorMode": "code",
"expr": "sum by (hostname) (rate(pmg_smtp_messages_total{job=\"pmg\",hostname=~\"$hostname\",direction=\"delivery\",status=\"bounced\"}[5m])) * 60",
"legendFormat": "{{hostname}} bounced/min",
"range": true,
"refId": "C"
},
{
"editorMode": "code",
"expr": "sum by (hostname) (rate(pmg_smtp_tls_failures_total{job=\"pmg\",hostname=~\"$hostname\"}[5m])) * 60",
"legendFormat": "{{hostname}} tls_failures/min",
"range": true,
"refId": "D"
}
],
"title": "Rejected / Deferred / Bounced / TLS",
"type": "timeseries"
},
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 46
},
"id": 105,
"panels": [],
"title": "Recent Window (log slice gauges)",
"type": "row"
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"description": "Counters from journalctl over pmg_smtp_metrics_window_seconds (default 300s). Updated every minute.",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"drawStyle": "line",
"fillOpacity": 15,
"lineInterpolation": "stepAfter",
"lineWidth": 2,
"showPoints": "never"
},
"unit": "none"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 47
},
"id": 17,
"options": {
"legend": {
"calcs": [
"lastNotNull"
],
"displayMode": "table",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "desc"
}
},
"pluginVersion": "11.0.0",
"targets": [
{
"editorMode": "code",
"expr": "pmg_smtp_connections_recent{job=\"pmg\",hostname=~\"$hostname\"}",
"legendFormat": "{{hostname}} connections",
"range": true,
"refId": "A"
},
{
"editorMode": "code",
"expr": "pmg_smtp_received_recent{job=\"pmg\",hostname=~\"$hostname\"}",
"legendFormat": "{{hostname}} received",
"range": true,
"refId": "B"
},
{
"editorMode": "code",
"expr": "pmg_smtp_sent_recent{job=\"pmg\",hostname=~\"$hostname\"}",
"legendFormat": "{{hostname}} sent",
"range": true,
"refId": "C"
}
],
"title": "Recent: Connections / Received / Sent",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"drawStyle": "line",
"fillOpacity": 15,
"lineInterpolation": "stepAfter",
"lineWidth": 2,
"showPoints": "never"
},
"unit": "none"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 47
},
"id": 18,
"options": {
"legend": {
"calcs": [
"lastNotNull"
],
"displayMode": "table",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "desc"
}
},
"pluginVersion": "11.0.0",
"targets": [
{
"editorMode": "code",
"expr": "pmg_smtp_deferred_recent{job=\"pmg\",hostname=~\"$hostname\"}",
"legendFormat": "{{hostname}} deferred",
"range": true,
"refId": "A"
},
{
"editorMode": "code",
"expr": "pmg_smtp_bounced_recent{job=\"pmg\",hostname=~\"$hostname\"}",
"legendFormat": "{{hostname}} bounced",
"range": true,
"refId": "B"
},
{
"editorMode": "code",
"expr": "pmg_smtp_rejected_recent{job=\"pmg\",hostname=~\"$hostname\"}",
"legendFormat": "{{hostname}} rejected",
"range": true,
"refId": "C"
},
{
"editorMode": "code",
"expr": "pmg_smtp_tls_failures_recent{job=\"pmg\",hostname=~\"$hostname\"}",
"legendFormat": "{{hostname}} tls failures",
"range": true,
"refId": "D"
}
],
"title": "Recent: Deferred / Bounced / Rejected / TLS",
"type": "timeseries"
},
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 55
},
"id": 106,
"panels": [],
"title": "PMG Services",
"type": "row"
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"drawStyle": "line",
"fillOpacity": 30,
"lineInterpolation": "stepAfter",
"lineWidth": 2,
"showPoints": "never"
},
"mappings": [
{
"options": {
"0": {
"color": "red",
"index": 0,
"text": "DOWN"
},
"1": {
"color": "green",
"index": 1,
"text": "UP"
}
},
"type": "value"
}
],
"max": 1,
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "red",
"value": null
},
{
"color": "green",
"value": 1
}
]
},
"unit": "none"
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 24,
"x": 0,
"y": 56
},
"id": 19,
"options": {
"legend": {
"calcs": [
"lastNotNull"
],
"displayMode": "table",
"placement": "right",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"pluginVersion": "11.0.0",
"targets": [
{
"editorMode": "code",
"expr": "pmg_service_up{job=\"pmg\",hostname=~\"$hostname\"}",
"legendFormat": "{{hostname}} {{service}}",
"range": true,
"refId": "A"
}
],
"title": "PMG Services Up",
"type": "timeseries"
},
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 63
},
"id": 107,
"panels": [],
"title": "Scrape Health",
"type": "row"
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"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": 8,
"x": 0,
"y": 64
},
"id": 20,
"options": {
"colorMode": "background",
"graphMode": "none",
"justifyMode": "center",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "11.0.0",
"targets": [
{
"editorMode": "code",
"expr": "sum(up{job=\"pmg\",hostname=~\"$hostname\"})",
"legendFormat": "node exporters",
"range": true,
"refId": "A"
}
],
"title": "PMG Node Exporters Up",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"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": 8,
"x": 8,
"y": 64
},
"id": 21,
"options": {
"colorMode": "background",
"graphMode": "none",
"justifyMode": "center",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "11.0.0",
"targets": [
{
"editorMode": "code",
"expr": "sum(up{job=\"pmg-blackbox\",hostname=~\"$hostname\"})",
"legendFormat": "blackbox",
"range": true,
"refId": "A"
}
],
"title": "PMG Blackbox Exporters Up",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"description": "Log window size configured in Salt (pmg.smtp_monitoring.log_window_seconds).",
"fieldConfig": {
"defaults": {
"color": {
"mode": "fixed"
},
"fixedColor": "text",
"mappings": [],
"unit": "s"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 8,
"x": 16,
"y": 64
},
"id": 22,
"options": {
"colorMode": "none",
"graphMode": "none",
"justifyMode": "center",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "value_and_name"
},
"pluginVersion": "11.0.0",
"targets": [
{
"editorMode": "code",
"expr": "max(pmg_smtp_metrics_window_seconds{job=\"pmg\",hostname=~\"$hostname\"})",
"legendFormat": "window",
"range": true,
"refId": "A"
}
],
"title": "Recent Metrics Window",
"type": "stat"
}
],
"refresh": "30s",
"schemaVersion": 39,
"style": "dark",
"tags": [
"pmg",
"smtp",
"itsec"
],
"templating": {
"list": [
{
"current": {
"selected": true,
"text": "itsec",
"value": "itsec"
},
"hide": 0,
"label": "Datasource",
"name": "datasource",
"options": [],
"query": "prometheus",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"type": "datasource"
},
{
"current": {
"selected": true,
"text": "All",
"value": "$__all"
},
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"definition": "label_values(probe_success{job=~\"pmg-smtp-(25|26)\"}, hostname)",
"hide": 0,
"includeAll": true,
"label": "Hostname",
"multi": true,
"name": "hostname",
"options": [],
"query": {
"query": "label_values(probe_success{job=~\"pmg-smtp-(25|26)\"}, hostname)",
"refId": "PrometheusVariableQueryEditor-VariableQuery"
},
"refresh": 2,
"regex": "",
"skipUrlSync": false,
"sort": 1,
"type": "query"
},
{
"current": {
"selected": true,
"text": [
"25",
"26"
],
"value": [
"25",
"26"
]
},
"hide": 0,
"includeAll": true,
"label": "SMTP Port",
"multi": true,
"name": "smtp_port",
"options": [
{
"selected": true,
"text": "25",
"value": "25"
},
{
"selected": true,
"text": "26",
"value": "26"
}
],
"query": "25,26",
"skipUrlSync": false,
"type": "custom"
}
]
},
"time": {
"from": "now-6h",
"to": "now"
},
"timepicker": {},
"timezone": "",
"title": "PMG SMTP Monitoring",
"uid": "pmg-smtp-itsec",
"version": 3,
"weekStart": ""
}