Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117748639
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
109 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/helm/files/grafana-overview-dashboard.json b/helm/files/grafana-overview-dashboard.json
index cfc0e53..6dc8029 100644
--- a/helm/files/grafana-overview-dashboard.json
+++ b/helm/files/grafana-overview-dashboard.json
@@ -1,1939 +1,2783 @@
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"links": [],
"panels": [
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 0
},
- "id": 24,
+ "id": 34,
"panels": [],
- "title": "General",
+ "title": "HTTP",
"type": "row"
},
{
"datasource": {
- "type": "prometheus",
- "uid": "prometheus1"
+ "type": "victoriametrics-logs-datasource",
+ "uid": "victorialogs1"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"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",
"showValues": false,
- "spanNulls": false,
+ "spanNulls": 3600000,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": 0
+ },
+ {
+ "color": "red",
+ "value": 80
}
]
- }
+ },
+ "unit": "reqps"
},
"overrides": []
},
"gridPos": {
- "h": 9,
- "w": 3,
+ "h": 8,
+ "w": 12,
"x": 0,
"y": 1
},
- "hideTimeOverride": false,
- "id": 25,
- "interval": "1h",
+ "id": 37,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"hideZeros": false,
"mode": "single",
"sort": "none"
}
},
- "pluginVersion": "12.4.0",
+ "pluginVersion": "12.4.1",
"targets": [
{
+ "datasource": {
+ "type": "victoriametrics-logs-datasource",
+ "uid": "victorialogs1"
+ },
"editorMode": "code",
- "exemplar": false,
- "expr": "kolab_users_count",
- "instant": false,
- "legendFormat": "{{state}}",
- "range": true,
- "refId": "A"
+ "expr": "container_name:proxy\n| stats by (1m, code) count() as count\n| math (count / 60) as count\n",
+ "legendFormat": "Code: {{code}}",
+ "queryType": "statsRange",
+ "refId": "A",
+ "step": ""
}
],
- "timeFrom": "30d",
- "title": "Users",
+ "title": "Requests",
"type": "timeseries"
},
{
"datasource": {
- "type": "prometheus",
- "uid": "prometheus1"
+ "type": "victoriametrics-logs-datasource",
+ "uid": "victorialogs1"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"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",
"showValues": false,
- "spanNulls": false,
+ "spanNulls": 3600000,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": 0
},
{
"color": "red",
"value": 80
}
]
- }
+ },
+ "unit": "cps"
},
"overrides": []
},
"gridPos": {
- "h": 9,
- "w": 3,
- "x": 3,
+ "h": 8,
+ "w": 12,
+ "x": 12,
"y": 1
},
- "id": 26,
- "interval": "1h",
+ "id": 35,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"hideZeros": false,
"mode": "single",
"sort": "none"
}
},
- "pluginVersion": "12.4.0",
+ "pluginVersion": "12.4.1",
"targets": [
{
+ "datasource": {
+ "type": "victoriametrics-logs-datasource",
+ "uid": "victorialogs1"
+ },
"editorMode": "code",
- "expr": "kolab_payers_active_count ",
- "legendFormat": "Payers active",
- "range": true,
+ "expr": "container_name:proxy\n| \"Connection refused\"\n| stats by (1m) count(*) as count\n| math (count / 60) as count",
+ "legendFormat": "Refused connections",
+ "queryType": "statsRange",
"refId": "A"
+ }
+ ],
+ "title": "Connection refused",
+ "type": "timeseries"
+ },
+ {
+ "datasource": {
+ "type": "victoriametrics-logs-datasource",
+ "uid": "victorialogs1"
+ },
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "palette-classic"
+ },
+ "custom": {
+ "axisBorderShow": false,
+ "axisCenteredZero": false,
+ "axisColorMode": "text",
+ "axisLabel": "",
+ "axisPlacement": "auto",
+ "barAlignment": 0,
+ "barWidthFactor": 0.6,
+ "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",
+ "showValues": false,
+ "spanNulls": 3600000,
+ "stacking": {
+ "group": "A",
+ "mode": "none"
+ },
+ "thresholdsStyle": {
+ "mode": "off"
+ }
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green",
+ "value": 0
+ },
+ {
+ "color": "red",
+ "value": 80
+ }
+ ]
+ },
+ "unit": "ms"
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 8,
+ "w": 12,
+ "x": 0,
+ "y": 9
+ },
+ "id": 36,
+ "options": {
+ "legend": {
+ "calcs": [],
+ "displayMode": "list",
+ "placement": "bottom",
+ "showLegend": true
},
+ "tooltip": {
+ "hideZeros": false,
+ "mode": "single",
+ "sort": "none"
+ }
+ },
+ "pluginVersion": "12.4.1",
+ "targets": [
{
"datasource": {
- "type": "prometheus",
- "uid": "prometheus1"
+ "type": "victoriametrics-logs-datasource",
+ "uid": "victorialogs1"
+ },
+ "editorMode": "code",
+ "expr": "container_name:proxy\n| stats by (code)\n avg(size) as avg_duration,\n max(size) as max_duration",
+ "legendFormat": "{{code}}",
+ "queryType": "statsRange",
+ "refId": "A"
+ }
+ ],
+ "title": "Requests duration by status",
+ "type": "timeseries"
+ },
+ {
+ "datasource": {
+ "type": "victoriametrics-logs-datasource",
+ "uid": "victorialogs1"
+ },
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "palette-classic"
+ },
+ "custom": {
+ "axisBorderShow": false,
+ "axisCenteredZero": false,
+ "axisColorMode": "text",
+ "axisLabel": "",
+ "axisPlacement": "auto",
+ "barAlignment": 0,
+ "barWidthFactor": 0.6,
+ "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",
+ "showValues": false,
+ "spanNulls": false,
+ "stacking": {
+ "group": "A",
+ "mode": "none"
+ },
+ "thresholdsStyle": {
+ "mode": "off"
+ }
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green",
+ "value": 0
+ },
+ {
+ "color": "red",
+ "value": 80
+ }
+ ]
+ },
+ "unit": "cps"
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 8,
+ "w": 12,
+ "x": 12,
+ "y": 9
+ },
+ "id": 38,
+ "options": {
+ "legend": {
+ "calcs": [],
+ "displayMode": "list",
+ "placement": "bottom",
+ "showLegend": true
+ },
+ "tooltip": {
+ "hideZeros": false,
+ "mode": "single",
+ "sort": "none"
+ }
+ },
+ "pluginVersion": "12.4.1",
+ "targets": [
+ {
+ "datasource": {
+ "type": "victoriametrics-logs-datasource",
+ "uid": "victorialogs1"
},
- "editorMode": "builder",
- "expr": "kolab_payers_count",
- "instant": false,
- "legendFormat": "Payers",
- "range": true,
- "refId": "B"
+ "editorMode": "code",
+ "expr": "container_name: proxy\n| closed keepalive connection\n| stats count(*) as count\n| math (count / 60) as count",
+ "legendFormat": "Closed keepalive connections",
+ "queryType": "statsRange",
+ "refId": "A"
}
],
- "timeFrom": "30d",
- "title": "Payers",
+ "title": "Closed keepalive connections",
"type": "timeseries"
},
{
"collapsed": true,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
- "y": 10
+ "y": 17
},
- "id": 8,
+ "id": 4,
"panels": [
{
"datasource": {
"type": "prometheus",
"uid": "prometheus1"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
- "lineInterpolation": "smooth",
+ "lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"showValues": false,
- "spanNulls": false,
+ "spanNulls": 3600000,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": 0
- },
- {
- "color": "red",
- "value": 80
}
]
- }
+ },
+ "unit": "cps"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
- "y": 128
+ "y": 178
},
- "id": 10,
+ "id": 6,
"options": {
"legend": {
- "calcs": [],
+ "calcs": [
+ "mean"
+ ],
"displayMode": "list",
- "placement": "right",
+ "placement": "bottom",
"showLegend": true
},
"tooltip": {
"hideZeros": false,
"mode": "single",
"sort": "none"
}
},
- "pluginVersion": "12.4.0",
+ "pluginVersion": "12.4.1",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prometheus1"
},
"editorMode": "code",
- "expr": "sum(rate(container_cpu_usage_seconds_total{cluster=\"\", container!=\"POD\"}[5m])) by (pod, namespace)",
- "hide": true,
+ "expr": "kolab_log_postfix_relay_messages_total_rate1m{relay!=\"int-imapf.kolabnow.com\", status=\"sent\"}/60",
"instant": false,
- "legendFormat": "__auto",
+ "legendFormat": "Sent email",
"range": true,
- "refId": "B"
+ "refId": "Sent email"
},
{
"datasource": {
"type": "prometheus",
"uid": "prometheus1"
},
"editorMode": "code",
- "expr": "sum(rate(container_cpu_usage_seconds_total{pod!=\"\"}[5m])) by (pod)",
+ "expr": "kolab_log_postfix_relay_messages_total_rate1m{relay=\"int-imapf.kolabnow.com\", status=\"sent\"}/60",
"instant": false,
- "legendFormat": "__auto",
+ "legendFormat": "Local deliveries",
"range": true,
- "refId": "A"
+ "refId": "Local deliveries"
+ },
+ {
+ "datasource": {
+ "type": "prometheus",
+ "uid": "prometheus1"
+ },
+ "editorMode": "code",
+ "expr": "kolab_log_postfix_relay_messages_total_rate1m{status!=\"sent\"}/60",
+ "instant": false,
+ "legendFormat": "Deferred/Bounced",
+ "range": true,
+ "refId": "Deferred/Bounced"
}
],
- "title": "CPU",
+ "title": "Sent emails",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "prometheus1"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"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",
"showValues": false,
- "spanNulls": false,
+ "spanNulls": 3600000,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": 0
},
{
"color": "red",
"value": 80
}
]
- }
+ },
+ "unit": "s"
},
- "overrides": []
- },
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 0,
- "y": 136
+ "overrides": [
+ {
+ "__systemRef": "hideSeriesFrom",
+ "matcher": {
+ "id": "byNames",
+ "options": {
+ "mode": "exclude",
+ "names": [
+ "amavis-originating type: max_delay, status: sent",
+ "amavis-originating type: delay, status: sent"
+ ],
+ "prefix": "All except:",
+ "readOnly": true
+ }
+ },
+ "properties": [
+ {
+ "id": "custom.hideFrom",
+ "value": {
+ "legend": false,
+ "tooltip": true,
+ "viz": true
+ }
+ }
+ ]
+ }
+ ]
},
- "id": 9,
+ "gridPos": {
+ "h": 8,
+ "w": 12,
+ "x": 12,
+ "y": 178
+ },
+ "id": 21,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
- "placement": "right",
+ "placement": "bottom",
"showLegend": true
},
"tooltip": {
"hideZeros": false,
"mode": "single",
"sort": "none"
}
},
- "pluginVersion": "12.4.0",
+ "pluginVersion": "12.4.1",
"targets": [
{
- "disableTextWrap": false,
- "editorMode": "code",
- "expr": "sum(container_memory_usage_bytes{container!=\"\"} / 1024 / 1024) without (id, pod, image, instance, job, name)",
- "fullMetaSearch": false,
- "includeNullMetadata": true,
- "legendFormat": "__auto",
- "range": true,
- "refId": "A",
- "useBackend": false
- },
- {
- "datasource": {
- "type": "prometheus",
- "uid": "prometheus1"
- },
"editorMode": "code",
- "expr": "sum(\n label_replace(\n container_memory_usage_bytes{pod!=\"\"},\n \"deployment\", \"$1\", \"pod\", \"(.+)-[^-]+-[^-]+\"\n ) / 1024 / 1024\n) by (namespace,deployment)",
- "hide": true,
- "instant": false,
- "legendFormat": "__auto",
+ "expr": "kolab_log_postfix_relay_delay_seconds",
+ "legendFormat": "{{relay}} type: {{stats_result}}, status: {{status}}",
"range": true,
- "refId": "B"
+ "refId": "Relay delays"
}
],
- "title": "Memory",
+ "title": "Relay delays",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "prometheus1"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"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",
"showValues": false,
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": 0
},
+ {
+ "color": "#EAB839",
+ "value": 400
+ },
{
"color": "red",
- "value": 80
+ "value": 1000
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
- "y": 144
+ "y": 186
},
- "id": 11,
+ "id": 20,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"hideZeros": false,
"mode": "single",
"sort": "none"
}
},
- "pluginVersion": "12.4.0",
+ "pluginVersion": "12.4.1",
"targets": [
{
- "editorMode": "code",
- "expr": "sum by (persistentvolumeclaim) (kubelet_volume_stats_available_bytes / 1024 / 1024)",
- "legendFormat": "__auto",
+ "editorMode": "builder",
+ "expr": "sum by(queue) (kolab_mx_queue_length)",
+ "legendFormat": "{{label_name}}",
"range": true,
- "refId": "A"
+ "refId": "Queues"
}
],
- "title": "PVC available mb",
+ "title": "Mail queues",
"type": "timeseries"
- }
- ],
- "title": "Kubernetes",
- "type": "row"
- },
- {
- "collapsed": false,
- "gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 11
- },
- "id": 4,
- "panels": [],
- "title": "Performance metrics",
- "type": "row"
- },
- {
- "datasource": {
- "type": "prometheus",
- "uid": "prometheus1"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisBorderShow": false,
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "barWidthFactor": 0.6,
- "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",
- "showValues": false,
- "spanNulls": 3600000,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "off"
- }
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": 0
- }
- ]
- }
- },
- "overrides": []
- },
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 0,
- "y": 12
- },
- "id": 6,
- "options": {
- "legend": {
- "calcs": [
- "mean"
- ],
- "displayMode": "list",
- "placement": "bottom",
- "showLegend": true
},
- "tooltip": {
- "hideZeros": false,
- "mode": "single",
- "sort": "none"
- }
- },
- "pluginVersion": "12.4.0",
- "targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prometheus1"
},
- "editorMode": "code",
- "expr": "kolab_log_postfix_relay_messages_total_rate1m{relay!=\"int-imapf.kolabnow.com\", status=\"sent\"}/60",
- "instant": false,
- "legendFormat": "Sent email",
- "range": true,
- "refId": "Sent email"
- },
- {
- "datasource": {
- "type": "prometheus",
- "uid": "prometheus1"
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "palette-classic"
+ },
+ "custom": {
+ "axisBorderShow": false,
+ "axisCenteredZero": false,
+ "axisColorMode": "text",
+ "axisLabel": "",
+ "axisPlacement": "auto",
+ "barAlignment": 0,
+ "barWidthFactor": 0.6,
+ "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",
+ "showValues": false,
+ "spanNulls": true,
+ "stacking": {
+ "group": "A",
+ "mode": "none"
+ },
+ "thresholdsStyle": {
+ "mode": "off"
+ }
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green",
+ "value": 0
+ }
+ ]
+ },
+ "unit": "reqps"
+ },
+ "overrides": []
},
- "editorMode": "code",
- "expr": "kolab_log_postfix_relay_messages_total_rate1m{relay=\"int-imapf.kolabnow.com\", status=\"sent\"}/60",
- "instant": false,
- "legendFormat": "Local deliveries",
- "range": true,
- "refId": "Local deliveries"
+ "gridPos": {
+ "h": 8,
+ "w": 12,
+ "x": 12,
+ "y": 186
+ },
+ "id": 5,
+ "options": {
+ "legend": {
+ "calcs": [],
+ "displayMode": "list",
+ "placement": "bottom",
+ "showLegend": true
+ },
+ "tooltip": {
+ "hideZeros": false,
+ "mode": "single",
+ "sort": "none"
+ }
+ },
+ "pluginVersion": "12.4.1",
+ "targets": [
+ {
+ "datasource": {
+ "type": "prometheus",
+ "uid": "prometheus1"
+ },
+ "editorMode": "code",
+ "expr": "sum(kolab_log_authenticate_rate1m/60)",
+ "instant": false,
+ "interval": "",
+ "legendFormat": "Authentication rate",
+ "range": true,
+ "refId": "A"
+ }
+ ],
+ "title": "Authentication attempts",
+ "type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "prometheus1"
},
- "editorMode": "code",
- "expr": "kolab_log_postfix_relay_messages_total_rate1m{status!=\"sent\"}/60",
- "instant": false,
- "legendFormat": "Deferred/Bounced",
- "range": true,
- "refId": "Deferred/Bounced"
- }
- ],
- "title": "Sent emails",
- "type": "timeseries"
- },
- {
- "datasource": {
- "type": "prometheus",
- "uid": "prometheus1"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisBorderShow": false,
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "barWidthFactor": 0.6,
- "drawStyle": "line",
- "fillOpacity": 0,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "insertNulls": false,
- "lineInterpolation": "linear",
- "lineWidth": 1,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "palette-classic"
+ },
+ "custom": {
+ "axisBorderShow": false,
+ "axisCenteredZero": false,
+ "axisColorMode": "text",
+ "axisLabel": "",
+ "axisPlacement": "auto",
+ "barAlignment": 0,
+ "barWidthFactor": 0.6,
+ "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",
+ "showValues": false,
+ "spanNulls": true,
+ "stacking": {
+ "group": "A",
+ "mode": "none"
+ },
+ "thresholdsStyle": {
+ "mode": "off"
+ }
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green",
+ "value": 0
+ }
+ ]
+ },
+ "unit": "reqps"
},
- "showPoints": "auto",
- "showValues": false,
- "spanNulls": 3600000,
- "stacking": {
- "group": "A",
- "mode": "none"
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 8,
+ "w": 12,
+ "x": 0,
+ "y": 194
+ },
+ "id": 7,
+ "options": {
+ "legend": {
+ "calcs": [],
+ "displayMode": "list",
+ "placement": "bottom",
+ "showLegend": true
},
- "thresholdsStyle": {
- "mode": "off"
+ "tooltip": {
+ "hideZeros": false,
+ "mode": "single",
+ "sort": "none"
}
},
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": 0
+ "pluginVersion": "12.4.1",
+ "targets": [
+ {
+ "datasource": {
+ "type": "prometheus",
+ "uid": "prometheus1"
},
- {
- "color": "red",
- "value": 80
- }
- ]
- }
- },
- "overrides": []
- },
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 12,
- "y": 12
- },
- "id": 21,
- "options": {
- "legend": {
- "calcs": [],
- "displayMode": "list",
- "placement": "bottom",
- "showLegend": true
+ "editorMode": "code",
+ "expr": "{\"kolab_log_imap_login_rate1m\"}/60",
+ "instant": false,
+ "legendFormat": "{{pod_name}}",
+ "range": true,
+ "refId": "A"
+ },
+ {
+ "datasource": {
+ "type": "prometheus",
+ "uid": "prometheus1"
+ },
+ "editorMode": "code",
+ "expr": "sum({\"kolab_log_imap_login_rate1m\", pod_name=~\"imapb.*\"})/60",
+ "instant": false,
+ "legendFormat": "Backend rate",
+ "range": true,
+ "refId": "Backends"
+ }
+ ],
+ "title": "imap authentication rate",
+ "type": "timeseries"
},
- "tooltip": {
- "hideZeros": false,
- "mode": "single",
- "sort": "none"
- }
- },
- "pluginVersion": "12.4.0",
- "targets": [
{
- "editorMode": "code",
- "expr": "kolab_log_postfix_relay_delay_seconds",
- "legendFormat": "{{relay}} type: {{stats_result}}, status: {{status}}",
- "range": true,
- "refId": "Relay delays"
- }
- ],
- "title": "Relay delays",
- "type": "timeseries"
- },
- {
- "datasource": {
- "type": "prometheus",
- "uid": "prometheus1"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
+ "datasource": {
+ "type": "victoriametrics-logs-datasource",
+ "uid": "victorialogs1"
},
- "custom": {
- "axisBorderShow": false,
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "barWidthFactor": 0.6,
- "drawStyle": "line",
- "fillOpacity": 0,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
+ "fieldConfig": {
+ "defaults": {
+ "custom": {
+ "hideFrom": {
+ "legend": false,
+ "tooltip": false,
+ "viz": false
+ },
+ "scaleDistribution": {
+ "type": "linear"
+ }
+ }
},
- "insertNulls": false,
- "lineInterpolation": "linear",
- "lineWidth": 1,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 8,
+ "w": 12,
+ "x": 12,
+ "y": 194
+ },
+ "id": 32,
+ "options": {
+ "calculate": false,
+ "cellGap": 1,
+ "color": {
+ "exponent": 0.5,
+ "fill": "dark-orange",
+ "mode": "scheme",
+ "reverse": false,
+ "scale": "exponential",
+ "scheme": "Oranges",
+ "steps": 64
},
- "showPoints": "auto",
- "showValues": false,
- "spanNulls": false,
- "stacking": {
- "group": "A",
- "mode": "none"
+ "exemplars": {
+ "color": "rgba(255,0,255,0.7)"
},
- "thresholdsStyle": {
- "mode": "off"
+ "filterValues": {
+ "le": 1e-9
+ },
+ "legend": {
+ "show": true
+ },
+ "rowsFrame": {
+ "layout": "auto"
+ },
+ "tooltip": {
+ "mode": "single",
+ "showColorScale": false,
+ "yHistogram": false
+ },
+ "yAxis": {
+ "axisPlacement": "left",
+ "reverse": false,
+ "unit": ""
}
},
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": 0
- },
- {
- "color": "#EAB839",
- "value": 400
+ "pluginVersion": "12.4.1",
+ "targets": [
+ {
+ "datasource": {
+ "type": "victoriametrics-logs-datasource",
+ "uid": "victorialogs1"
},
- {
- "color": "red",
- "value": 1000
- }
- ]
- }
- },
- "overrides": []
- },
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 0,
- "y": 20
- },
- "id": 20,
- "options": {
- "legend": {
- "calcs": [],
- "displayMode": "list",
- "placement": "bottom",
- "showLegend": true
+ "editorMode": "code",
+ "expr": "container_name:postfix\n| \"connect from\" \n| extract \"connect from <source_name>[<source_ip>]\"\n| stats by (1m, source_ip, source_name) count(*) as total_connections\n| sort by (total_connections) desc\n| limit 10",
+ "legendFormat": "{{source_name}}({{source_ip}})",
+ "queryType": "statsRange",
+ "refId": "A"
+ }
+ ],
+ "title": "Postfix connections",
+ "type": "heatmap"
},
- "tooltip": {
- "hideZeros": false,
- "mode": "single",
- "sort": "none"
- }
- },
- "pluginVersion": "12.4.0",
- "targets": [
{
- "editorMode": "builder",
- "expr": "sum by(queue) (kolab_mx_queue_length)",
- "legendFormat": "{{label_name}}",
- "range": true,
- "refId": "Queues"
- }
- ],
- "title": "Mail queues",
- "type": "timeseries"
- },
- {
- "datasource": {
- "type": "prometheus",
- "uid": "prometheus1"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
+ "datasource": {
+ "type": "prometheus",
+ "uid": "prometheus1"
},
- "custom": {
- "axisBorderShow": false,
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "barWidthFactor": 0.6,
- "drawStyle": "line",
- "fillOpacity": 0,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "insertNulls": false,
- "lineInterpolation": "linear",
- "lineWidth": 1,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "palette-classic"
+ },
+ "custom": {
+ "axisBorderShow": false,
+ "axisCenteredZero": false,
+ "axisColorMode": "text",
+ "axisLabel": "",
+ "axisPlacement": "auto",
+ "barAlignment": 0,
+ "barWidthFactor": 0.6,
+ "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",
+ "showValues": false,
+ "spanNulls": false,
+ "stacking": {
+ "group": "A",
+ "mode": "none"
+ },
+ "thresholdsStyle": {
+ "mode": "off"
+ }
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green",
+ "value": 0
+ },
+ {
+ "color": "red",
+ "value": 80
+ }
+ ]
+ },
+ "unit": "reqps"
},
- "showPoints": "auto",
- "showValues": false,
- "spanNulls": true,
- "stacking": {
- "group": "A",
- "mode": "none"
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 10,
+ "w": 12,
+ "x": 0,
+ "y": 202
+ },
+ "id": 1,
+ "options": {
+ "legend": {
+ "calcs": [],
+ "displayMode": "list",
+ "placement": "bottom",
+ "showLegend": true
},
- "thresholdsStyle": {
- "mode": "off"
+ "tooltip": {
+ "hideZeros": false,
+ "mode": "single",
+ "sort": "none"
}
},
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": 0
- }
- ]
- }
- },
- "overrides": []
- },
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 12,
- "y": 20
- },
- "id": 5,
- "options": {
- "legend": {
- "calcs": [],
- "displayMode": "list",
- "placement": "bottom",
- "showLegend": true
+ "pluginVersion": "12.4.1",
+ "targets": [
+ {
+ "datasource": {
+ "type": "prometheus",
+ "uid": "prometheus1"
+ },
+ "disableTextWrap": false,
+ "editorMode": "code",
+ "expr": "kolab_horizon_jobs_per_minute/60",
+ "fullMetaSearch": false,
+ "includeNullMetadata": true,
+ "legendFormat": "Job rate",
+ "range": true,
+ "refId": "A",
+ "useBackend": false
+ }
+ ],
+ "title": "Horizon jobs",
+ "type": "timeseries"
},
- "tooltip": {
- "hideZeros": false,
- "mode": "single",
- "sort": "none"
- }
- },
- "pluginVersion": "12.4.0",
- "targets": [
{
"datasource": {
- "type": "prometheus",
- "uid": "prometheus1"
+ "type": "victoriametrics-logs-datasource",
+ "uid": "victorialogs1"
+ },
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "palette-classic"
+ },
+ "custom": {
+ "axisBorderShow": false,
+ "axisCenteredZero": false,
+ "axisColorMode": "text",
+ "axisLabel": "",
+ "axisPlacement": "auto",
+ "barAlignment": 0,
+ "barWidthFactor": 0.6,
+ "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",
+ "showValues": false,
+ "spanNulls": 3600000,
+ "stacking": {
+ "group": "A",
+ "mode": "none"
+ },
+ "thresholdsStyle": {
+ "mode": "off"
+ }
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green",
+ "value": 0
+ },
+ {
+ "color": "red",
+ "value": 80
+ }
+ ]
+ },
+ "unit": "reqps"
+ },
+ "overrides": []
},
- "editorMode": "code",
- "expr": "sum(kolab_log_authenticate_rate1m/60)",
- "instant": false,
- "interval": "",
- "legendFormat": "Authentication rate",
- "range": true,
- "refId": "A"
+ "gridPos": {
+ "h": 10,
+ "w": 12,
+ "x": 12,
+ "y": 202
+ },
+ "id": 33,
+ "options": {
+ "legend": {
+ "calcs": [],
+ "displayMode": "list",
+ "placement": "bottom",
+ "showLegend": true
+ },
+ "tooltip": {
+ "hideZeros": false,
+ "mode": "single",
+ "sort": "none"
+ }
+ },
+ "pluginVersion": "12.4.1",
+ "targets": [
+ {
+ "datasource": {
+ "type": "victoriametrics-logs-datasource",
+ "uid": "victorialogs1"
+ },
+ "editorMode": "code",
+ "expr": "container_name:postfix\n| \"NOQUEUE\"\n| extract \"]: <error_code> \"\n| stats by (1m, error_code) count(*) as total_connections\n| math (total_connections / 60) as total_connections",
+ "legendFormat": "Error code: {{error_code}} {{error_message}}",
+ "queryType": "statsRange",
+ "refId": "A"
+ }
+ ],
+ "title": "Postfix NOQUEUE",
+ "type": "timeseries"
}
],
- "title": "Authentication attempts",
- "type": "timeseries"
+ "title": "Performance metrics",
+ "type": "row"
+ },
+ {
+ "collapsed": false,
+ "gridPos": {
+ "h": 1,
+ "w": 24,
+ "x": 0,
+ "y": 18
+ },
+ "id": 39,
+ "panels": [],
+ "title": "Kolab Services",
+ "type": "row"
},
{
"datasource": {
- "type": "prometheus",
- "uid": "prometheus1"
+ "type": "victoriametrics-logs-datasource",
+ "uid": "victorialogs1"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"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",
"showValues": false,
- "spanNulls": true,
+ "spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": 0
+ },
+ {
+ "color": "red",
+ "value": 80
}
]
- }
+ },
+ "unit": "reqps"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
- "y": 28
+ "y": 19
},
- "id": 7,
+ "id": 40,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"hideZeros": false,
"mode": "single",
"sort": "none"
}
},
- "pluginVersion": "12.4.0",
+ "pluginVersion": "12.4.1",
"targets": [
{
"datasource": {
- "type": "prometheus",
- "uid": "prometheus1"
+ "type": "victoriametrics-logs-datasource",
+ "uid": "victorialogs1"
},
"editorMode": "code",
- "expr": "{\"kolab_log_imap_login_rate1m\"}/60",
- "instant": false,
- "legendFormat": "{{pod_name}}",
- "range": true,
- "refId": "A"
+ "expr": "pod_name: kolab-services* | \"api/webhooks/\" | extract \"api/webhooks/<hook> [<memory>]: <duration> sec. <status> .\" | stats by (hook) count(*) as count | math(count / 60) as count",
+ "legendFormat": "Hook: {{hook}}",
+ "queryType": "statsRange",
+ "refId": "Requests"
},
{
"datasource": {
- "type": "prometheus",
- "uid": "prometheus1"
+ "type": "victoriametrics-logs-datasource",
+ "uid": "victorialogs1"
},
"editorMode": "code",
- "expr": "sum({\"kolab_log_imap_login_rate1m\", pod_name=~\"imapb.*\"})/60",
- "instant": false,
- "legendFormat": "Backend rate",
- "range": true,
- "refId": "Backends"
+ "expr": "pod_name: kolab-services* | \"api/webhooks/\" | extract \"api/webhooks/<hook> [<memory>]: <duration> sec. <status> .\" | filter code:>300| stats by (hook) count(*) as count | math(count / 60) as count",
+ "legendFormat": "Errors: {{hook}}",
+ "queryType": "statsRange",
+ "refId": "Errors"
}
],
- "title": "imap authentication rate",
+ "title": "Services requests",
"type": "timeseries"
},
{
"datasource": {
- "type": "prometheus",
- "uid": "prometheus1"
+ "type": "victoriametrics-logs-datasource",
+ "uid": "victorialogs1"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"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",
"showValues": false,
- "spanNulls": false,
+ "spanNulls": 3600000,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": 0
},
{
"color": "red",
"value": 80
}
]
- }
+ },
+ "unit": "s"
},
"overrides": []
},
"gridPos": {
- "h": 10,
+ "h": 8,
"w": 12,
- "x": 0,
- "y": 36
+ "x": 12,
+ "y": 19
},
- "id": 1,
+ "id": 41,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"hideZeros": false,
"mode": "single",
"sort": "none"
}
},
- "pluginVersion": "12.4.0",
+ "pluginVersion": "12.4.1",
"targets": [
{
"datasource": {
- "type": "prometheus",
- "uid": "prometheus1"
+ "type": "victoriametrics-logs-datasource",
+ "uid": "victorialogs1"
},
- "disableTextWrap": false,
"editorMode": "code",
- "expr": "kolab_horizon_jobs_per_minute/60",
- "fullMetaSearch": false,
- "includeNullMetadata": true,
- "legendFormat": "Job rate",
- "range": true,
- "refId": "A",
- "useBackend": false
+ "expr": "pod_name: kolab-services* | \"api/webhooks/\" | extract \"api/webhooks/<hook> [<memory>]: <duration> sec. <status> .\" | stats by (hook) avg(duration) as duration, max(duration) as max_duration",
+ "queryType": "statsRange",
+ "refId": "A"
}
],
- "title": "Horizon jobs per minute",
+ "title": "Request duration",
"type": "timeseries"
},
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
- "y": 46
+ "y": 27
},
"id": 3,
"panels": [],
"title": "Logs",
"type": "row"
},
{
"datasource": {
"type": "victoriametrics-logs-datasource",
"uid": "victorialogs1"
},
"fieldConfig": {
"defaults": {},
"overrides": []
},
"gridPos": {
"h": 9,
"w": 24,
"x": 0,
- "y": 47
+ "y": 28
},
"id": 16,
"options": {
"dedupStrategy": "none",
"enableInfiniteScrolling": true,
"enableLogDetails": true,
"showControls": true,
"showTime": true,
"sortOrder": "Descending",
"syntaxHighlighting": true,
"unwrappedColumns": false,
"wrapLogMessage": false
},
- "pluginVersion": "12.4.0",
+ "pluginVersion": "12.4.1",
+ "targets": [
+ {
+ "datasource": {
+ "type": "victoriametrics-logs-datasource",
+ "uid": "victorialogs1"
+ },
+ "editorMode": "code",
+ "expr": "container_name: proxy",
+ "queryType": "instant",
+ "refId": "A"
+ }
+ ],
+ "title": "Proxy",
+ "type": "logs"
+ },
+ {
+ "datasource": {
+ "type": "victoriametrics-logs-datasource",
+ "uid": "victorialogs1"
+ },
+ "fieldConfig": {
+ "defaults": {},
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 9,
+ "w": 24,
+ "x": 0,
+ "y": 37
+ },
+ "id": 2,
+ "options": {
+ "dedupStrategy": "none",
+ "enableInfiniteScrolling": false,
+ "enableLogDetails": true,
+ "prettifyLogMessage": false,
+ "showCommonLabels": false,
+ "showControls": false,
+ "showLabels": false,
+ "showTime": true,
+ "sortOrder": "Descending",
+ "unwrappedColumns": false,
+ "wrapLogMessage": false
+ },
+ "pluginVersion": "12.4.1",
+ "targets": [
+ {
+ "datasource": {
+ "type": "victoriametrics-logs-datasource",
+ "uid": "victorialogs1"
+ },
+ "editorMode": "code",
+ "expr": "container_name: imap",
+ "queryType": "instant",
+ "refId": "A"
+ }
+ ],
+ "title": "imap",
+ "type": "logs"
+ },
+ {
+ "datasource": {
+ "type": "victoriametrics-logs-datasource",
+ "uid": "victorialogs1"
+ },
+ "fieldConfig": {
+ "defaults": {},
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 8,
+ "w": 24,
+ "x": 0,
+ "y": 46
+ },
+ "id": 17,
+ "options": {
+ "dedupStrategy": "none",
+ "enableInfiniteScrolling": true,
+ "enableLogDetails": true,
+ "showControls": true,
+ "showTime": true,
+ "sortOrder": "Descending",
+ "syntaxHighlighting": true,
+ "unwrappedColumns": false,
+ "wrapLogMessage": false
+ },
+ "pluginVersion": "12.4.1",
+ "targets": [
+ {
+ "datasource": {
+ "type": "victoriametrics-logs-datasource",
+ "uid": "victorialogs1"
+ },
+ "direction": "desc",
+ "editorMode": "code",
+ "expr": "container_name: roundcube",
+ "queryType": "instant",
+ "refId": "A"
+ }
+ ],
+ "title": "Roundcube",
+ "type": "logs"
+ },
+ {
+ "datasource": {
+ "type": "victoriametrics-logs-datasource",
+ "uid": "victorialogs1"
+ },
+ "fieldConfig": {
+ "defaults": {},
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 8,
+ "w": 24,
+ "x": 0,
+ "y": 54
+ },
+ "id": 15,
+ "options": {
+ "dedupStrategy": "none",
+ "enableInfiniteScrolling": true,
+ "enableLogDetails": true,
+ "showControls": false,
+ "showTime": true,
+ "sortOrder": "Descending",
+ "syntaxHighlighting": true,
+ "unwrappedColumns": false,
+ "wrapLogMessage": false
+ },
+ "pluginVersion": "12.4.1",
+ "targets": [
+ {
+ "datasource": {
+ "type": "victoriametrics-logs-datasource",
+ "uid": "victorialogs1"
+ },
+ "direction": "desc",
+ "editorMode": "code",
+ "expr": "container_name: kolab",
+ "queryType": "instant",
+ "refId": "A"
+ }
+ ],
+ "title": "Kolab",
+ "type": "logs"
+ },
+ {
+ "datasource": {
+ "type": "victoriametrics-logs-datasource",
+ "uid": "victorialogs1"
+ },
+ "fieldConfig": {
+ "defaults": {},
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 8,
+ "w": 24,
+ "x": 0,
+ "y": 62
+ },
+ "id": 18,
+ "options": {
+ "dedupStrategy": "none",
+ "enableInfiniteScrolling": true,
+ "enableLogDetails": true,
+ "showControls": true,
+ "showTime": true,
+ "sortOrder": "Descending",
+ "syntaxHighlighting": true,
+ "unwrappedColumns": false,
+ "wrapLogMessage": false
+ },
+ "pluginVersion": "12.4.1",
"targets": [
{
"datasource": {
"type": "victoriametrics-logs-datasource",
"uid": "victorialogs1"
},
"editorMode": "code",
- "expr": "container_name: proxy",
+ "expr": "container_name: postfix",
"queryType": "instant",
"refId": "A"
}
],
- "title": "Proxy",
+ "title": "Postfix",
"type": "logs"
},
{
"datasource": {
"type": "victoriametrics-logs-datasource",
"uid": "victorialogs1"
},
"fieldConfig": {
"defaults": {},
"overrides": []
},
"gridPos": {
- "h": 9,
+ "h": 8,
"w": 24,
"x": 0,
- "y": 56
+ "y": 70
},
- "id": 2,
+ "id": 19,
"options": {
"dedupStrategy": "none",
- "enableInfiniteScrolling": false,
+ "enableInfiniteScrolling": true,
"enableLogDetails": true,
- "prettifyLogMessage": false,
- "showCommonLabels": false,
- "showControls": false,
- "showLabels": false,
- "showTime": false,
+ "showControls": true,
+ "showTime": true,
"sortOrder": "Descending",
+ "syntaxHighlighting": true,
"unwrappedColumns": false,
"wrapLogMessage": false
},
- "pluginVersion": "12.4.0",
+ "pluginVersion": "12.4.1",
"targets": [
{
"datasource": {
"type": "victoriametrics-logs-datasource",
"uid": "victorialogs1"
},
- "editorMode": "code",
- "expr": "container_name: imap",
- "queryType": "instant",
- "refId": "A"
+ "editorMode": "code",
+ "expr": "container_name: amavis",
+ "queryType": "instant",
+ "refId": "A"
+ }
+ ],
+ "title": "Amavis",
+ "type": "logs"
+ },
+ {
+ "collapsed": true,
+ "gridPos": {
+ "h": 1,
+ "w": 24,
+ "x": 0,
+ "y": 78
+ },
+ "id": 27,
+ "panels": [
+ {
+ "datasource": {
+ "type": "victoriametrics-logs-datasource",
+ "uid": "victorialogs1"
+ },
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "palette-classic"
+ },
+ "custom": {
+ "axisBorderShow": false,
+ "axisCenteredZero": false,
+ "axisColorMode": "text",
+ "axisLabel": "",
+ "axisPlacement": "auto",
+ "barAlignment": 0,
+ "barWidthFactor": 0.6,
+ "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",
+ "showValues": false,
+ "spanNulls": true,
+ "stacking": {
+ "group": "A",
+ "mode": "none"
+ },
+ "thresholdsStyle": {
+ "mode": "off"
+ }
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green",
+ "value": 0
+ },
+ {
+ "color": "red",
+ "value": 80
+ }
+ ]
+ },
+ "unit": "ms"
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 8,
+ "w": 12,
+ "x": 0,
+ "y": 255
+ },
+ "id": 28,
+ "options": {
+ "legend": {
+ "calcs": [],
+ "displayMode": "list",
+ "placement": "bottom",
+ "showLegend": true
+ },
+ "tooltip": {
+ "hideZeros": false,
+ "mode": "single",
+ "sort": "none"
+ }
+ },
+ "pluginVersion": "12.4.1",
+ "targets": [
+ {
+ "datasource": {
+ "type": "victoriametrics-logs-datasource",
+ "uid": "victorialogs1"
+ },
+ "editorMode": "code",
+ "expr": "container_name:\"roundcube\"\n| Microsoft-Server-ActiveSync\n| Cmd=\n| extract \"] <duration> \\\"POST /Microsoft-Server-ActiveSync\"\n| extract \"Cmd=<cmd>&\"\n| extract \"DeviceId=<device_id>&\"\n| stats by (cmd) \n avg(duration) as \"Average\",\n max(duration) as \"Max\"",
+ "legendFormat": "",
+ "queryType": "statsRange",
+ "refId": "A"
+ }
+ ],
+ "title": "Command duration",
+ "type": "timeseries"
+ },
+ {
+ "datasource": {
+ "type": "victoriametrics-logs-datasource",
+ "uid": "victorialogs1"
+ },
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "palette-classic"
+ },
+ "custom": {
+ "axisBorderShow": false,
+ "axisCenteredZero": false,
+ "axisColorMode": "text",
+ "axisLabel": "",
+ "axisPlacement": "auto",
+ "barAlignment": 0,
+ "barWidthFactor": 0.6,
+ "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",
+ "showValues": false,
+ "spanNulls": true,
+ "stacking": {
+ "group": "A",
+ "mode": "none"
+ },
+ "thresholdsStyle": {
+ "mode": "off"
+ }
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green",
+ "value": 0
+ },
+ {
+ "color": "red",
+ "value": 80
+ }
+ ]
+ },
+ "unit": "reqps"
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 8,
+ "w": 12,
+ "x": 12,
+ "y": 255
+ },
+ "id": 29,
+ "options": {
+ "legend": {
+ "calcs": [],
+ "displayMode": "list",
+ "placement": "bottom",
+ "showLegend": true
+ },
+ "tooltip": {
+ "hideZeros": false,
+ "mode": "single",
+ "sort": "none"
+ }
+ },
+ "pluginVersion": "12.4.1",
+ "targets": [
+ {
+ "datasource": {
+ "type": "victoriametrics-logs-datasource",
+ "uid": "victorialogs1"
+ },
+ "editorMode": "code",
+ "expr": "container_name: roundcube\n| Microsoft-Server-ActiveSync\n| Cmd=\n| extract \"Cmd=<cmd>&\"\n| extract \"HTTP/1.0\\\" <status> <size>\"\n| stats by (cmd, 1m) count() as total_req\n| math(total_req / 60) as total_req",
+ "legendFormat": "Command: {{cmd}}",
+ "queryType": "statsRange",
+ "refId": "Request counts"
+ },
+ {
+ "datasource": {
+ "type": "victoriametrics-logs-datasource",
+ "uid": "victorialogs1"
+ },
+ "editorMode": "code",
+ "expr": "container_name: roundcube\n| Microsoft-Server-ActiveSync\n| Cmd=\n| extract \"Cmd=<cmd>&\"\n| extract \"HTTP/1.0\\\" <status> <size>\"\n| filter status >= 400\n| stats by (1m, cmd) count() as error_count\n| math(error_count / 60) as error_count",
+ "legendFormat": "Errors {{ cmd }}",
+ "queryType": "statsRange",
+ "refId": "Errors"
+ }
+ ],
+ "title": "Commands & Errors",
+ "type": "timeseries"
+ },
+ {
+ "datasource": {
+ "type": "victoriametrics-logs-datasource",
+ "uid": "victorialogs1"
+ },
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "palette-classic"
+ },
+ "custom": {
+ "hideFrom": {
+ "legend": false,
+ "tooltip": false,
+ "viz": false
+ }
+ },
+ "mappings": []
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 8,
+ "w": 12,
+ "x": 0,
+ "y": 263
+ },
+ "id": 30,
+ "options": {
+ "legend": {
+ "displayMode": "list",
+ "placement": "bottom",
+ "showLegend": true
+ },
+ "pieType": "pie",
+ "reduceOptions": {
+ "calcs": [
+ "lastNotNull"
+ ],
+ "fields": "",
+ "values": false
+ },
+ "sort": "desc",
+ "tooltip": {
+ "hideZeros": false,
+ "mode": "single",
+ "sort": "none"
+ }
+ },
+ "pluginVersion": "12.4.1",
+ "targets": [
+ {
+ "datasource": {
+ "type": "victoriametrics-logs-datasource",
+ "uid": "victorialogs1"
+ },
+ "editorMode": "code",
+ "expr": "container_name: roundcube\n| Microsoft-Server-ActiveSync\n| Cmd=\n| extract \"Cmd=<cmd>&\"\n| stats by (1m, cmd) count() as rate_per_minute",
+ "legendFormat": "{{cmd}}",
+ "queryType": "statsRange",
+ "refId": "A"
+ }
+ ],
+ "title": "Commands per minute",
+ "type": "piechart"
}
],
- "title": "imap",
- "type": "logs"
+ "title": "ActiveSync",
+ "type": "row"
},
{
- "datasource": {
- "type": "victoriametrics-logs-datasource",
- "uid": "victorialogs1"
- },
- "fieldConfig": {
- "defaults": {},
- "overrides": []
- },
+ "collapsed": true,
"gridPos": {
- "h": 8,
+ "h": 1,
"w": 24,
"x": 0,
- "y": 65
- },
- "id": 17,
- "options": {
- "dedupStrategy": "none",
- "enableInfiniteScrolling": true,
- "enableLogDetails": true,
- "showControls": true,
- "showTime": true,
- "sortOrder": "Descending",
- "syntaxHighlighting": true,
- "unwrappedColumns": false,
- "wrapLogMessage": false
+ "y": 79
},
- "pluginVersion": "12.4.0",
- "targets": [
+ "id": 22,
+ "panels": [
{
"datasource": {
"type": "victoriametrics-logs-datasource",
"uid": "victorialogs1"
},
- "direction": "desc",
- "editorMode": "code",
- "expr": "container_name: roundcube",
- "queryType": "instant",
- "refId": "A"
- }
- ],
- "title": "Roundcube",
- "type": "logs"
- },
- {
- "datasource": {
- "type": "victoriametrics-logs-datasource",
- "uid": "victorialogs1"
- },
- "fieldConfig": {
- "defaults": {},
- "overrides": []
- },
- "gridPos": {
- "h": 8,
- "w": 24,
- "x": 0,
- "y": 73
- },
- "id": 15,
- "options": {
- "dedupStrategy": "none",
- "enableInfiniteScrolling": true,
- "enableLogDetails": true,
- "showControls": false,
- "showTime": true,
- "sortOrder": "Descending",
- "syntaxHighlighting": true,
- "unwrappedColumns": false,
- "wrapLogMessage": false
- },
- "pluginVersion": "12.4.0",
- "targets": [
+ "description": "Shows deliveries that took over 100s. No data is a good sign.",
+ "fieldConfig": {
+ "defaults": {},
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 8,
+ "w": 12,
+ "x": 0,
+ "y": 256
+ },
+ "id": 14,
+ "options": {
+ "dedupStrategy": "none",
+ "enableInfiniteScrolling": false,
+ "enableLogDetails": true,
+ "showControls": false,
+ "showLabels": false,
+ "showTime": true,
+ "sortOrder": "Descending",
+ "syntaxHighlighting": true,
+ "timestampResolution": "ms",
+ "unwrappedColumns": false,
+ "wrapLogMessage": false
+ },
+ "pluginVersion": "12.4.1",
+ "targets": [
+ {
+ "datasource": {
+ "type": "victoriametrics-logs-datasource",
+ "uid": "victorialogs1"
+ },
+ "editorMode": "code",
+ "expr": "container_name:postfix\n| \"delay=\"\n| extract \"delay=<delay>,\"\n| delay:>100\n",
+ "maxLines": 50,
+ "queryType": "instant",
+ "refId": "A"
+ }
+ ],
+ "title": "Long delivery delays",
+ "type": "logs"
+ },
{
"datasource": {
"type": "victoriametrics-logs-datasource",
"uid": "victorialogs1"
},
- "direction": "desc",
- "editorMode": "code",
- "expr": "container_name: kolab",
- "queryType": "instant",
- "refId": "A"
- }
- ],
- "title": "Kolab",
- "type": "logs"
- },
- {
- "datasource": {
- "type": "victoriametrics-logs-datasource",
- "uid": "victorialogs1"
- },
- "fieldConfig": {
- "defaults": {},
- "overrides": []
- },
- "gridPos": {
- "h": 8,
- "w": 24,
- "x": 0,
- "y": 81
- },
- "id": 18,
- "options": {
- "dedupStrategy": "none",
- "enableInfiniteScrolling": true,
- "enableLogDetails": true,
- "showControls": true,
- "showTime": true,
- "sortOrder": "Descending",
- "syntaxHighlighting": true,
- "unwrappedColumns": false,
- "wrapLogMessage": false
- },
- "pluginVersion": "12.4.0",
- "targets": [
+ "fieldConfig": {
+ "defaults": {},
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 8,
+ "w": 12,
+ "x": 0,
+ "y": 264
+ },
+ "id": 31,
+ "options": {
+ "dedupStrategy": "none",
+ "enableInfiniteScrolling": false,
+ "enableLogDetails": true,
+ "showControls": false,
+ "showTime": false,
+ "sortOrder": "Descending",
+ "unwrappedColumns": false,
+ "wrapLogMessage": false
+ },
+ "pluginVersion": "12.4.1",
+ "targets": [
+ {
+ "datasource": {
+ "type": "victoriametrics-logs-datasource",
+ "uid": "victorialogs1"
+ },
+ "editorMode": "code",
+ "expr": "container_name:postfix\n| \"status=bounced\"",
+ "queryType": "instant",
+ "refId": "A"
+ }
+ ],
+ "title": "Bounces",
+ "type": "logs"
+ },
{
"datasource": {
"type": "victoriametrics-logs-datasource",
"uid": "victorialogs1"
},
- "editorMode": "code",
- "expr": "container_name: postfix",
- "queryType": "instant",
- "refId": "A"
+ "fieldConfig": {
+ "defaults": {},
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 8,
+ "w": 12,
+ "x": 0,
+ "y": 272
+ },
+ "id": 23,
+ "options": {
+ "dedupStrategy": "none",
+ "enableInfiniteScrolling": false,
+ "enableLogDetails": true,
+ "showControls": false,
+ "showTime": false,
+ "sortOrder": "Descending",
+ "unwrappedColumns": false,
+ "wrapLogMessage": false
+ },
+ "pluginVersion": "12.4.1",
+ "targets": [
+ {
+ "datasource": {
+ "type": "victoriametrics-logs-datasource",
+ "uid": "victorialogs1"
+ },
+ "editorMode": "code",
+ "expr": "container_name: kolab OR horizon OR roundcube | error OR exception",
+ "queryType": "instant",
+ "refId": "A"
+ }
+ ],
+ "title": "Exceptions",
+ "type": "logs"
}
],
- "title": "Postfix",
- "type": "logs"
+ "title": "Troubleshooting",
+ "type": "row"
},
{
- "datasource": {
- "type": "victoriametrics-logs-datasource",
- "uid": "victorialogs1"
- },
- "fieldConfig": {
- "defaults": {},
- "overrides": []
- },
+ "collapsed": true,
"gridPos": {
- "h": 8,
+ "h": 1,
"w": 24,
"x": 0,
- "y": 89
- },
- "id": 19,
- "options": {
- "dedupStrategy": "none",
- "enableInfiniteScrolling": true,
- "enableLogDetails": true,
- "showControls": true,
- "showTime": true,
- "sortOrder": "Descending",
- "syntaxHighlighting": true,
- "unwrappedColumns": false,
- "wrapLogMessage": false
+ "y": 80
},
- "pluginVersion": "12.4.0",
- "targets": [
+ "id": 24,
+ "panels": [
{
"datasource": {
- "type": "victoriametrics-logs-datasource",
- "uid": "victorialogs1"
+ "type": "prometheus",
+ "uid": "prometheus1"
},
- "editorMode": "code",
- "expr": "container_name: amavis",
- "queryType": "instant",
- "refId": "A"
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "palette-classic"
+ },
+ "custom": {
+ "axisBorderShow": false,
+ "axisCenteredZero": false,
+ "axisColorMode": "text",
+ "axisLabel": "",
+ "axisPlacement": "auto",
+ "barAlignment": 0,
+ "barWidthFactor": 0.6,
+ "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",
+ "showValues": false,
+ "spanNulls": false,
+ "stacking": {
+ "group": "A",
+ "mode": "none"
+ },
+ "thresholdsStyle": {
+ "mode": "off"
+ }
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green",
+ "value": 0
+ }
+ ]
+ }
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 9,
+ "w": 3,
+ "x": 0,
+ "y": 126
+ },
+ "hideTimeOverride": false,
+ "id": 25,
+ "interval": "1h",
+ "options": {
+ "legend": {
+ "calcs": [],
+ "displayMode": "list",
+ "placement": "bottom",
+ "showLegend": true
+ },
+ "tooltip": {
+ "hideZeros": false,
+ "mode": "single",
+ "sort": "none"
+ }
+ },
+ "pluginVersion": "12.4.1",
+ "targets": [
+ {
+ "editorMode": "code",
+ "exemplar": false,
+ "expr": "kolab_users_count",
+ "instant": false,
+ "legendFormat": "{{state}}",
+ "range": true,
+ "refId": "A"
+ }
+ ],
+ "timeFrom": "30d",
+ "title": "Users",
+ "type": "timeseries"
+ },
+ {
+ "datasource": {
+ "type": "prometheus",
+ "uid": "prometheus1"
+ },
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "palette-classic"
+ },
+ "custom": {
+ "axisBorderShow": false,
+ "axisCenteredZero": false,
+ "axisColorMode": "text",
+ "axisLabel": "",
+ "axisPlacement": "auto",
+ "barAlignment": 0,
+ "barWidthFactor": 0.6,
+ "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",
+ "showValues": false,
+ "spanNulls": false,
+ "stacking": {
+ "group": "A",
+ "mode": "none"
+ },
+ "thresholdsStyle": {
+ "mode": "off"
+ }
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green",
+ "value": 0
+ },
+ {
+ "color": "red",
+ "value": 80
+ }
+ ]
+ }
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 9,
+ "w": 3,
+ "x": 3,
+ "y": 126
+ },
+ "id": 26,
+ "interval": "1h",
+ "options": {
+ "legend": {
+ "calcs": [],
+ "displayMode": "list",
+ "placement": "bottom",
+ "showLegend": true
+ },
+ "tooltip": {
+ "hideZeros": false,
+ "mode": "single",
+ "sort": "none"
+ }
+ },
+ "pluginVersion": "12.4.1",
+ "targets": [
+ {
+ "editorMode": "code",
+ "expr": "kolab_payers_active_count ",
+ "legendFormat": "Payers active",
+ "range": true,
+ "refId": "A"
+ },
+ {
+ "datasource": {
+ "type": "prometheus",
+ "uid": "prometheus1"
+ },
+ "editorMode": "builder",
+ "expr": "kolab_payers_count",
+ "instant": false,
+ "legendFormat": "Payers",
+ "range": true,
+ "refId": "B"
+ }
+ ],
+ "timeFrom": "30d",
+ "title": "Payers",
+ "type": "timeseries"
}
],
- "title": "Amavis",
- "type": "logs"
+ "title": "General",
+ "type": "row"
},
{
"collapsed": true,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
- "y": 97
+ "y": 81
},
- "id": 27,
+ "id": 8,
"panels": [
{
"datasource": {
- "type": "victoriametrics-logs-datasource",
- "uid": "victorialogs1"
+ "type": "prometheus",
+ "uid": "prometheus1"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
- "lineInterpolation": "linear",
+ "lineInterpolation": "smooth",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"showValues": false,
- "spanNulls": true,
+ "spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": 0
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
- "y": 98
+ "y": 650
},
- "id": 28,
+ "id": 10,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
- "placement": "bottom",
+ "placement": "right",
"showLegend": true
},
"tooltip": {
"hideZeros": false,
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "12.4.0",
"targets": [
{
"datasource": {
- "type": "victoriametrics-logs-datasource",
- "uid": "victorialogs1"
+ "type": "prometheus",
+ "uid": "prometheus1"
},
"editorMode": "code",
- "expr": "container_name:\"roundcube\"\n| Microsoft-Server-ActiveSync\n| Cmd=\n| extract \"] <duration> \\\"POST /Microsoft-Server-ActiveSync\"\n| extract \"Cmd=<cmd>&\"\n| extract \"DeviceId=<device_id>&\"\n| stats by (1m, device_id, cmd) \n count() as rate, \n avg(duration) as avg_latency_ms,\n max(duration) as max_latency_ms",
- "legendFormat": "",
- "queryType": "statsRange",
+ "expr": "sum(rate(container_cpu_usage_seconds_total{cluster=\"\", container!=\"POD\"}[5m])) by (pod, namespace)",
+ "hide": true,
+ "instant": false,
+ "legendFormat": "__auto",
+ "range": true,
+ "refId": "B"
+ },
+ {
+ "datasource": {
+ "type": "prometheus",
+ "uid": "prometheus1"
+ },
+ "editorMode": "code",
+ "expr": "sum(rate(container_cpu_usage_seconds_total{pod!=\"\"}[5m])) by (pod)",
+ "instant": false,
+ "legendFormat": "__auto",
+ "range": true,
"refId": "A"
}
],
- "title": "Command rate & duration",
+ "title": "CPU",
"type": "timeseries"
},
{
"datasource": {
- "type": "victoriametrics-logs-datasource",
- "uid": "victorialogs1"
+ "type": "prometheus",
+ "uid": "prometheus1"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"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",
"showValues": false,
- "spanNulls": true,
+ "spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": 0
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
- "x": 12,
- "y": 98
+ "x": 0,
+ "y": 658
},
- "id": 29,
+ "id": 9,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
- "placement": "bottom",
+ "placement": "right",
"showLegend": true
},
"tooltip": {
"hideZeros": false,
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "12.4.0",
"targets": [
{
- "datasource": {
- "type": "victoriametrics-logs-datasource",
- "uid": "victorialogs1"
- },
+ "disableTextWrap": false,
"editorMode": "code",
- "expr": "container_name: roundcube\n| Microsoft-Server-ActiveSync\n| Cmd=\n| extract \"Cmd=<cmd>&\"\n| extract \"HTTP/1.0\\\" <status> <size>\"\n| stats by (cmd, 1m) count() as total_req",
- "legendFormat": "Count {{cmd}} / 1m",
- "queryType": "statsRange",
- "refId": "Request counts"
+ "expr": "sum(container_memory_usage_bytes{container!=\"\"} / 1024 / 1024) without (id, pod, image, instance, job, name)",
+ "fullMetaSearch": false,
+ "includeNullMetadata": true,
+ "legendFormat": "__auto",
+ "range": true,
+ "refId": "A",
+ "useBackend": false
},
{
"datasource": {
- "type": "victoriametrics-logs-datasource",
- "uid": "victorialogs1"
+ "type": "prometheus",
+ "uid": "prometheus1"
},
"editorMode": "code",
- "expr": "container_name: roundcube\n| Microsoft-Server-ActiveSync\n| Cmd=\n| extract \"Cmd=<cmd>&\"\n| extract \"HTTP/1.0\\\" <status> <size>\"\n| filter status >= 400\n| stats by (1m, cmd) count() as error_count",
- "legendFormat": "Errors {{ cmd }} / 1m",
- "queryType": "statsRange",
- "refId": "Errors"
+ "expr": "sum(\n label_replace(\n container_memory_usage_bytes{pod!=\"\"},\n \"deployment\", \"$1\", \"pod\", \"(.+)-[^-]+-[^-]+\"\n ) / 1024 / 1024\n) by (namespace,deployment)",
+ "hide": true,
+ "instant": false,
+ "legendFormat": "__auto",
+ "range": true,
+ "refId": "B"
}
],
- "title": "Commands & Errors",
+ "title": "Memory",
"type": "timeseries"
},
{
"datasource": {
- "type": "victoriametrics-logs-datasource",
- "uid": "victorialogs1"
+ "type": "prometheus",
+ "uid": "prometheus1"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
+ "axisBorderShow": false,
+ "axisCenteredZero": false,
+ "axisColorMode": "text",
+ "axisLabel": "",
+ "axisPlacement": "auto",
+ "barAlignment": 0,
+ "barWidthFactor": 0.6,
+ "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",
+ "showValues": false,
+ "spanNulls": false,
+ "stacking": {
+ "group": "A",
+ "mode": "none"
+ },
+ "thresholdsStyle": {
+ "mode": "off"
}
},
- "mappings": []
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green",
+ "value": 0
+ },
+ {
+ "color": "red",
+ "value": 80
+ }
+ ]
+ }
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
- "y": 130
+ "y": 666
},
- "id": 30,
+ "id": 11,
"options": {
"legend": {
+ "calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
- "pieType": "pie",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "sort": "desc",
"tooltip": {
"hideZeros": false,
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "12.4.0",
"targets": [
{
- "datasource": {
- "type": "victoriametrics-logs-datasource",
- "uid": "victorialogs1"
- },
- "editorMode": "code",
- "expr": "container_name: roundcube\n| Microsoft-Server-ActiveSync\n| Cmd=\n| extract \"Cmd=<cmd>&\"\n| stats by (1m, cmd) count() as rate_per_minute",
- "legendFormat": "{{cmd}}",
- "queryType": "statsRange",
- "refId": "A"
- }
- ],
- "title": "Commands per minute",
- "type": "piechart"
- }
- ],
- "title": "ActiveSync",
- "type": "row"
- },
- {
- "collapsed": true,
- "gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 98
- },
- "id": 22,
- "panels": [
- {
- "datasource": {
- "type": "victoriametrics-logs-datasource",
- "uid": "victorialogs1"
- },
- "description": "Shows deliveries that took over 100s. No data is a good sign.",
- "fieldConfig": {
- "defaults": {},
- "overrides": []
- },
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 0,
- "y": 99
- },
- "id": 14,
- "options": {
- "dedupStrategy": "none",
- "enableInfiniteScrolling": false,
- "enableLogDetails": true,
- "showControls": false,
- "showLabels": false,
- "showTime": true,
- "sortOrder": "Descending",
- "syntaxHighlighting": true,
- "timestampResolution": "ms",
- "unwrappedColumns": false,
- "wrapLogMessage": false
- },
- "pluginVersion": "12.4.0",
- "targets": [
- {
- "datasource": {
- "type": "victoriametrics-logs-datasource",
- "uid": "victorialogs1"
- },
- "editorMode": "code",
- "expr": "container_name:postfix\n| \"delay=\"\n| extract \"delay=<delay>,\"\n| delay:>100\n",
- "maxLines": 50,
- "queryType": "instant",
- "refId": "A"
- }
- ],
- "title": "Long delivery delays",
- "type": "logs"
- },
- {
- "datasource": {
- "type": "victoriametrics-logs-datasource",
- "uid": "victorialogs1"
- },
- "fieldConfig": {
- "defaults": {},
- "overrides": []
- },
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 0,
- "y": 107
- },
- "id": 31,
- "options": {
- "dedupStrategy": "none",
- "enableInfiniteScrolling": false,
- "enableLogDetails": true,
- "showControls": false,
- "showTime": false,
- "sortOrder": "Descending",
- "unwrappedColumns": false,
- "wrapLogMessage": false
- },
- "pluginVersion": "12.4.0",
- "targets": [
- {
- "datasource": {
- "type": "victoriametrics-logs-datasource",
- "uid": "victorialogs1"
- },
- "editorMode": "code",
- "expr": "container_name:postfix\n| \"status=bounced\"",
- "queryType": "instant",
- "refId": "A"
- }
- ],
- "title": "Bounces",
- "type": "logs"
- },
- {
- "datasource": {
- "type": "victoriametrics-logs-datasource",
- "uid": "victorialogs1"
- },
- "fieldConfig": {
- "defaults": {},
- "overrides": []
- },
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 0,
- "y": 115
- },
- "id": 23,
- "options": {
- "dedupStrategy": "none",
- "enableInfiniteScrolling": false,
- "enableLogDetails": true,
- "showControls": false,
- "showTime": false,
- "sortOrder": "Descending",
- "unwrappedColumns": false,
- "wrapLogMessage": false
- },
- "pluginVersion": "12.4.0",
- "targets": [
- {
- "datasource": {
- "type": "victoriametrics-logs-datasource",
- "uid": "victorialogs1"
- },
"editorMode": "code",
- "expr": "container_name: kolab OR horizon OR roundcube | error OR exception",
- "queryType": "instant",
+ "expr": "sum by (persistentvolumeclaim) (kubelet_volume_stats_available_bytes / 1024 / 1024)",
+ "legendFormat": "__auto",
+ "range": true,
"refId": "A"
}
],
- "title": "Exceptions",
- "type": "logs"
+ "title": "PVC available mb",
+ "type": "timeseries"
}
],
- "title": "Troubleshooting",
+ "title": "Kubernetes",
"type": "row"
}
],
"preload": false,
"refresh": "",
"schemaVersion": 42,
"tags": [],
"templating": {
"list": [
{
"baseFilters": [],
"datasource": {
"type": "victoriametrics-logs-datasource",
"uid": "victorialogs1"
},
"description": "Add custom filters to log queries",
"filters": [],
"label": "Logfilters",
"name": "logfilters",
"type": "adhoc"
}
]
},
"time": {
"from": "now-3h",
"to": "now"
},
"timepicker": {},
"timezone": "browser",
"title": "Kolab",
"uid": "befpnnt3hswe8a",
- "version": 2,
+ "version": 35,
"weekStart": ""
}
diff --git a/helm/files/victorialogs.rules.yml b/helm/files/victorialogs.rules.yml
index c7a87eb..ba08f9e 100644
--- a/helm/files/victorialogs.rules.yml
+++ b/helm/files/victorialogs.rules.yml
@@ -1,90 +1,90 @@
# _time: 5m is implicit in all expressions when the interval is 5m
groups:
- name: roundcube_rules
type: vlogs
interval: 1m
rules:
- record: kolab_log_roundcube_fatalerror_rate1m
expr: '{pod_name=~"roundcube.*"} "PHP Fatal error" | stats by (pod_name) count(*)'
- record: kolab_log_roundcube_dberror_rate1m
expr: '{pod_name=~"roundcube.*"} "DB Error" | stats by (pod_name) count(*)'
- record: kolab_log_roundcube_exception_rate1m
expr: '{pod_name=~"roundcube.*"} "exception message" | stats by (pod_name) count(*)'
- name: kolab_rules
type: vlogs
interval: 1m
rules:
- record: kolab_log_error_rate1m
expr: '{pod_name=~"kolab.*"} "production.ERROR" | stats by (pod_name) count(*)'
- record: kolab_log_authenticate_rate1m
expr: '{pod_name=~"kolab.*"} "POST https://kolab-services:80/api/webhooks/cyrus-sasl" | stats by (pod_name) count(*)'
- record: kolab_log_horizon_error_rate1m
expr: '{pod_name=~"horizon.*"} "production.ERROR" | stats by (pod_name) count(*)'
- name: postfix_rules
type: vlogs
interval: 1m
rules:
- record: kolab_log_postfix_rejection_rate1m
expr: |
container_name:postfix | "refused to talk to me" | stats by (pod_name) count(*)
- record: kolab_log_postfix_temporary_error_rate1m
expr: |
container_name:postfix | "Temporary error, try again later" | stats by (pod_name) count(*)
# This includes both sent and received email. Filter by relay= ?
- record: kolab_log_postfix_messages_total_rate1m
expr: |
container_name:postfix
| "status="
| extract "status=<status> "
| stats by (status) count() as value
- record: kolab_log_postfix_relay_messages_total_rate1m
expr: |
container_name:postfix
| "status="
| extract "relay=<relay>, "
| replace("127.0.0.1[127.0.0.1]:13026", "amavis-originating") at relay
| replace("127.0.0.1[127.0.0.1]:13024", "amavis") at relay
| replace_regexp if (relay:!kolabnow.com) ("[^\\.]*\\.([^\\.]+\\.[^\\.]+)$", "$1") at relay # Only get toplevel domain
| replace_regexp("\\[.*", "") at relay
| extract "status=<status> "
- | stats by (relay, status) count() as value
+ | stats by (relay, pod_name, status) count() as value
- record: kolab_log_postfix_bytes_total_rate1m
expr: |
container_name:postfix
| "status="
| extract "size=<size>,"
| stats count() as value, sum(size) as total_bytes
- record: kolab_log_postfix_relay_delay_seconds
expr: |
container_name:postfix
| "delay="
| extract "relay=<relay>, "
| replace("127.0.0.1[127.0.0.1]:13026", "amavis-originating") at relay
| replace("127.0.0.1[127.0.0.1]:13024", "amavis") at relay
| replace_regexp("\\[.*", "") at relay
| replace_regexp if (relay:!kolabnow.com) ("[^\\.]*\\.([^\\.]+\\.[^\\.]+)$", "$1") at relay # Only get toplevel domain
| extract "status=<status> "
| extract "delays=<a>/<b>/<c>/<d>,"
| extract "delay=<delay>,"
| stats by (relay, status)
avg(a) as arrival_delay,
avg(b) as queue_delay,
avg(c) as connection_delay,
avg(d) as transmission_delay,
max(delay) as max_delay,
avg(delay) as delay
- name: imap_rules
type: vlogs
interval: 1m
rules:
- record: kolab_log_imap_login_rate1m
expr: |
container_name:imap | "User logged in" | stats by (pod_name) count(*)
- record: kolab_log_imap_error_rate1m
expr: |
container_name:imap facility:"local6.err" | stats by (pod_name) count(*)
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Sat, Apr 4, 1:07 AM (3 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18821835
Default Alt Text
(109 KB)
Attached To
Mode
R114 kolab-infrastructure
Attached
Detach File
Event Timeline