+ "expr": "container_name:amavis\n| TIMING\n| extract \"[total <timing> ms]\"\n| stats avg(timing) as avg_timing, max(timing) as max_timing",
+ "queryType": "statsRange",
+ "refId": "A"
+ },
+ {
+ "datasource": {
+ "type": "victoriametrics-logs-datasource",
+ "uid": "victorialogs1"
+ },
+ "editorMode": "code",
+ "expr": "container_name:amavis\n| TIMING\n| \"SA check\"\n| extract \"SA check: <sacheck> \"\n| stats avg(sacheck) as avg_sacheck, max(sacheck) as max_sacheck",
+ "queryType": "statsRange",
+ "refId": "SA check"
+ }
+ ],
+ "title": "Amavis TIMING",
+ "type": "timeseries"
+ },
+ {
+ "collapsed": false,
+ "gridPos": {
+ "h": 1,
+ "w": 24,
+ "x": 0,
+ "y": 9
+ },
"id": 34,
"panels": [],
"title": "HTTP",
"type": "row"
},
{
"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,
+ "insertNulls": 3600000,
"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": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
- "y": 1
+ "y": 10
},
"id": 37,
"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:proxy\n| status=\n| stats by (1m, status) count() as count\n| math (count / 60) as count\n",
"legendFormat": "Code: {{status}}",
"queryType": "statsRange",
"refId": "A",
"step": ""
}
],
"title": "Requests",
"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,
+ "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"
+ "unit": "decbytes"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
- "y": 1
+ "y": 10
},
- "id": 35,
+ "id": 49,
"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:proxy\n| \"Connection refused\"\n| stats by (1m) count(*) as count\n| math (count / 60) as count",
- "legendFormat": "Refused connections",
+ "expr": "container_name:proxy\n| status=\n| stats by (status)\n avg(body-bytes) as avg-body-size,\n max(body-bytes) as max-body-size",
"queryType": "statsRange",
"refId": "A"
}
],
- "title": "Connection refused",
+ "title": "Request body size",
"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": "reqps"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
- "y": 9
+ "y": 18
},
"id": 42,
"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:proxy\n| status=\n| replace_regexp(\"/apps/.*\", \"/apps/\") at url\n| replace_regexp(\"/grafana/.*\", \"/grafana/\") at url\n| stats by (1m, url) count() as count\n| math (count / 60) as count",
"legendFormat": "{{url}}",
"queryType": "statsRange",
"refId": "A"
}
],
"title": "Requests by path",
"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,
+ "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": 12,
- "y": 9
+ "y": 18
},
- "id": 38,
+ "id": 35,
"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: proxy\n| closed keepalive connection\n| stats count(*) as count\n| math (count / 60) as count",
- "legendFormat": "Closed keepalive connections",
+ "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": "Closed keepalive connections",
+ "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": "s"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
- "y": 17
+ "y": 26
},
"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": "victoriametrics-logs-datasource",
"uid": "victorialogs1"
},
"editorMode": "code",
"expr": "container_name:proxy\n| status=\n| stats by (status)\n avg(request-time) as avg_duration,\n max(request-time) as max_duration",
+ "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": "victoriametrics-logs-datasource",
+ "uid": "victorialogs1"
+ },
+ "editorMode": "code",
+ "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": "Services requests",
+ "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": "s"
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 8,
+ "w": 12,
+ "x": 12,
+ "y": 78
+ },
+ "id": 41,
+ "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": "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": "Request duration",
+ "type": "timeseries"
+ },
+ {
+ "collapsed": false,
+ "gridPos": {
+ "h": 1,
+ "w": 24,
+ "x": 0,
+ "y": 86
+ },
+ "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": 87
+ },
+ "id": 16,
+ "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",
+ "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": 96
+ },
+ "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": 105
+ },
+ "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": 113
+ },
+ "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": 121
+ },
+ "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: postfix\n| NOT \"from int-fw036\" # Filter out healthcheck noise\n| NOT \"from int-fw037\"\n| NOT \"warning: run-time library vs. compile-time header version mismatch\" # Irrelevant warning because of RHEL packaging\n| format \"<pod_name> <process>: <_msg>\"",
+ "queryType": "instant",
+ "refId": "A"
+ }
+ ],
+ "title": "Postfix",
+ "type": "logs"
+ },
+ {
+ "datasource": {
+ "type": "victoriametrics-logs-datasource",
+ "uid": "victorialogs1"
+ },
+ "fieldConfig": {
+ "defaults": {},
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 8,
+ "w": 24,
+ "x": 0,
+ "y": 129
+ },
+ "id": 19,
+ "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: amavis",
+ "queryType": "instant",
+ "refId": "A"
}
],
- "title": "Performance metrics",
- "type": "row"
+ "title": "Amavis",
+ "type": "logs"
},
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
- "y": 26
+ "y": 137
},
- "id": 39,
+ "id": 27,
"panels": [],
- "title": "Kolab Services",
+ "title": "ActiveSync",
"type": "row"
},
{
"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,
+ "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"
+ "unit": "ms"
},
- "overrides": []
+ "overrides": [
+ {
+ "__systemRef": "hideSeriesFrom",
+ "matcher": {
+ "id": "byNames",
+ "options": {
+ "mode": "exclude",
+ "names": [
+ "Max{cmd=\"Sync\"}"
+ ],
+ "prefix": "All except:",
+ "readOnly": true
+ }
+ },
+ "properties": [
+ {
+ "id": "custom.hideFrom",
+ "value": {
+ "legend": false,
+ "tooltip": true,
+ "viz": true
+ }
+ }
+ ]
+ }
+ ]
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
- "y": 27
+ "y": 138
},
- "id": 40,
+ "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": "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": "victoriametrics-logs-datasource",
- "uid": "victorialogs1"
- },
- "editorMode": "code",
- "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}}",
+ "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": "Errors"
+ "refId": "A"
}
],
- "title": "Services requests",
+ "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": 3600000,
+ "spanNulls": true,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": 0
},
{
"color": "red",
"value": 80
}
]
},
- "unit": "s"
+ "unit": "reqps"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
- "y": 27
+ "y": 138
},
- "id": 41,
+ "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": "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",
+ "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": "A"
- }
- ],
- "title": "Request duration",
- "type": "timeseries"
- },
- {
- "collapsed": false,
- "gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 35
- },
- "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": 36
- },
- "id": 16,
- "options": {
- "dedupStrategy": "none",
- "enableInfiniteScrolling": true,
- "enableLogDetails": true,
- "showControls": true,
- "showTime": true,
- "sortOrder": "Descending",
- "syntaxHighlighting": true,
- "unwrappedColumns": false,
- "wrapLogMessage": false
- },
- "pluginVersion": "12.4.1",
- "targets": [
+ "refId": "Request counts"
+ },
{
"datasource": {
"type": "victoriametrics-logs-datasource",
"uid": "victorialogs1"
},
"editorMode": "code",
- "expr": "container_name: proxy",
- "queryType": "instant",
- "refId": "A"
+ "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": "Proxy",
- "type": "logs"
+ "title": "Commands & Errors",
+ "type": "timeseries"
},
{
"datasource": {
"type": "victoriametrics-logs-datasource",
"uid": "victorialogs1"
},
"fieldConfig": {
- "defaults": {},
+ "defaults": {
+ "color": {
+ "mode": "palette-classic"
+ },
+ "custom": {
+ "hideFrom": {
+ "legend": false,
+ "tooltip": false,
+ "viz": false
+ }
+ },
+ "mappings": []
+ },
"overrides": []
},
"gridPos": {
- "h": 9,
- "w": 24,
+ "h": 8,
+ "w": 12,
"x": 0,
- "y": 45
+ "y": 146
},
- "id": 2,
+ "id": 30,
"options": {
- "dedupStrategy": "none",
- "enableInfiniteScrolling": false,
- "enableLogDetails": true,
- "prettifyLogMessage": false,
- "showCommonLabels": false,
- "showControls": false,
- "showLabels": false,
- "showTime": true,
- "sortOrder": "Descending",
- "unwrappedColumns": false,
- "wrapLogMessage": false
+ "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: imap",
- "queryType": "instant",
+ "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": "imap",
- "type": "logs"
+ "title": "Commands per minute",
+ "type": "piechart"
},
{
- "datasource": {
- "type": "victoriametrics-logs-datasource",
- "uid": "victorialogs1"
- },
- "fieldConfig": {
- "defaults": {},
- "overrides": []
- },
+ "collapsed": false,
"gridPos": {
- "h": 8,
+ "h": 1,
"w": 24,
"x": 0,
- "y": 54
- },
- "id": 17,
- "options": {
- "dedupStrategy": "none",
- "enableInfiniteScrolling": true,
- "enableLogDetails": true,
- "showControls": true,
- "showTime": true,
- "sortOrder": "Descending",
- "syntaxHighlighting": true,
- "unwrappedColumns": false,
- "wrapLogMessage": false
+ "y": 154
},
- "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"
+ "id": 22,
+ "panels": [],
+ "title": "Troubleshooting",
+ "type": "row"
},
{
"datasource": {
"type": "victoriametrics-logs-datasource",
"uid": "victorialogs1"
},
+ "description": "Shows deliveries that took over 100s. No data is a good sign.",
+ "expr": "container_name:postfix\n| \"command rejected\"\n| format \"<process> <_msg>\"",
+ "queryType": "instant",
+ "refId": "B"
+ }
+ ],
+ "title": "NOQUEUE / Rejected",
+ "type": "logs"
+ },
+ {
+ "datasource": {
+ "type": "victoriametrics-logs-datasource",
+ "uid": "victorialogs1"
+ },
+ "fieldConfig": {
+ "defaults": {},
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 8,
+ "w": 12,
+ "x": 12,
+ "y": 171
+ },
+ "id": 50,
+ "options": {
+ "dedupStrategy": "none",
+ "enableInfiniteScrolling": false,
+ "enableLogDetails": true,
+ "showControls": false,
+ "showTime": true,
+ "sortOrder": "Descending",
+ "unwrappedColumns": false,
+ "wrapLogMessage": false
+ },
+ "pluginVersion": "12.4.1",
+ "targets": [
{
"datasource": {
"type": "victoriametrics-logs-datasource",
"uid": "victorialogs1"
},
- "fieldConfig": {
- "defaults": {},
- "overrides": []
+ "editorMode": "code",
+ "expr": "container_name: imap\n| \"mupdate_connect failed\" OR \"no mechanism available\" OR \"Internal error\"",
+ "queryType": "instant",
+ "refId": "A"
+ }
+ ],
+ "title": "IMAP Errors",
+ "type": "logs"
+ },
+ {
+ "datasource": {
+ "type": "victoriametrics-logs-datasource",
+ "uid": "victorialogs1"
+ },
+ "fieldConfig": {
+ "defaults": {},
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 8,
+ "w": 12,
+ "x": 0,
+ "y": 179
+ },
+ "id": 23,
+ "options": {
+ "dedupStrategy": "none",
+ "enableInfiniteScrolling": false,
+ "enableLogDetails": true,
+ "showControls": false,
+ "showTime": true,
+ "sortOrder": "Descending",
+ "unwrappedColumns": false,
+ "wrapLogMessage": false
+ },
+ "pluginVersion": "12.4.1",
+ "targets": [
+ {
+ "datasource": {
+ "type": "victoriametrics-logs-datasource",
+ "uid": "victorialogs1"
},
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 0,
- "y": 464
+ "editorMode": "code",
+ "expr": "container_name: kolab OR container_name: horizon OR container_name: roundcube | error OR exception OR Error OR Exception | filter !production.INFO",
+ "queryType": "instant",
+ "refId": "A"
+ }
+ ],
+ "title": "Exceptions",
+ "type": "logs"
+ },
+ {
+ "collapsed": false,
+ "gridPos": {
+ "h": 1,
+ "w": 24,
+ "x": 0,
+ "y": 187
+ },
+ "id": 24,
+ "panels": [],
+ "title": "General",
+ "type": "row"
+ },
+ {
+ "datasource": {
+ "type": "prometheus",
+ "uid": "prometheus1"
+ },
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "palette-classic"
},
- "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"
+ "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"
}
- ],
- "title": "Exceptions",
- "type": "logs"
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green",
+ "value": 0
+ }
+ ]
+ }
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 9,
+ "w": 3,
+ "x": 0,
+ "y": 188
+ },
+ "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"
}
],
- "title": "Troubleshooting",
- "type": "row"
+ "timeFrom": "30d",
+ "title": "Users",
+ "type": "timeseries"
},
{
- "collapsed": true,
- "gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 88
+ "datasource": {
+ "type": "prometheus",
+ "uid": "prometheus1"
},
- "id": 24,
- "panels": [
- {
- "datasource": {
- "type": "prometheus",
- "uid": "prometheus1"
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "palette-classic"
},
- "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
- }
- ]
- }
+ "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
},
- "overrides": []
- },
- "gridPos": {
- "h": 9,
- "w": 3,
- "x": 0,
- "y": 318
- },
- "hideTimeOverride": false,
- "id": 25,
- "interval": "1h",
- "options": {
- "legend": {
- "calcs": [],
- "displayMode": "list",
- "placement": "bottom",
- "showLegend": true
+ "insertNulls": false,
+ "lineInterpolation": "linear",
+ "lineWidth": 1,
+ "pointSize": 5,
+ "scaleDistribution": {
+ "type": "linear"
},
- "tooltip": {
- "hideZeros": false,
- "mode": "single",
- "sort": "none"
+ "showPoints": "auto",
+ "showValues": false,
+ "spanNulls": false,
+ "stacking": {
+ "group": "A",
+ "mode": "none"
+ },
+ "thresholdsStyle": {
+ "mode": "off"
}
},
- "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"
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green",
+ "value": 0
+ },
+ {
+ "color": "red",
+ "value": 80
+ }
+ ]
+ }
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 9,
+ "w": 3,
+ "x": 3,
+ "y": 188
+ },
+ "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"
},
- "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": 318
- },
- "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"
+ "editorMode": "builder",
+ "expr": "kolab_payers_count",
+ "instant": false,
+ "legendFormat": "Payers",
+ "range": true,
+ "refId": "B"
}
],
- "title": "General",
- "type": "row"
+ "timeFrom": "30d",
+ "title": "Payers",
+ "type": "timeseries"
},
{
"collapsed": true,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
- "y": 89
+ "y": 197
},
"id": 8,
"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",
"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": 8,
"w": 12,
"x": 0,
- "y": 842
+ "y": 2380
},
"id": 10,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "right",
"showLegend": true
},
"tooltip": {
"hideZeros": false,
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "12.4.0",
"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,
"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)",