From 2e70173bb9d4bec78b27723b05eeb00821feb7dd Mon Sep 17 00:00:00 2001 From: sando38 Date: Sat, 17 Jun 2023 14:27:56 +0200 Subject: [PATCH 1/5] Add a grafana-prometheus template --- CHANGELOG.md | 3 + config/grafana-prometheus.json | 2339 ++++++++++++++++++++++++++++++++ 2 files changed, 2342 insertions(+) create mode 100644 config/grafana-prometheus.json diff --git a/CHANGELOG.md b/CHANGELOG.md index 3fe26d254..0597d668f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning][SemVer]. ## [Unreleased] +### Added +- Add a prometheus grafana dashboard template into the repository. + ### Changed - `mod_stats_prometheus`: Fine tune bucket sizes for TURN sessions, e.g., drop the 1 KiB bucket, as the 4 KiB bucket size should be sufficient to identify diff --git a/config/grafana-prometheus.json b/config/grafana-prometheus.json new file mode 100644 index 000000000..67191f306 --- /dev/null +++ b/config/grafana-prometheus.json @@ -0,0 +1,2339 @@ +{ + "__inputs": [ + { + "name": "DS_VICTORIAMETRICS", + "label": "VictoriaMetrics", + "description": "", + "type": "datasource", + "pluginId": "prometheus", + "pluginName": "Prometheus" + } + ], + "__elements": {}, + "__requires": [ + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "9.2.7" + }, + { + "type": "panel", + "id": "heatmap", + "name": "Heatmap", + "version": "" + }, + { + "type": "datasource", + "id": "prometheus", + "name": "Prometheus", + "version": "1.0.0" + }, + { + "type": "panel", + "id": "stat", + "name": "Stat", + "version": "" + }, + { + "type": "panel", + "id": "timeseries", + "name": "Time series", + "version": "" + } + ], + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "grafana", + "uid": "-- Grafana --" + }, + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "target": { + "limit": 100, + "matchAny": false, + "tags": [], + "type": "dashboard" + }, + "type": "dashboard" + } + ] + }, + "description": "Monitoring eturnal STUN/TURN service activities. This dashboard uses the 'mod_stats_prometheus' with Prometheus as a data source. More info about eturnal can be found in the web: 'eturnal.net'.", + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "id": null, + "links": [ + { + "asDropdown": false, + "icon": "external link", + "includeVars": false, + "keepTime": false, + "tags": [], + "targetBlank": false, + "title": "New link", + "tooltip": "", + "type": "dashboards", + "url": "" + } + ], + "liveNow": false, + "panels": [ + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 54, + "panels": [], + "title": "Overall system information, errors & peak rates/load", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIAMETRICS}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "bars", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "bytes" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Total" + }, + "properties": [ + { + "id": "custom.drawStyle", + "value": "points" + }, + { + "id": "custom.stacking", + "value": { + "group": "A", + "mode": "none" + } + }, + { + "id": "custom.hideFrom", + "value": { + "legend": false, + "tooltip": false, + "viz": true + } + } + ] + } + ] + }, + "gridPos": { + "h": 10, + "w": 8, + "x": 0, + "y": 1 + }, + "id": 11, + "options": { + "legend": { + "calcs": [ + "mean", + "stdDev", + "last" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "9.2.7", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIAMETRICS}" + }, + "editorMode": "code", + "expr": "erlang_vm_memory_bytes_total{instance=~\"$instance\"}", + "hide": false, + "legendFormat": "{{kind}}", + "range": true, + "refId": "B" + } + ], + "title": "Allocated memory", + "transformations": [ + { + "id": "concatenate", + "options": {} + }, + { + "id": "organize", + "options": { + "excludeByName": {}, + "indexByName": { + "processes": 3, + "processes · Time": 2, + "system": 1, + "system · Time": 0 + }, + "renameByName": {} + } + }, + { + "id": "calculateField", + "options": {} + } + ], + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIAMETRICS}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": -1, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "smooth", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "log": 2, + "type": "log" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "noValue": "0", + "thresholds": { + "mode": "percentage", + "steps": [ + { + "color": "green", + "value": null + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Allocation Mismatch " + }, + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Forbidden " + }, + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "blue", + "value": null + } + ] + } + }, + { + "id": "custom.lineStyle", + "value": { + "dash": [ + 0, + 10 + ], + "fill": "dot" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Stale Nonce " + }, + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "yellow", + "value": null + } + ] + } + }, + { + "id": "custom.lineWidth", + "value": 3 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Unauthorized " + }, + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + } + ] + } + }, + { + "id": "custom.lineWidth", + "value": 3 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Insufficient Capacity " + }, + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "orange", + "value": null + } + ] + } + }, + { + "id": "custom.lineWidth", + "value": 3 + } + ] + } + ] + }, + "gridPos": { + "h": 10, + "w": 8, + "x": 8, + "y": 1 + }, + "id": 66, + "options": { + "legend": { + "calcs": [ + "sum" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "9.2.7", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIAMETRICS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum without (transport) (increase(eturnal_protocol_error_total{instance=~\"$instance\",reason=~\"$protocol_errors\",transport=~\"$transport\"}[$__rate_interval]))>0", + "format": "time_series", + "hide": false, + "instant": false, + "legendFormat": "{{reason}} {{transport}}", + "range": true, + "refId": "B" + } + ], + "title": "Protocol errors | transports $transport", + "transformations": [], + "type": "timeseries" + }, + { + "datasource": { + "type": "datasource", + "uid": "-- Dashboard --" + }, + "description": "*Calculated with historical data from all past sessions for all current open sessions", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "binBps" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "↑ VM_Output" + }, + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "yellow", + "value": null + } + ] + } + } + ] + } + ] + }, + "gridPos": { + "h": 4, + "w": 2, + "x": 16, + "y": 1 + }, + "id": 67, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "max" + ], + "fields": "", + "values": false + }, + "textMode": "name" + }, + "pluginVersion": "9.2.7", + "targets": [ + { + "datasource": { + "type": "datasource", + "uid": "-- Dashboard --" + }, + "panelId": 37, + "refId": "A" + } + ], + "title": "Relay data I/O", + "transformations": [ + { + "id": "filterByRefId", + "options": { + "include": "G|F" + } + } + ], + "type": "stat" + }, + { + "datasource": { + "type": "datasource", + "uid": "-- Dashboard --" + }, + "description": "*Calculated with historical data from all past sessions for all current open sessions", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "binBps" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "↑ VM_Output" + }, + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "yellow", + "value": null + } + ] + } + } + ] + } + ] + }, + "gridPos": { + "h": 4, + "w": 3, + "x": 18, + "y": 1 + }, + "id": 39, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "max" + ], + "fields": "", + "values": false + }, + "textMode": "value" + }, + "pluginVersion": "9.2.7", + "targets": [ + { + "datasource": { + "type": "datasource", + "uid": "-- Dashboard --" + }, + "panelId": 37, + "refId": "A" + } + ], + "title": "Peak rate | transports $transport", + "transformations": [ + { + "id": "filterByRefId", + "options": { + "include": "F|G" + } + } + ], + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIAMETRICS}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "yellow", + "value": null + } + ] + }, + "unit": "bytes" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "VM_Input" + }, + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + } + } + ] + } + ] + }, + "gridPos": { + "h": 4, + "w": 3, + "x": 21, + "y": 1 + }, + "id": 65, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "sum" + ], + "fields": "", + "values": false + }, + "textMode": "value" + }, + "pluginVersion": "9.2.7", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIAMETRICS}" + }, + "editorMode": "code", + "expr": "sum without(instance,job,transport) (increase(erlang_vm_statistics_bytes_received_total{instance=\"$instance\"}[$__rate_interval])) / 2", + "hide": false, + "legendFormat": "VM_Input", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIAMETRICS}" + }, + "editorMode": "code", + "expr": "sum without(instance,job,transport) (increase(erlang_vm_statistics_bytes_output_total{instance=\"$instance\"}[$__rate_interval])) / 2", + "hide": false, + "legendFormat": "VM_Output", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIAMETRICS}" + }, + "editorMode": "code", + "expr": "sum without(instance,job,transport) (increase(eturnal_turn_relay_rcvd_bytes_sum{instance=\"$instance\"}[$__rate_interval]))", + "hide": true, + "legendFormat": "VM_Input", + "range": true, + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIAMETRICS}" + }, + "editorMode": "code", + "expr": "sum without(instance,job,transport) (increase(eturnal_turn_relay_sent_bytes_sum{instance=\"$instance\"}[$__rate_interval]))", + "hide": true, + "legendFormat": "VM_Output", + "range": true, + "refId": "D" + } + ], + "title": "Traffic overall", + "type": "stat" + }, + { + "datasource": { + "type": "datasource", + "uid": "-- Dashboard --" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "blue", + "value": null + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 5, + "x": 16, + "y": 5 + }, + "id": 62, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "max" + ], + "fields": "", + "values": false + }, + "textMode": "value_and_name" + }, + "pluginVersion": "9.2.7", + "targets": [ + { + "datasource": { + "type": "datasource", + "uid": "-- Dashboard --" + }, + "panelId": 22, + "refId": "A" + } + ], + "title": "Peak STUN queries | transports $transport", + "transformations": [], + "type": "stat" + }, + { + "datasource": { + "type": "datasource", + "uid": "-- Dashboard --" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "blue", + "value": null + } + ] + }, + "unit": "dthms" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 3, + "x": 21, + "y": 5 + }, + "id": 63, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "center", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.2.7", + "targets": [ + { + "datasource": { + "type": "datasource", + "uid": "-- Dashboard --" + }, + "panelId": 44, + "refId": "A" + } + ], + "title": "Avg. duration / session [in hh:mm:ss]", + "transformations": [ + { + "id": "filterByRefId", + "options": { + "include": "C" + } + } + ], + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIAMETRICS}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "blue", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 8, + "x": 16, + "y": 8 + }, + "id": 56, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "center", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "max" + ], + "fields": "", + "values": false + }, + "textMode": "value_and_name" + }, + "pluginVersion": "9.2.7", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIAMETRICS}" + }, + "editorMode": "code", + "expr": "sum without(instance,job) (eturnal_turn_open_sessions{instance=~\"$instance\"})", + "hide": false, + "legendFormat": "{{transport}}", + "range": true, + "refId": "A" + } + ], + "title": "Peak # of concurrent open TURN sessions", + "transformations": [ + { + "id": "calculateField", + "options": {} + } + ], + "type": "stat" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 11 + }, + "id": 52, + "panels": [], + "title": "Current STUN queries, TURN sessions & rates/load", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIAMETRICS}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "continuous-BlPu" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "bars", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "dashed" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "purple", + "value": null + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 8, + "x": 0, + "y": 12 + }, + "id": 22, + "options": { + "legend": { + "calcs": [ + "mean", + "stdDev", + "last" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "9.2.7", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIAMETRICS}" + }, + "editorMode": "code", + "expr": "irate(sum(eturnal_stun_requests_total{instance=~\"$instance\",transport=~\"$transport\"}[$__rate_interval]))*$__interval", + "format": "time_series", + "legendFormat": "STUN queries", + "range": true, + "refId": "A" + } + ], + "title": "STUN queries | transports $transport", + "transformations": [ + { + "id": "configFromData", + "options": { + "configRefId": "A", + "mappings": [ + { + "fieldName": "STUN queries", + "handlerKey": "threshold1", + "reducerId": "mean" + } + ] + } + } + ], + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIAMETRICS}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "bars", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 8, + "x": 8, + "y": 12 + }, + "id": 61, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "9.2.7", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIAMETRICS}" + }, + "editorMode": "code", + "expr": "eturnal_turn_open_sessions{instance=~\"$instance\"}", + "hide": false, + "legendFormat": "{{transport}}", + "range": true, + "refId": "B" + } + ], + "title": "Open TURN sessions", + "transformations": [], + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIAMETRICS}" + }, + "description": "*Calculated with historical data from all past sessions for all current open sessions.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 4, + "gradientMode": "hue", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "stepAfter", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "dashed" + } + }, + "mappings": [], + "thresholds": { + "mode": "percentage", + "steps": [ + { + "color": "purple", + "value": null + } + ] + }, + "unit": "binBps" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "↑ VM_Output" + }, + "properties": [ + { + "id": "custom.transform", + "value": "negative-Y" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "↓ VM_Input avg past 7d" + }, + "properties": [ + { + "id": "custom.fillOpacity", + "value": 40 + }, + { + "id": "custom.lineWidth", + "value": 0 + }, + { + "id": "custom.hideFrom", + "value": { + "legend": true, + "tooltip": false, + "viz": false + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "↑ VM_Output avg past 7d" + }, + "properties": [ + { + "id": "custom.transform", + "value": "negative-Y" + }, + { + "id": "custom.fillOpacity", + "value": 40 + }, + { + "id": "custom.lineWidth", + "value": 0 + }, + { + "id": "custom.hideFrom", + "value": { + "legend": true, + "tooltip": false, + "viz": false + } + } + ] + } + ] + }, + "gridPos": { + "h": 12, + "w": 8, + "x": 16, + "y": 12 + }, + "id": 37, + "options": { + "legend": { + "calcs": [ + "mean", + "stdDev", + "last" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "9.2.7", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIAMETRICS}" + }, + "editorMode": "code", + "expr": "irate(erlang_vm_statistics_bytes_received_total{instance=\"$instance\"}[$__rate_interval]) / 2 ", + "hide": false, + "legendFormat": "↓ VM_Input", + "range": true, + "refId": "G" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIAMETRICS}" + }, + "editorMode": "code", + "expr": "irate(erlang_vm_statistics_bytes_output_total{instance=\"$instance\"}[$__rate_interval]) / 2 ", + "hide": false, + "legendFormat": "↑ VM_Output", + "range": true, + "refId": "F" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIAMETRICS}" + }, + "editorMode": "code", + "expr": "(\n irate(erlang_vm_statistics_bytes_received_total{instance=\"$instance\"}[$__rate_interval] offset 1d) +\n irate(erlang_vm_statistics_bytes_received_total{instance=\"$instance\"}[$__rate_interval] offset 2d) +\n irate(erlang_vm_statistics_bytes_received_total{instance=\"$instance\"}[$__rate_interval] offset 3d) +\n irate(erlang_vm_statistics_bytes_received_total{instance=\"$instance\"}[$__rate_interval] offset 4d) +\n irate(erlang_vm_statistics_bytes_received_total{instance=\"$instance\"}[$__rate_interval] offset 5d) +\n irate(erlang_vm_statistics_bytes_received_total{instance=\"$instance\"}[$__rate_interval] offset 6d) +\n irate(erlang_vm_statistics_bytes_received_total{instance=\"$instance\"}[$__rate_interval] offset 7d)\n) / 7 / 2 ", + "hide": false, + "legendFormat": "↓ VM_Input avg past 7d", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIAMETRICS}" + }, + "editorMode": "code", + "expr": "(\n irate(erlang_vm_statistics_bytes_output_total{instance=\"$instance\"}[$__rate_interval] offset 1d) +\n irate(erlang_vm_statistics_bytes_output_total{instance=\"$instance\"}[$__rate_interval] offset 2d) +\n irate(erlang_vm_statistics_bytes_output_total{instance=\"$instance\"}[$__rate_interval] offset 3d) +\n irate(erlang_vm_statistics_bytes_output_total{instance=\"$instance\"}[$__rate_interval] offset 4d) +\n irate(erlang_vm_statistics_bytes_output_total{instance=\"$instance\"}[$__rate_interval] offset 5d) +\n irate(erlang_vm_statistics_bytes_output_total{instance=\"$instance\"}[$__rate_interval] offset 6d) +\n irate(erlang_vm_statistics_bytes_output_total{instance=\"$instance\"}[$__rate_interval] offset 7d)\n) / 7 / 2 ", + "hide": false, + "legendFormat": "↑ VM_Output avg past 7d", + "range": true, + "refId": "B" + } + ], + "title": "Relay data rate | transports $transport", + "transformations": [], + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIAMETRICS}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "continuous-BlPu" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "bars", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "dashed" + } + }, + "decimals": 0, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "blue", + "value": null + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 8, + "x": 0, + "y": 18 + }, + "id": 45, + "options": { + "legend": { + "calcs": [ + "mean", + "stdDev", + "last" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "9.2.7", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIAMETRICS}" + }, + "editorMode": "code", + "expr": "irate(sum(eturnal_turn_sessions_total{instance=~\"$instance\",transport=~\"$transport\"}[$__rate_interval]))*$__interval", + "hide": false, + "legendFormat": "newly opened TURN Sessions", + "range": true, + "refId": "B" + } + ], + "title": "newly opened TURN Sessions | transports $transport", + "transformations": [ + { + "id": "configFromData", + "options": { + "configRefId": "B", + "mappings": [ + { + "fieldName": "newly opened TURN Sessions", + "handlerKey": "threshold1", + "reducerId": "mean" + } + ] + } + } + ], + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIAMETRICS}" + }, + "description": "*w/o sessions <=$threshold_size bytes (calculated from past rates)", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 0, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "blue", + "value": null + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 8, + "x": 8, + "y": 18 + }, + "id": 13, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "center", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "last" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.2.7", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIAMETRICS}" + }, + "editorMode": "code", + "expr": "( 1 - \n\n ( sum without (le,instance,job) ( (eturnal_turn_relay_rcvd_bytes_bucket{instance=~\"$instance\",le=~\"$threshold_size\"} + eturnal_turn_relay_sent_bytes_bucket{instance=~\"$instance\",le=~\"$threshold_size\"}) / 2 ) \n / ( sum without (le,instance,job) (eturnal_turn_sessions_total{instance=~\"$instance\"}) ) ) )\n\n* ( sum without (le,instance,job) (eturnal_turn_open_sessions{instance=~\"$instance\"}) )", + "hide": false, + "legendFormat": "__auto", + "range": true, + "refId": "B" + } + ], + "title": "Open active* TURN sessions", + "transformations": [ + { + "id": "calculateField", + "options": {} + } + ], + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIAMETRICS}" + }, + "description": "*only sessions <=$threshold_size bytes (calculated from past rates)", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 0, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "blue", + "value": null + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 8, + "x": 8, + "y": 21 + }, + "id": 41, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "center", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "last" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.2.7", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIAMETRICS}" + }, + "editorMode": "code", + "expr": "( sum without (le,instance,job) ( (eturnal_turn_relay_rcvd_bytes_bucket{instance=~\"$instance\",le=~\"$threshold_size\"} + eturnal_turn_relay_sent_bytes_bucket{instance=~\"$instance\",le=~\"$threshold_size\"}) / 2 ) \n/ ( sum without (le,instance,job) (eturnal_turn_sessions_total{instance=~\"$instance\"}) ) )\n\n* ( sum without (le,instance,job) (eturnal_turn_open_sessions{instance=~\"$instance\"}) )", + "hide": false, + "legendFormat": "__auto", + "range": true, + "refId": "B" + } + ], + "title": "Open inactive* TURN sessions", + "transformations": [ + { + "id": "calculateField", + "options": {} + } + ], + "type": "stat" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 24 + }, + "id": 50, + "panels": [], + "title": "Information per TURN session", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIAMETRICS}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "scaleDistribution": { + "type": "linear" + } + } + }, + "overrides": [] + }, + "gridPos": { + "h": 10, + "w": 8, + "x": 0, + "y": 25 + }, + "id": 35, + "options": { + "calculate": false, + "cellGap": 1, + "cellValues": { + "decimals": 0 + }, + "color": { + "exponent": 0.5, + "fill": "dark-orange", + "mode": "scheme", + "reverse": true, + "scale": "exponential", + "scheme": "Plasma", + "steps": 88 + }, + "exemplars": { + "color": "rgba(255,0,255,0.7)" + }, + "filterValues": { + "le": 1e-9 + }, + "legend": { + "show": true + }, + "rowsFrame": { + "layout": "auto" + }, + "tooltip": { + "show": true, + "yHistogram": false + }, + "yAxis": { + "axisPlacement": "left", + "reverse": false, + "unit": "s" + } + }, + "pluginVersion": "9.2.7", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIAMETRICS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum without (job,instance,transport) (irate(eturnal_turn_session_duration_seconds_bucket{instance=~\"$instance\",transport=~\"$transport\"}[$__rate_interval]))*15", + "format": "heatmap", + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Session duration distribution | transports $transport", + "transformations": [], + "type": "heatmap" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIAMETRICS}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "scaleDistribution": { + "type": "linear" + } + } + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 8, + "x": 8, + "y": 25 + }, + "id": 26, + "options": { + "calculate": false, + "cellGap": 1, + "cellValues": { + "decimals": 0 + }, + "color": { + "exponent": 0.5, + "fill": "dark-orange", + "mode": "scheme", + "reverse": true, + "scale": "exponential", + "scheme": "Plasma", + "steps": 64 + }, + "exemplars": { + "color": "transparent" + }, + "filterValues": { + "le": 1e-9 + }, + "legend": { + "show": false + }, + "rowsFrame": { + "layout": "auto" + }, + "tooltip": { + "show": true, + "yHistogram": true + }, + "yAxis": { + "axisPlacement": "left", + "reverse": false, + "unit": "bytes" + } + }, + "pluginVersion": "9.2.7", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIAMETRICS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum without (job,instance,transport) ( (irate(eturnal_turn_relay_rcvd_bytes_bucket{instance=~\"$instance\",transport=~\"$transport\"}[$__rate_interval]))*$__interval)", + "format": "heatmap", + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Relay data distribution (rcvd↓) | transports $transport", + "transformations": [], + "type": "heatmap" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIAMETRICS}" + }, + "description": "*w/o sessions <=$threshold_size bytes ($transport)", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "yellow", + "value": null + } + ] + }, + "unit": "bytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 10, + "w": 2, + "x": 16, + "y": 25 + }, + "id": 68, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "textMode": "name" + }, + "pluginVersion": "9.2.7", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIAMETRICS}" + }, + "editorMode": "code", + "expr": "(sum without (instance,job) (eturnal_turn_relay_rcvd_bytes_sum{instance=~\"$instance\"})) / (sum without (instance,job) ( (eturnal_turn_sessions_total{instance=~\"$instance\"}) - ignoring(le) eturnal_turn_relay_rcvd_bytes_bucket{instance=~\"$instance\",le=~\"$threshold_size\"} ))", + "hide": false, + "legendFormat": "{{transport}}", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIAMETRICS}" + }, + "editorMode": "code", + "expr": "(sum without (instance,job,transport) (eturnal_turn_relay_rcvd_bytes_sum{instance=~\"$instance\"})) / (sum without (instance,job,transport) ( (eturnal_turn_sessions_total{instance=~\"$instance\"}) - ignoring(le) eturnal_turn_relay_rcvd_bytes_bucket{instance=~\"$instance\",le=~\"$threshold_size\"} ))", + "hide": false, + "legendFormat": "Overall", + "range": true, + "refId": "C" + } + ], + "title": "Transport", + "transformations": [], + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIAMETRICS}" + }, + "description": "*w/o sessions <=$threshold_size bytes ($transport)", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "bytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 10, + "w": 2, + "x": 18, + "y": 25 + }, + "id": 29, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "textMode": "value" + }, + "pluginVersion": "9.2.7", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIAMETRICS}" + }, + "editorMode": "code", + "expr": "(sum without (instance,job) (eturnal_turn_relay_rcvd_bytes_sum{instance=~\"$instance\"})) / (sum without (instance,job) ( (eturnal_turn_sessions_total{instance=~\"$instance\"}) - ignoring(le) eturnal_turn_relay_rcvd_bytes_bucket{instance=~\"$instance\",le=~\"$threshold_size\"} ))", + "hide": false, + "legendFormat": "{{transport}}", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIAMETRICS}" + }, + "editorMode": "code", + "expr": "(sum without (instance,job,transport) (eturnal_turn_relay_rcvd_bytes_sum{instance=~\"$instance\"})) / (sum without (instance,job,transport) ( (eturnal_turn_sessions_total{instance=~\"$instance\"}) - ignoring(le) eturnal_turn_relay_rcvd_bytes_bucket{instance=~\"$instance\",le=~\"$threshold_size\"} ))", + "hide": false, + "legendFormat": "Overall", + "range": true, + "refId": "C" + } + ], + "title": "↓ Mean* received", + "transformations": [], + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIAMETRICS}" + }, + "description": "*w/o sessions <=$threshold_size bytes ($transport)", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "yellow", + "value": null + } + ] + }, + "unit": "bytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 10, + "w": 2, + "x": 20, + "y": 25 + }, + "id": 30, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "textMode": "value" + }, + "pluginVersion": "9.2.7", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIAMETRICS}" + }, + "editorMode": "code", + "expr": "(sum without (instance,job) (eturnal_turn_relay_sent_bytes_sum{instance=~\"$instance\"})) / (sum without (instance,job) ( (eturnal_turn_sessions_total{instance=~\"$instance\"}) - ignoring(le) eturnal_turn_relay_sent_bytes_bucket{instance=~\"$instance\",le=~\"$threshold_size\"} ))", + "hide": false, + "legendFormat": "{{transport}}", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIAMETRICS}" + }, + "editorMode": "code", + "expr": "(sum without (instance,job,transport) (eturnal_turn_relay_sent_bytes_sum{instance=~\"$instance\"})) / (sum without (instance,job,transport) ( (eturnal_turn_sessions_total{instance=~\"$instance\"}) - ignoring(le) eturnal_turn_relay_sent_bytes_bucket{instance=~\"$instance\",le=~\"$threshold_size\"} ))", + "hide": false, + "legendFormat": "Overall", + "range": true, + "refId": "C" + } + ], + "title": "↑ Mean* sent", + "transformations": [], + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIAMETRICS}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "blue", + "value": null + } + ] + }, + "unit": "dthms" + }, + "overrides": [] + }, + "gridPos": { + "h": 10, + "w": 2, + "x": 22, + "y": 25 + }, + "id": 44, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "textMode": "value" + }, + "pluginVersion": "9.2.7", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIAMETRICS}" + }, + "editorMode": "code", + "expr": "(sum without (instance,job) (eturnal_turn_session_duration_seconds_sum{instance=~\"$instance\"})) / (sum without (instance,job) ( (eturnal_turn_sessions_total{instance=~\"$instance\"})))", + "hide": false, + "legendFormat": "{{transport}}", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIAMETRICS}" + }, + "editorMode": "code", + "expr": "(sum without (instance,job,transport) (eturnal_turn_session_duration_seconds_sum{instance=~\"$instance\"})) / (sum without (instance,job,transport) ( (eturnal_turn_sessions_total{instance=~\"$instance\"})))", + "hide": false, + "legendFormat": "Overall", + "range": true, + "refId": "C" + } + ], + "title": "Mean duration [in hh:mm:ss]", + "transformations": [], + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIAMETRICS}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "scaleDistribution": { + "type": "linear" + } + } + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 8, + "x": 8, + "y": 30 + }, + "id": 69, + "options": { + "calculate": false, + "cellGap": 1, + "cellValues": { + "decimals": 0 + }, + "color": { + "exponent": 0.5, + "fill": "dark-orange", + "mode": "scheme", + "reverse": true, + "scale": "exponential", + "scheme": "Plasma", + "steps": 64 + }, + "exemplars": { + "color": "rgba(255,0,255,0.7)" + }, + "filterValues": { + "le": 1e-9 + }, + "legend": { + "show": false + }, + "rowsFrame": { + "layout": "auto" + }, + "tooltip": { + "show": true, + "yHistogram": true + }, + "yAxis": { + "axisPlacement": "left", + "reverse": false, + "unit": "bytes" + } + }, + "pluginVersion": "9.2.7", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIAMETRICS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum without (job,instance,transport) ((irate(eturnal_turn_relay_sent_bytes_bucket{instance=~\"$instance\",transport=~\"$transport\"}[$__rate_interval]))*$__interval)", + "format": "heatmap", + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Relay data distribution (sent↑) | transports $transport", + "transformations": [], + "type": "heatmap" + } + ], + "refresh": "30s", + "revision": 1, + "schemaVersion": 37, + "style": "dark", + "tags": [ + "STUN", + "TURN", + "eturnal" + ], + "templating": { + "list": [ + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIAMETRICS}" + }, + "definition": "label_values(instance) ", + "description": "Please provide the targeted server 'domain:port' which is targeted with your Prometheus server.", + "hide": 0, + "includeAll": false, + "label": "Target server", + "multi": false, + "name": "instance", + "options": [], + "query": { + "query": "label_values(instance) ", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIAMETRICS}" + }, + "definition": "label_values(transport) ", + "description": "Display STUN/TURN transports.", + "hide": 0, + "includeAll": true, + "label": "Transport", + "multi": true, + "name": "transport", + "options": [], + "query": { + "query": "label_values(transport) ", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "current": { + "selected": false, + "text": "4096", + "value": "4096" + }, + "description": "Choose threshold for session sizes to be labeled as \"inactive\" / \"unused\" TURN session.", + "hide": 0, + "includeAll": false, + "label": "Threshold size [in bytes]", + "multi": false, + "name": "threshold_size", + "options": [ + { + "selected": true, + "text": "4096", + "value": "4096" + }, + { + "selected": false, + "text": "32768", + "value": "32768" + }, + { + "selected": false, + "text": "262144", + "value": "262144" + } + ], + "query": "4096, 32768, 262144", + "queryValue": "", + "skipUrlSync": false, + "type": "custom" + }, + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIAMETRICS}" + }, + "definition": "label_values(reason) ", + "description": "Selection of protocol errors displayed in the dashboard.", + "hide": 0, + "includeAll": true, + "label": "Protocol errors", + "multi": true, + "name": "protocol_errors", + "options": [], + "query": { + "query": "label_values(reason) ", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + } + ] + }, + "time": { + "from": "now-6h", + "to": "now" + }, + "timepicker": {}, + "timezone": "", + "title": "eturnal STUN/TURN server official dashboard", + "uid": "0uBAM6E4k", + "version": 81, + "weekStart": "" +} + From 76f78cc89291e1abfb9fb92aff588cc05975aaa2 Mon Sep 17 00:00:00 2001 From: Saarko <90323876+sando38@users.noreply.github.com> Date: Fri, 22 Dec 2023 18:06:21 -0600 Subject: [PATCH 2/5] Update grafana-prometheus.json --- config/grafana-prometheus.json | 1158 ++++++++++++++------------------ 1 file changed, 497 insertions(+), 661 deletions(-) diff --git a/config/grafana-prometheus.json b/config/grafana-prometheus.json index 67191f306..87bf2bc71 100644 --- a/config/grafana-prometheus.json +++ b/config/grafana-prometheus.json @@ -15,7 +15,13 @@ "type": "grafana", "id": "grafana", "name": "Grafana", - "version": "9.2.7" + "version": "10.1.2" + }, + { + "type": "panel", + "id": "graph", + "name": "Graph (old)", + "version": "" }, { "type": "panel", @@ -69,20 +75,7 @@ "fiscalYearStartMonth": 0, "graphTooltip": 0, "id": null, - "links": [ - { - "asDropdown": false, - "icon": "external link", - "includeVars": false, - "keepTime": false, - "tags": [], - "targetBlank": false, - "title": "New link", - "tooltip": "", - "type": "dashboards", - "url": "" - } - ], + "links": [], "liveNow": false, "panels": [ { @@ -115,15 +108,19 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, - "drawStyle": "bars", - "fillOpacity": 0, - "gradientMode": "none", + "drawStyle": "line", + "fillOpacity": 34, + "gradientMode": "opacity", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, - "lineInterpolation": "linear", + "insertNulls": false, + "lineInterpolation": "smooth", + "lineStyle": { + "fill": "solid" + }, "lineWidth": 1, "pointSize": 5, "scaleDistribution": { @@ -212,7 +209,7 @@ "uid": "${DS_VICTORIAMETRICS}" }, "editorMode": "code", - "expr": "erlang_vm_memory_bytes_total{instance=~\"$instance\"}", + "expr": "erlang_vm_memory_bytes_total{unit=~\"$unit\"}", "hide": false, "legendFormat": "{{kind}}", "range": true, @@ -269,6 +266,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "smooth", "lineWidth": 1, "pointSize": 5, @@ -453,264 +451,111 @@ }, "editorMode": "code", "exemplar": false, - "expr": "sum without (transport) (increase(eturnal_protocol_error_total{instance=~\"$instance\",reason=~\"$protocol_errors\",transport=~\"$transport\"}[$__rate_interval]))>0", + "expr": "sum without (transport) (increase(eturnal_protocol_error_total{unit=~\"$unit\"}[$__rate_interval]))>0", "format": "time_series", "hide": false, "instant": false, - "legendFormat": "{{reason}} {{transport}}", + "legendFormat": "{{reason}}", "range": true, "refId": "B" } ], - "title": "Protocol errors | transports $transport", + "title": "Protocol errors", "transformations": [], "type": "timeseries" }, { + "aliasColors": { + "Busy": "#EAB839", + "Busy Iowait": "#890F02", + "Busy other": "#1F78C1", + "Idle": "#052B51", + "Idle - Waiting for something to happen": "#052B51", + "guest": "#9AC48A", + "idle": "#052B51", + "iowait": "#EAB839", + "irq": "#BF1B00", + "nice": "#C15C17", + "softirq": "#E24D42", + "steal": "#FCE2DE", + "system": "#508642", + "user": "#5195CE" + }, + "bars": false, + "dashLength": 10, + "dashes": false, "datasource": { - "type": "datasource", - "uid": "-- Dashboard --" + "type": "prometheus", + "uid": "${DS_VICTORIAMETRICS}" }, - "description": "*Calculated with historical data from all past sessions for all current open sessions", + "decimals": 2, + "description": "Basic CPU info", "fieldConfig": { "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "binBps" + "links": [] }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "↑ VM_Output" - }, - "properties": [ - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "yellow", - "value": null - } - ] - } - } - ] - } - ] + "overrides": [] }, + "fill": 4, + "fillGradient": 0, "gridPos": { - "h": 4, - "w": 2, + "h": 5, + "w": 8, "x": 16, "y": 1 }, - "id": 67, + "hiddenSeries": false, + "id": 71, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "sideWidth": 250, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "maxPerRow": 6, + "nullPointMode": "null", "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "max" - ], - "fields": "", - "values": false - }, - "textMode": "name" - }, - "pluginVersion": "9.2.7", - "targets": [ + "alertThreshold": true + }, + "percentage": true, + "pluginVersion": "10.1.2", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [ { - "datasource": { - "type": "datasource", - "uid": "-- Dashboard --" - }, - "panelId": 37, - "refId": "A" - } - ], - "title": "Relay data I/O", - "transformations": [ + "alias": "Busy Iowait", + "color": "#890F02" + }, { - "id": "filterByRefId", - "options": { - "include": "G|F" - } - } - ], - "type": "stat" - }, - { - "datasource": { - "type": "datasource", - "uid": "-- Dashboard --" - }, - "description": "*Calculated with historical data from all past sessions for all current open sessions", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "binBps" + "alias": "Idle", + "color": "#7EB26D" }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "↑ VM_Output" - }, - "properties": [ - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "yellow", - "value": null - } - ] - } - } - ] - } - ] - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 18, - "y": 1 - }, - "id": 39, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "max" - ], - "fields": "", - "values": false + { + "alias": "Busy System", + "color": "#EAB839" }, - "textMode": "value" - }, - "pluginVersion": "9.2.7", - "targets": [ { - "datasource": { - "type": "datasource", - "uid": "-- Dashboard --" - }, - "panelId": 37, - "refId": "A" - } - ], - "title": "Peak rate | transports $transport", - "transformations": [ + "alias": "Busy User", + "color": "#0A437C" + }, { - "id": "filterByRefId", - "options": { - "include": "F|G" - } + "alias": "Busy Other", + "color": "#6D1F62" } ], - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_VICTORIAMETRICS}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "yellow", - "value": null - } - ] - }, - "unit": "bytes" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "VM_Input" - }, - "properties": [ - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - } - } - ] - } - ] - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 21, - "y": 1 - }, - "id": 65, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "sum" - ], - "fields": "", - "values": false - }, - "textMode": "value" - }, - "pluginVersion": "9.2.7", + "spaceLength": 10, + "stack": true, + "steppedLine": false, "targets": [ { "datasource": { @@ -718,11 +563,14 @@ "uid": "${DS_VICTORIAMETRICS}" }, "editorMode": "code", - "expr": "sum without(instance,job,transport) (increase(erlang_vm_statistics_bytes_received_total{instance=\"$instance\"}[$__rate_interval])) / 2", + "expr": "sum by (unit)(irate(node_cpu_seconds_total{mode=\"system\",unit=\"$unit\",job=\"eturnal.turn\"}[5m])) * 100", + "format": "time_series", "hide": false, - "legendFormat": "VM_Input", + "intervalFactor": 2, + "legendFormat": "Busy System", "range": true, - "refId": "A" + "refId": "A", + "step": 240 }, { "datasource": { @@ -730,11 +578,14 @@ "uid": "${DS_VICTORIAMETRICS}" }, "editorMode": "code", - "expr": "sum without(instance,job,transport) (increase(erlang_vm_statistics_bytes_output_total{instance=\"$instance\"}[$__rate_interval])) / 2", + "expr": "sum by (unit)(irate(node_cpu_seconds_total{mode='user',instaunit=\"$unit\",job=\"eturnal.turn\"}[5m])) * 100", + "format": "time_series", "hide": false, - "legendFormat": "VM_Output", + "intervalFactor": 2, + "legendFormat": "Busy User", "range": true, - "refId": "B" + "refId": "B", + "step": 240 }, { "datasource": { @@ -742,11 +593,13 @@ "uid": "${DS_VICTORIAMETRICS}" }, "editorMode": "code", - "expr": "sum without(instance,job,transport) (increase(eturnal_turn_relay_rcvd_bytes_sum{instance=\"$instance\"}[$__rate_interval]))", - "hide": true, - "legendFormat": "VM_Input", + "expr": "sum by (unit)(irate(node_cpu_seconds_total{mode='iowait',unit=\"$unit\",job=\"eturnal.turn\"}[5m])) * 100", + "format": "time_series", + "intervalFactor": 2, + "legendFormat": "Busy Iowait", "range": true, - "refId": "C" + "refId": "C", + "step": 240 }, { "datasource": { @@ -754,190 +607,173 @@ "uid": "${DS_VICTORIAMETRICS}" }, "editorMode": "code", - "expr": "sum without(instance,job,transport) (increase(eturnal_turn_relay_sent_bytes_sum{instance=\"$instance\"}[$__rate_interval]))", - "hide": true, - "legendFormat": "VM_Output", + "expr": "sum by (unit)(irate(node_cpu_seconds_total{mode=~\".*irq\",unit=\"$unit\",job=\"eturnal.turn\"}[5m])) * 100", + "format": "time_series", + "intervalFactor": 2, + "legendFormat": "Busy IRQs", "range": true, - "refId": "D" - } - ], - "title": "Traffic overall", - "type": "stat" - }, - { - "datasource": { - "type": "datasource", - "uid": "-- Dashboard --" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "blue", - "value": null - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 5, - "x": 16, - "y": 5 - }, - "id": 62, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "max" - ], - "fields": "", - "values": false + "refId": "D", + "step": 240 }, - "textMode": "value_and_name" - }, - "pluginVersion": "9.2.7", - "targets": [ { "datasource": { - "type": "datasource", - "uid": "-- Dashboard --" - }, - "panelId": 22, - "refId": "A" - } - ], - "title": "Peak STUN queries | transports $transport", - "transformations": [], - "type": "stat" - }, - { - "datasource": { - "type": "datasource", - "uid": "-- Dashboard --" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "blue", - "value": null - } - ] + "type": "prometheus", + "uid": "${DS_VICTORIAMETRICS}" }, - "unit": "dthms" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 21, - "y": 5 - }, - "id": 63, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "center", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "mean" - ], - "fields": "", - "values": false + "editorMode": "code", + "expr": "sum (irate(node_cpu_seconds_total{mode!='idle',mode!='user',mode!='system',mode!='iowait',mode!='irq',mode!='softirq',unit=\"$unit\",job=\"eturnal.turn\"}[5m])) * 100", + "format": "time_series", + "intervalFactor": 2, + "legendFormat": "Busy Other", + "range": true, + "refId": "E", + "step": 240 }, - "textMode": "auto" - }, - "pluginVersion": "9.2.7", - "targets": [ { "datasource": { - "type": "datasource", - "uid": "-- Dashboard --" + "type": "prometheus", + "uid": "${DS_VICTORIAMETRICS}" }, - "panelId": 44, - "refId": "A" + "editorMode": "code", + "expr": "sum by (mode)(irate(node_cpu_seconds_total{mode='idle',unit=\"$unit\",job=\"eturnal.turn\"}[5m])) * 100", + "format": "time_series", + "intervalFactor": 2, + "legendFormat": "Idle", + "range": true, + "refId": "F", + "step": 240 } ], - "title": "Avg. duration / session [in hh:mm:ss]", - "transformations": [ + "thresholds": [], + "timeRegions": [], + "title": "CPU Basic", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ { - "id": "filterByRefId", - "options": { - "include": "C" - } + "format": "short", + "label": "", + "logBase": 1, + "max": "100", + "min": "0", + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": false } ], - "type": "stat" + "yaxis": { + "align": false + } }, { + "aliasColors": { + "Apps": "#629E51", + "Buffers": "#614D93", + "Cache": "#6D1F62", + "Cached": "#511749", + "Committed": "#508642", + "Free": "#0A437C", + "Hardware Corrupted - Amount of RAM that the kernel identified as corrupted / not working": "#CFFAFF", + "Inactive": "#584477", + "PageTables": "#0A50A1", + "Page_Tables": "#0A50A1", + "RAM_Free": "#E0F9D7", + "SWAP Used": "#BF1B00", + "Slab": "#806EB7", + "Slab_Cache": "#E0752D", + "Swap": "#BF1B00", + "Swap Used": "#BF1B00", + "Swap_Cache": "#C15C17", + "Swap_Free": "#2F575E", + "Unused": "#EAB839" + }, + "bars": false, + "dashLength": 10, + "dashes": false, "datasource": { - "type": "prometheus", - "uid": "${DS_VICTORIAMETRICS}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "blue", - "value": null - } - ] - }, - "unit": "none" + "type": "prometheus", + "uid": "${DS_VICTORIAMETRICS}" + }, + "decimals": 2, + "description": "Basic memory usage", + "fieldConfig": { + "defaults": { + "links": [] }, "overrides": [] }, + "fill": 4, + "fillGradient": 0, "gridPos": { - "h": 3, + "h": 5, "w": 8, "x": 16, - "y": 8 - }, - "id": 56, + "y": 6 + }, + "hiddenSeries": false, + "id": 72, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "sideWidth": 350, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "maxPerRow": 6, + "nullPointMode": "null", "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "center", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "max" - ], - "fields": "", - "values": false + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "10.1.2", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "alias": "RAM Total", + "color": "#E0F9D7", + "fill": 0, + "stack": false }, - "textMode": "value_and_name" - }, - "pluginVersion": "9.2.7", + { + "alias": "RAM Cache + Buffer", + "color": "#052B51" + }, + { + "alias": "RAM Free", + "color": "#7EB26D" + }, + { + "alias": "Avaliable", + "color": "#DEDAF7", + "fill": 0, + "stack": false + } + ], + "spaceLength": 10, + "stack": true, + "steppedLine": false, "targets": [ { "datasource": { @@ -945,21 +781,104 @@ "uid": "${DS_VICTORIAMETRICS}" }, "editorMode": "code", - "expr": "sum without(instance,job) (eturnal_turn_open_sessions{instance=~\"$instance\"})", + "expr": "node_memory_MemTotal_bytes{unit=\"$unit\",job=\"eturnal.turn\"}", + "format": "time_series", "hide": false, - "legendFormat": "{{transport}}", + "intervalFactor": 2, + "legendFormat": "RAM Total", "range": true, - "refId": "A" + "refId": "A", + "step": 240 + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIAMETRICS}" + }, + "editorMode": "code", + "expr": "node_memory_MemTotal_bytes{unit=\"$unit\",job=\"eturnal.turn\"} - node_memory_MemFree_bytes{unit=\"$unit\",job=\"eturnal.turn\"} - (node_memory_Cached_bytes{unit=\"$unit\",job=\"eturnal.turn\"} + node_memory_Buffers_bytes{unit=\"$unit\",job=\"eturnal.turn\"})", + "format": "time_series", + "hide": false, + "intervalFactor": 2, + "legendFormat": "RAM Used", + "range": true, + "refId": "B", + "step": 240 + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIAMETRICS}" + }, + "editorMode": "code", + "expr": "node_memory_Cached_bytes{unit=\"$unit\",job=\"eturnal.turn\"} + node_memory_Buffers_bytes{unit=\"$unit\",job=\"eturnal.turn\"}", + "format": "time_series", + "intervalFactor": 2, + "legendFormat": "RAM Cache + Buffer", + "range": true, + "refId": "C", + "step": 240 + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIAMETRICS}" + }, + "editorMode": "code", + "expr": "node_memory_MemFree_bytes{unit=\"$unit\",job=\"eturnal.turn\"}", + "format": "time_series", + "intervalFactor": 2, + "legendFormat": "RAM Free", + "range": true, + "refId": "D", + "step": 240 + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_VICTORIAMETRICS}" + }, + "editorMode": "code", + "expr": "(node_memory_SwapTotal_bytes{unit=\"$unit\",job=\"eturnal.turn\"} - node_memory_SwapFree_bytes{unit=\"$unit\",job=\"eturnal.turn\"})", + "format": "time_series", + "intervalFactor": 2, + "legendFormat": "SWAP Used", + "range": true, + "refId": "E", + "step": 240 } ], - "title": "Peak # of concurrent open TURN sessions", - "transformations": [ + "thresholds": [], + "timeRegions": [], + "title": "Memory Basic", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ { - "id": "calculateField", - "options": {} + "format": "bytes", + "label": "", + "logBase": 1, + "min": "0", + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": false } ], - "type": "stat" + "yaxis": { + "align": false + } }, { "collapsed": false, @@ -999,6 +918,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, @@ -1059,7 +979,7 @@ "uid": "${DS_VICTORIAMETRICS}" }, "editorMode": "code", - "expr": "irate(sum(eturnal_stun_requests_total{instance=~\"$instance\",transport=~\"$transport\"}[$__rate_interval]))*$__interval", + "expr": "irate(sum(eturnal_stun_requests_total{unit=~\"$unit\"}[$__rate_interval]))*$__interval", "format": "time_series", "legendFormat": "STUN queries", "range": true, @@ -1109,6 +1029,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, @@ -1166,7 +1087,7 @@ "uid": "${DS_VICTORIAMETRICS}" }, "editorMode": "code", - "expr": "eturnal_turn_open_sessions{instance=~\"$instance\"}", + "expr": "eturnal_turn_open_sessions{unit=~\"$unit\"}", "hide": false, "legendFormat": "{{transport}}", "range": true, @@ -1178,149 +1099,91 @@ "type": "timeseries" }, { + "aliasColors": { + "Recv_bytes_eth2": "#7EB26D", + "Recv_bytes_lo": "#0A50A1", + "Recv_drop_eth2": "#6ED0E0", + "Recv_drop_lo": "#E0F9D7", + "Recv_errs_eth2": "#BF1B00", + "Recv_errs_lo": "#CCA300", + "Trans_bytes_eth2": "#7EB26D", + "Trans_bytes_lo": "#0A50A1", + "Trans_drop_eth2": "#6ED0E0", + "Trans_drop_lo": "#E0F9D7", + "Trans_errs_eth2": "#BF1B00", + "Trans_errs_lo": "#CCA300", + "recv_bytes_lo": "#0A50A1", + "recv_drop_eth0": "#99440A", + "recv_drop_lo": "#967302", + "recv_errs_eth0": "#BF1B00", + "recv_errs_lo": "#890F02", + "trans_bytes_eth0": "#7EB26D", + "trans_bytes_lo": "#0A50A1", + "trans_drop_eth0": "#99440A", + "trans_drop_lo": "#967302", + "trans_errs_eth0": "#BF1B00", + "trans_errs_lo": "#890F02" + }, + "bars": false, + "dashLength": 10, + "dashes": false, "datasource": { "type": "prometheus", "uid": "${DS_VICTORIAMETRICS}" }, - "description": "*Calculated with historical data from all past sessions for all current open sessions.", + "description": "Basic network info per interface", "fieldConfig": { "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 4, - "gradientMode": "hue", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "stepAfter", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "dashed" - } - }, - "mappings": [], - "thresholds": { - "mode": "percentage", - "steps": [ - { - "color": "purple", - "value": null - } - ] - }, - "unit": "binBps" + "links": [] }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "↑ VM_Output" - }, - "properties": [ - { - "id": "custom.transform", - "value": "negative-Y" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "↓ VM_Input avg past 7d" - }, - "properties": [ - { - "id": "custom.fillOpacity", - "value": 40 - }, - { - "id": "custom.lineWidth", - "value": 0 - }, - { - "id": "custom.hideFrom", - "value": { - "legend": true, - "tooltip": false, - "viz": false - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "↑ VM_Output avg past 7d" - }, - "properties": [ - { - "id": "custom.transform", - "value": "negative-Y" - }, - { - "id": "custom.fillOpacity", - "value": 40 - }, - { - "id": "custom.lineWidth", - "value": 0 - }, - { - "id": "custom.hideFrom", - "value": { - "legend": true, - "tooltip": false, - "viz": false - } - } - ] - } - ] + "overrides": [] }, + "fill": 4, + "fillGradient": 0, "gridPos": { "h": 12, "w": 8, "x": 16, "y": 12 }, - "id": 37, + "hiddenSeries": false, + "id": 70, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "hideEmpty": false, + "hideZero": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "sort": "current", + "sortDesc": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", "options": { - "legend": { - "calcs": [ - "mean", - "stdDev", - "last" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "10.1.2", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "alias": "/.*trans.*/", + "transform": "negative-Y" } - }, - "pluginVersion": "9.2.7", + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, "targets": [ { "datasource": { @@ -1328,11 +1191,13 @@ "uid": "${DS_VICTORIAMETRICS}" }, "editorMode": "code", - "expr": "irate(erlang_vm_statistics_bytes_received_total{instance=\"$instance\"}[$__rate_interval]) / 2 ", - "hide": false, - "legendFormat": "↓ VM_Input", + "expr": "irate(node_network_receive_bytes_total{unit=\"$unit\",job=\"eturnal.turn\"}[5m])*8", + "format": "time_series", + "intervalFactor": 2, + "legendFormat": "recv {{device}}", "range": true, - "refId": "G" + "refId": "A", + "step": 240 }, { "datasource": { @@ -1340,40 +1205,45 @@ "uid": "${DS_VICTORIAMETRICS}" }, "editorMode": "code", - "expr": "irate(erlang_vm_statistics_bytes_output_total{instance=\"$instance\"}[$__rate_interval]) / 2 ", - "hide": false, - "legendFormat": "↑ VM_Output", + "expr": "irate(node_network_transmit_bytes_total{unit=\"$unit\",job=\"eturnal.turn\"}[5m])*8", + "format": "time_series", + "intervalFactor": 2, + "legendFormat": "trans {{device}} ", "range": true, - "refId": "F" - }, + "refId": "B", + "step": 240 + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Network Traffic Basic", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ { - "datasource": { - "type": "prometheus", - "uid": "${DS_VICTORIAMETRICS}" - }, - "editorMode": "code", - "expr": "(\n irate(erlang_vm_statistics_bytes_received_total{instance=\"$instance\"}[$__rate_interval] offset 1d) +\n irate(erlang_vm_statistics_bytes_received_total{instance=\"$instance\"}[$__rate_interval] offset 2d) +\n irate(erlang_vm_statistics_bytes_received_total{instance=\"$instance\"}[$__rate_interval] offset 3d) +\n irate(erlang_vm_statistics_bytes_received_total{instance=\"$instance\"}[$__rate_interval] offset 4d) +\n irate(erlang_vm_statistics_bytes_received_total{instance=\"$instance\"}[$__rate_interval] offset 5d) +\n irate(erlang_vm_statistics_bytes_received_total{instance=\"$instance\"}[$__rate_interval] offset 6d) +\n irate(erlang_vm_statistics_bytes_received_total{instance=\"$instance\"}[$__rate_interval] offset 7d)\n) / 7 / 2 ", - "hide": false, - "legendFormat": "↓ VM_Input avg past 7d", - "range": true, - "refId": "A" + "format": "bps", + "logBase": 1, + "show": true }, { - "datasource": { - "type": "prometheus", - "uid": "${DS_VICTORIAMETRICS}" - }, - "editorMode": "code", - "expr": "(\n irate(erlang_vm_statistics_bytes_output_total{instance=\"$instance\"}[$__rate_interval] offset 1d) +\n irate(erlang_vm_statistics_bytes_output_total{instance=\"$instance\"}[$__rate_interval] offset 2d) +\n irate(erlang_vm_statistics_bytes_output_total{instance=\"$instance\"}[$__rate_interval] offset 3d) +\n irate(erlang_vm_statistics_bytes_output_total{instance=\"$instance\"}[$__rate_interval] offset 4d) +\n irate(erlang_vm_statistics_bytes_output_total{instance=\"$instance\"}[$__rate_interval] offset 5d) +\n irate(erlang_vm_statistics_bytes_output_total{instance=\"$instance\"}[$__rate_interval] offset 6d) +\n irate(erlang_vm_statistics_bytes_output_total{instance=\"$instance\"}[$__rate_interval] offset 7d)\n) / 7 / 2 ", - "hide": false, - "legendFormat": "↑ VM_Output avg past 7d", - "range": true, - "refId": "B" + "format": "pps", + "label": "", + "logBase": 1, + "show": false } ], - "title": "Relay data rate | transports $transport", - "transformations": [], - "type": "timeseries" + "yaxis": { + "align": false + } }, { "datasource": { @@ -1400,6 +1270,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, @@ -1461,7 +1332,7 @@ "uid": "${DS_VICTORIAMETRICS}" }, "editorMode": "code", - "expr": "irate(sum(eturnal_turn_sessions_total{instance=~\"$instance\",transport=~\"$transport\"}[$__rate_interval]))*$__interval", + "expr": "irate(sum(eturnal_turn_sessions_total{unit=~\"$unit\"}[$__rate_interval]))*$__interval", "hide": false, "legendFormat": "newly opened TURN Sessions", "range": true, @@ -1532,7 +1403,7 @@ }, "textMode": "auto" }, - "pluginVersion": "9.2.7", + "pluginVersion": "10.1.2", "targets": [ { "datasource": { @@ -1540,7 +1411,7 @@ "uid": "${DS_VICTORIAMETRICS}" }, "editorMode": "code", - "expr": "( 1 - \n\n ( sum without (le,instance,job) ( (eturnal_turn_relay_rcvd_bytes_bucket{instance=~\"$instance\",le=~\"$threshold_size\"} + eturnal_turn_relay_sent_bytes_bucket{instance=~\"$instance\",le=~\"$threshold_size\"}) / 2 ) \n / ( sum without (le,instance,job) (eturnal_turn_sessions_total{instance=~\"$instance\"}) ) ) )\n\n* ( sum without (le,instance,job) (eturnal_turn_open_sessions{instance=~\"$instance\"}) )", + "expr": "( 1 - \n\n ( sum without (le,unit,job) ( (eturnal_turn_relay_rcvd_bytes_bucket{unit=~\"$unit\",le=~\"$threshold_size\"} + eturnal_turn_relay_sent_bytes_bucket{unit=~\"$unit\",le=~\"$threshold_size\"}) / 2 ) \n / ( sum without (le,unit,job) (eturnal_turn_sessions_total{unit=~\"$unit\"}) ) ) )\n\n* ( sum without (le,unit,job) (eturnal_turn_open_sessions{unit=~\"$unit\"}) )", "hide": false, "legendFormat": "__auto", "range": true, @@ -1602,7 +1473,7 @@ }, "textMode": "auto" }, - "pluginVersion": "9.2.7", + "pluginVersion": "10.1.2", "targets": [ { "datasource": { @@ -1610,7 +1481,7 @@ "uid": "${DS_VICTORIAMETRICS}" }, "editorMode": "code", - "expr": "( sum without (le,instance,job) ( (eturnal_turn_relay_rcvd_bytes_bucket{instance=~\"$instance\",le=~\"$threshold_size\"} + eturnal_turn_relay_sent_bytes_bucket{instance=~\"$instance\",le=~\"$threshold_size\"}) / 2 ) \n/ ( sum without (le,instance,job) (eturnal_turn_sessions_total{instance=~\"$instance\"}) ) )\n\n* ( sum without (le,instance,job) (eturnal_turn_open_sessions{instance=~\"$instance\"}) )", + "expr": "( sum without (le,unit,job) ( (eturnal_turn_relay_rcvd_bytes_bucket{unit=~\"$unit\",le=~\"$threshold_size\"} + eturnal_turn_relay_sent_bytes_bucket{unit=~\"$unit\",le=~\"$threshold_size\"}) / 2 ) \n/ ( sum without (le,unit,job) (eturnal_turn_sessions_total{unit=~\"$unit\"}) ) )\n\n* ( sum without (le,unit,job) (eturnal_turn_open_sessions{unit=~\"$unit\"}) )", "hide": false, "legendFormat": "__auto", "range": true, @@ -1704,7 +1575,7 @@ "unit": "s" } }, - "pluginVersion": "9.2.7", + "pluginVersion": "10.1.2", "targets": [ { "datasource": { @@ -1713,7 +1584,7 @@ }, "editorMode": "code", "exemplar": false, - "expr": "sum without (job,instance,transport) (irate(eturnal_turn_session_duration_seconds_bucket{instance=~\"$instance\",transport=~\"$transport\"}[$__rate_interval]))*15", + "expr": "sum without (job,unit,transport) (irate(eturnal_turn_session_duration_seconds_bucket{unit=~\"$unit\"}[$__rate_interval]))*15", "format": "heatmap", "instant": false, "legendFormat": "__auto", @@ -1790,7 +1661,7 @@ "unit": "bytes" } }, - "pluginVersion": "9.2.7", + "pluginVersion": "10.1.2", "targets": [ { "datasource": { @@ -1799,7 +1670,7 @@ }, "editorMode": "code", "exemplar": false, - "expr": "sum without (job,instance,transport) ( (irate(eturnal_turn_relay_rcvd_bytes_bucket{instance=~\"$instance\",transport=~\"$transport\"}[$__rate_interval]))*$__interval)", + "expr": "sum without (job,unit,transport) ( (irate(eturnal_turn_relay_rcvd_bytes_bucket{unit=~\"$unit\"}[$__rate_interval]))*$__interval)", "format": "heatmap", "instant": false, "legendFormat": "__auto", @@ -1857,7 +1728,7 @@ }, "textMode": "name" }, - "pluginVersion": "9.2.7", + "pluginVersion": "10.1.2", "targets": [ { "datasource": { @@ -1865,7 +1736,7 @@ "uid": "${DS_VICTORIAMETRICS}" }, "editorMode": "code", - "expr": "(sum without (instance,job) (eturnal_turn_relay_rcvd_bytes_sum{instance=~\"$instance\"})) / (sum without (instance,job) ( (eturnal_turn_sessions_total{instance=~\"$instance\"}) - ignoring(le) eturnal_turn_relay_rcvd_bytes_bucket{instance=~\"$instance\",le=~\"$threshold_size\"} ))", + "expr": "(sum without (unit,job) (eturnal_turn_relay_rcvd_bytes_sum{unit=~\"$unit\"})) / (sum without (unit,job) ( (eturnal_turn_sessions_total{unit=~\"$unit\"}) - ignoring(le) eturnal_turn_relay_rcvd_bytes_bucket{unit=~\"$unit\",le=~\"$threshold_size\"} ))", "hide": false, "legendFormat": "{{transport}}", "range": true, @@ -1934,7 +1805,7 @@ }, "textMode": "value" }, - "pluginVersion": "9.2.7", + "pluginVersion": "10.1.2", "targets": [ { "datasource": { @@ -1942,7 +1813,7 @@ "uid": "${DS_VICTORIAMETRICS}" }, "editorMode": "code", - "expr": "(sum without (instance,job) (eturnal_turn_relay_rcvd_bytes_sum{instance=~\"$instance\"})) / (sum without (instance,job) ( (eturnal_turn_sessions_total{instance=~\"$instance\"}) - ignoring(le) eturnal_turn_relay_rcvd_bytes_bucket{instance=~\"$instance\",le=~\"$threshold_size\"} ))", + "expr": "(sum without (unit,job) (eturnal_turn_relay_rcvd_bytes_sum{unit=~\"$unit\"})) / (sum without (unit,job) ( (eturnal_turn_sessions_total{unit=~\"$unit\"}) - ignoring(le) eturnal_turn_relay_rcvd_bytes_bucket{unit=~\"$unit\",le=~\"$threshold_size\"} ))", "hide": false, "legendFormat": "{{transport}}", "range": true, @@ -1954,7 +1825,7 @@ "uid": "${DS_VICTORIAMETRICS}" }, "editorMode": "code", - "expr": "(sum without (instance,job,transport) (eturnal_turn_relay_rcvd_bytes_sum{instance=~\"$instance\"})) / (sum without (instance,job,transport) ( (eturnal_turn_sessions_total{instance=~\"$instance\"}) - ignoring(le) eturnal_turn_relay_rcvd_bytes_bucket{instance=~\"$instance\",le=~\"$threshold_size\"} ))", + "expr": "(sum without (unit,job,transport) (eturnal_turn_relay_rcvd_bytes_sum{unit=~\"$unit\"})) / (sum without (unit,job,transport) ( (eturnal_turn_sessions_total{unit=~\"$unit\"}) - ignoring(le) eturnal_turn_relay_rcvd_bytes_bucket{unit=~\"$unit\",le=~\"$threshold_size\"} ))", "hide": false, "legendFormat": "Overall", "range": true, @@ -2011,7 +1882,7 @@ }, "textMode": "value" }, - "pluginVersion": "9.2.7", + "pluginVersion": "10.1.2", "targets": [ { "datasource": { @@ -2019,7 +1890,7 @@ "uid": "${DS_VICTORIAMETRICS}" }, "editorMode": "code", - "expr": "(sum without (instance,job) (eturnal_turn_relay_sent_bytes_sum{instance=~\"$instance\"})) / (sum without (instance,job) ( (eturnal_turn_sessions_total{instance=~\"$instance\"}) - ignoring(le) eturnal_turn_relay_sent_bytes_bucket{instance=~\"$instance\",le=~\"$threshold_size\"} ))", + "expr": "(sum without (unit,job) (eturnal_turn_relay_sent_bytes_sum{unit=~\"$unit\"})) / (sum without (unit,job) ( (eturnal_turn_sessions_total{unit=~\"$unit\"}) - ignoring(le) eturnal_turn_relay_sent_bytes_bucket{unit=~\"$unit\",le=~\"$threshold_size\"} ))", "hide": false, "legendFormat": "{{transport}}", "range": true, @@ -2031,7 +1902,7 @@ "uid": "${DS_VICTORIAMETRICS}" }, "editorMode": "code", - "expr": "(sum without (instance,job,transport) (eturnal_turn_relay_sent_bytes_sum{instance=~\"$instance\"})) / (sum without (instance,job,transport) ( (eturnal_turn_sessions_total{instance=~\"$instance\"}) - ignoring(le) eturnal_turn_relay_sent_bytes_bucket{instance=~\"$instance\",le=~\"$threshold_size\"} ))", + "expr": "(sum without (unit,job,transport) (eturnal_turn_relay_sent_bytes_sum{unit=~\"$unit\"})) / (sum without (unit,job,transport) ( (eturnal_turn_sessions_total{unit=~\"$unit\"}) - ignoring(le) eturnal_turn_relay_sent_bytes_bucket{unit=~\"$unit\",le=~\"$threshold_size\"} ))", "hide": false, "legendFormat": "Overall", "range": true, @@ -2088,7 +1959,7 @@ }, "textMode": "value" }, - "pluginVersion": "9.2.7", + "pluginVersion": "10.1.2", "targets": [ { "datasource": { @@ -2096,7 +1967,7 @@ "uid": "${DS_VICTORIAMETRICS}" }, "editorMode": "code", - "expr": "(sum without (instance,job) (eturnal_turn_session_duration_seconds_sum{instance=~\"$instance\"})) / (sum without (instance,job) ( (eturnal_turn_sessions_total{instance=~\"$instance\"})))", + "expr": "(sum without (unit,job) (eturnal_turn_session_duration_seconds_sum{unit=~\"$unit\"})) / (sum without (unit,job) ( (eturnal_turn_sessions_total{unit=~\"$unit\"})))", "hide": false, "legendFormat": "{{transport}}", "range": true, @@ -2108,7 +1979,7 @@ "uid": "${DS_VICTORIAMETRICS}" }, "editorMode": "code", - "expr": "(sum without (instance,job,transport) (eturnal_turn_session_duration_seconds_sum{instance=~\"$instance\"})) / (sum without (instance,job,transport) ( (eturnal_turn_sessions_total{instance=~\"$instance\"})))", + "expr": "(sum without (unit,job,transport) (eturnal_turn_session_duration_seconds_sum{unit=~\"$unit\"})) / (sum without (unit,job,transport) ( (eturnal_turn_sessions_total{unit=~\"$unit\"})))", "hide": false, "legendFormat": "Overall", "range": true, @@ -2184,7 +2055,7 @@ "unit": "bytes" } }, - "pluginVersion": "9.2.7", + "pluginVersion": "10.1.2", "targets": [ { "datasource": { @@ -2193,7 +2064,7 @@ }, "editorMode": "code", "exemplar": false, - "expr": "sum without (job,instance,transport) ((irate(eturnal_turn_relay_sent_bytes_bucket{instance=~\"$instance\",transport=~\"$transport\"}[$__rate_interval]))*$__interval)", + "expr": "sum without (job,unit,transport) ((irate(eturnal_turn_relay_sent_bytes_bucket{unit=~\"$unit\"}[$__rate_interval]))*$__interval)", "format": "heatmap", "instant": false, "legendFormat": "__auto", @@ -2208,7 +2079,7 @@ ], "refresh": "30s", "revision": 1, - "schemaVersion": 37, + "schemaVersion": 38, "style": "dark", "tags": [ "STUN", @@ -2218,56 +2089,46 @@ "templating": { "list": [ { - "current": {}, - "datasource": { - "type": "prometheus", - "uid": "${DS_VICTORIAMETRICS}" + "current": { + "selected": false, + "text": "VictoriaMetrics", + "value": "P4169E866C3094E38" }, - "definition": "label_values(instance) ", - "description": "Please provide the targeted server 'domain:port' which is targeted with your Prometheus server.", "hide": 0, "includeAll": false, - "label": "Target server", + "label": "Datasource", "multi": false, - "name": "instance", + "name": "DS_PROMETHEUS", "options": [], - "query": { - "query": "label_values(instance) ", - "refId": "StandardVariableQuery" - }, + "query": "prometheus", "refresh": 1, "regex": "", "skipUrlSync": false, - "sort": 0, - "type": "query" + "type": "datasource" }, { "current": {}, - "datasource": { - "type": "prometheus", - "uid": "${DS_VICTORIAMETRICS}" - }, - "definition": "label_values(transport) ", - "description": "Display STUN/TURN transports.", + "definition": "query_result(eturnal_stun_requests_total)", + "description": "Target TURN server unit", "hide": 0, "includeAll": true, - "label": "Transport", + "label": "Target server", "multi": true, - "name": "transport", + "name": "unit", "options": [], "query": { - "query": "label_values(transport) ", - "refId": "StandardVariableQuery" + "query": "query_result(eturnal_stun_requests_total)", + "refId": "PrometheusVariableQueryEditor-VariableQuery" }, "refresh": 1, - "regex": "", + "regex": "/unit=\"(?[^\"]+)/g", "skipUrlSync": false, "sort": 0, "type": "query" }, { "current": { - "selected": false, + "selected": true, "text": "4096", "value": "4096" }, @@ -2298,30 +2159,6 @@ "queryValue": "", "skipUrlSync": false, "type": "custom" - }, - { - "current": {}, - "datasource": { - "type": "prometheus", - "uid": "${DS_VICTORIAMETRICS}" - }, - "definition": "label_values(reason) ", - "description": "Selection of protocol errors displayed in the dashboard.", - "hide": 0, - "includeAll": true, - "label": "Protocol errors", - "multi": true, - "name": "protocol_errors", - "options": [], - "query": { - "query": "label_values(reason) ", - "refId": "StandardVariableQuery" - }, - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 0, - "type": "query" } ] }, @@ -2333,7 +2170,6 @@ "timezone": "", "title": "eturnal STUN/TURN server official dashboard", "uid": "0uBAM6E4k", - "version": 81, + "version": 5, "weekStart": "" } - From 776233dc999829f420ed58bd69f072140520d36e Mon Sep 17 00:00:00 2001 From: Saarko <90323876+sando38@users.noreply.github.com> Date: Fri, 22 Dec 2023 19:23:41 -0600 Subject: [PATCH 3/5] Update grafana-prometheus.json --- config/grafana-prometheus.json | 2421 ++++++++++++++++---------------- 1 file changed, 1190 insertions(+), 1231 deletions(-) diff --git a/config/grafana-prometheus.json b/config/grafana-prometheus.json index 87bf2bc71..25d261f99 100644 --- a/config/grafana-prometheus.json +++ b/config/grafana-prometheus.json @@ -1,53 +1,4 @@ { - "__inputs": [ - { - "name": "DS_VICTORIAMETRICS", - "label": "VictoriaMetrics", - "description": "", - "type": "datasource", - "pluginId": "prometheus", - "pluginName": "Prometheus" - } - ], - "__elements": {}, - "__requires": [ - { - "type": "grafana", - "id": "grafana", - "name": "Grafana", - "version": "10.1.2" - }, - { - "type": "panel", - "id": "graph", - "name": "Graph (old)", - "version": "" - }, - { - "type": "panel", - "id": "heatmap", - "name": "Heatmap", - "version": "" - }, - { - "type": "datasource", - "id": "prometheus", - "name": "Prometheus", - "version": "1.0.0" - }, - { - "type": "panel", - "id": "stat", - "name": "Stat", - "version": "" - }, - { - "type": "panel", - "id": "timeseries", - "name": "Time series", - "version": "" - } - ], "annotations": { "list": [ { @@ -74,7 +25,7 @@ "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, - "id": null, + "id": 24, "links": [], "liveNow": false, "panels": [ @@ -92,765 +43,188 @@ "type": "row" }, { + "aliasColors": { + "Busy": "#EAB839", + "Busy Iowait": "#890F02", + "Busy other": "#1F78C1", + "Idle": "#052B51", + "Idle - Waiting for something to happen": "#052B51", + "guest": "#9AC48A", + "idle": "#052B51", + "iowait": "#EAB839", + "irq": "#BF1B00", + "nice": "#C15C17", + "softirq": "#E24D42", + "steal": "#FCE2DE", + "system": "#508642", + "user": "#5195CE" + }, + "bars": false, + "dashLength": 10, + "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_VICTORIAMETRICS}" + "uid": "P4169E866C3094E38" }, - "description": "", + "decimals": 2, + "description": "Basic CPU info", "fieldConfig": { "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 34, - "gradientMode": "opacity", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "smooth", - "lineStyle": { - "fill": "solid" - }, - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "normal" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "bytes" + "links": [] }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Total" - }, - "properties": [ - { - "id": "custom.drawStyle", - "value": "points" - }, - { - "id": "custom.stacking", - "value": { - "group": "A", - "mode": "none" - } - }, - { - "id": "custom.hideFrom", - "value": { - "legend": false, - "tooltip": false, - "viz": true - } - } - ] - } - ] + "overrides": [] }, + "fill": 4, + "fillGradient": 0, "gridPos": { - "h": 10, + "h": 6, "w": 8, "x": 0, "y": 1 }, - "id": 11, + "hiddenSeries": false, + "id": 71, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "sideWidth": 250, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "maxPerRow": 6, + "nullPointMode": "null", "options": { - "legend": { - "calcs": [ - "mean", - "stdDev", - "last" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true + "alertThreshold": true + }, + "percentage": true, + "pluginVersion": "10.1.2", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "alias": "Busy Iowait", + "color": "#890F02" }, - "tooltip": { - "mode": "single", - "sort": "none" + { + "alias": "Idle", + "color": "#7EB26D" + }, + { + "alias": "Busy System", + "color": "#EAB839" + }, + { + "alias": "Busy User", + "color": "#0A437C" + }, + { + "alias": "Busy Other", + "color": "#6D1F62" } - }, - "pluginVersion": "9.2.7", + ], + "spaceLength": 10, + "stack": true, + "steppedLine": false, "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_VICTORIAMETRICS}" + "uid": "P4169E866C3094E38" }, "editorMode": "code", - "expr": "erlang_vm_memory_bytes_total{unit=~\"$unit\"}", + "expr": "sum by (unit)(irate(node_cpu_seconds_total{mode=\"system\",unit=\"$unit\",job=\"eturnal.turn\"}[5m])) * 100", + "format": "time_series", "hide": false, - "legendFormat": "{{kind}}", + "intervalFactor": 2, + "legendFormat": "Busy System", "range": true, - "refId": "B" - } - ], - "title": "Allocated memory", - "transformations": [ + "refId": "A", + "step": 240 + }, { - "id": "concatenate", - "options": {} + "datasource": { + "type": "prometheus", + "uid": "P4169E866C3094E38" + }, + "editorMode": "code", + "expr": "sum by (unit)(irate(node_cpu_seconds_total{mode='user',unit=\"$unit\",job=\"eturnal.turn\"}[5m])) * 100", + "format": "time_series", + "hide": false, + "intervalFactor": 2, + "legendFormat": "Busy User", + "range": true, + "refId": "B", + "step": 240 }, { - "id": "organize", - "options": { - "excludeByName": {}, - "indexByName": { - "processes": 3, - "processes · Time": 2, - "system": 1, - "system · Time": 0 - }, - "renameByName": {} - } + "datasource": { + "type": "prometheus", + "uid": "P4169E866C3094E38" + }, + "editorMode": "code", + "expr": "sum by (unit)(irate(node_cpu_seconds_total{mode='iowait',unit=\"$unit\",job=\"eturnal.turn\"}[5m])) * 100", + "format": "time_series", + "intervalFactor": 2, + "legendFormat": "Busy Iowait", + "range": true, + "refId": "C", + "step": 240 }, { - "id": "calculateField", - "options": {} - } - ], - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_VICTORIAMETRICS}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": -1, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "smooth", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "log": 2, - "type": "log" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "noValue": "0", - "thresholds": { - "mode": "percentage", - "steps": [ - { - "color": "green", - "value": null - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Allocation Mismatch " - }, - "properties": [ - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Forbidden " - }, - "properties": [ - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "blue", - "value": null - } - ] - } - }, - { - "id": "custom.lineStyle", - "value": { - "dash": [ - 0, - 10 - ], - "fill": "dot" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Stale Nonce " - }, - "properties": [ - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "yellow", - "value": null - } - ] - } - }, - { - "id": "custom.lineWidth", - "value": 3 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Unauthorized " - }, - "properties": [ - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - } - ] - } - }, - { - "id": "custom.lineWidth", - "value": 3 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Insufficient Capacity " - }, - "properties": [ - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "orange", - "value": null - } - ] - } - }, - { - "id": "custom.lineWidth", - "value": 3 - } - ] - } - ] - }, - "gridPos": { - "h": 10, - "w": 8, - "x": 8, - "y": 1 - }, - "id": 66, - "options": { - "legend": { - "calcs": [ - "sum" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "9.2.7", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_VICTORIAMETRICS}" - }, - "editorMode": "code", - "exemplar": false, - "expr": "sum without (transport) (increase(eturnal_protocol_error_total{unit=~\"$unit\"}[$__rate_interval]))>0", - "format": "time_series", - "hide": false, - "instant": false, - "legendFormat": "{{reason}}", - "range": true, - "refId": "B" - } - ], - "title": "Protocol errors", - "transformations": [], - "type": "timeseries" - }, - { - "aliasColors": { - "Busy": "#EAB839", - "Busy Iowait": "#890F02", - "Busy other": "#1F78C1", - "Idle": "#052B51", - "Idle - Waiting for something to happen": "#052B51", - "guest": "#9AC48A", - "idle": "#052B51", - "iowait": "#EAB839", - "irq": "#BF1B00", - "nice": "#C15C17", - "softirq": "#E24D42", - "steal": "#FCE2DE", - "system": "#508642", - "user": "#5195CE" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "${DS_VICTORIAMETRICS}" - }, - "decimals": 2, - "description": "Basic CPU info", - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 4, - "fillGradient": 0, - "gridPos": { - "h": 5, - "w": 8, - "x": 16, - "y": 1 - }, - "hiddenSeries": false, - "id": 71, - "legend": { - "alignAsTable": false, - "avg": false, - "current": false, - "max": false, - "min": false, - "rightSide": false, - "show": true, - "sideWidth": 250, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "maxPerRow": 6, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": true, - "pluginVersion": "10.1.2", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "Busy Iowait", - "color": "#890F02" - }, - { - "alias": "Idle", - "color": "#7EB26D" - }, - { - "alias": "Busy System", - "color": "#EAB839" - }, - { - "alias": "Busy User", - "color": "#0A437C" - }, - { - "alias": "Busy Other", - "color": "#6D1F62" - } - ], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_VICTORIAMETRICS}" - }, - "editorMode": "code", - "expr": "sum by (unit)(irate(node_cpu_seconds_total{mode=\"system\",unit=\"$unit\",job=\"eturnal.turn\"}[5m])) * 100", - "format": "time_series", - "hide": false, - "intervalFactor": 2, - "legendFormat": "Busy System", - "range": true, - "refId": "A", - "step": 240 - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_VICTORIAMETRICS}" - }, - "editorMode": "code", - "expr": "sum by (unit)(irate(node_cpu_seconds_total{mode='user',instaunit=\"$unit\",job=\"eturnal.turn\"}[5m])) * 100", - "format": "time_series", - "hide": false, - "intervalFactor": 2, - "legendFormat": "Busy User", - "range": true, - "refId": "B", - "step": 240 - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_VICTORIAMETRICS}" - }, - "editorMode": "code", - "expr": "sum by (unit)(irate(node_cpu_seconds_total{mode='iowait',unit=\"$unit\",job=\"eturnal.turn\"}[5m])) * 100", - "format": "time_series", - "intervalFactor": 2, - "legendFormat": "Busy Iowait", - "range": true, - "refId": "C", - "step": 240 - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_VICTORIAMETRICS}" - }, - "editorMode": "code", - "expr": "sum by (unit)(irate(node_cpu_seconds_total{mode=~\".*irq\",unit=\"$unit\",job=\"eturnal.turn\"}[5m])) * 100", - "format": "time_series", - "intervalFactor": 2, - "legendFormat": "Busy IRQs", - "range": true, - "refId": "D", - "step": 240 - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_VICTORIAMETRICS}" - }, - "editorMode": "code", - "expr": "sum (irate(node_cpu_seconds_total{mode!='idle',mode!='user',mode!='system',mode!='iowait',mode!='irq',mode!='softirq',unit=\"$unit\",job=\"eturnal.turn\"}[5m])) * 100", - "format": "time_series", - "intervalFactor": 2, - "legendFormat": "Busy Other", - "range": true, - "refId": "E", - "step": 240 - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_VICTORIAMETRICS}" - }, - "editorMode": "code", - "expr": "sum by (mode)(irate(node_cpu_seconds_total{mode='idle',unit=\"$unit\",job=\"eturnal.turn\"}[5m])) * 100", - "format": "time_series", - "intervalFactor": 2, - "legendFormat": "Idle", - "range": true, - "refId": "F", - "step": 240 - } - ], - "thresholds": [], - "timeRegions": [], - "title": "CPU Basic", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": "", - "logBase": 1, - "max": "100", - "min": "0", - "show": true - }, - { - "format": "short", - "logBase": 1, - "show": false - } - ], - "yaxis": { - "align": false - } - }, - { - "aliasColors": { - "Apps": "#629E51", - "Buffers": "#614D93", - "Cache": "#6D1F62", - "Cached": "#511749", - "Committed": "#508642", - "Free": "#0A437C", - "Hardware Corrupted - Amount of RAM that the kernel identified as corrupted / not working": "#CFFAFF", - "Inactive": "#584477", - "PageTables": "#0A50A1", - "Page_Tables": "#0A50A1", - "RAM_Free": "#E0F9D7", - "SWAP Used": "#BF1B00", - "Slab": "#806EB7", - "Slab_Cache": "#E0752D", - "Swap": "#BF1B00", - "Swap Used": "#BF1B00", - "Swap_Cache": "#C15C17", - "Swap_Free": "#2F575E", - "Unused": "#EAB839" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "${DS_VICTORIAMETRICS}" - }, - "decimals": 2, - "description": "Basic memory usage", - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 4, - "fillGradient": 0, - "gridPos": { - "h": 5, - "w": 8, - "x": 16, - "y": 6 - }, - "hiddenSeries": false, - "id": 72, - "legend": { - "alignAsTable": false, - "avg": false, - "current": false, - "max": false, - "min": false, - "rightSide": false, - "show": true, - "sideWidth": 350, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "maxPerRow": 6, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "10.1.2", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "RAM Total", - "color": "#E0F9D7", - "fill": 0, - "stack": false - }, - { - "alias": "RAM Cache + Buffer", - "color": "#052B51" - }, - { - "alias": "RAM Free", - "color": "#7EB26D" - }, - { - "alias": "Avaliable", - "color": "#DEDAF7", - "fill": 0, - "stack": false - } - ], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_VICTORIAMETRICS}" - }, - "editorMode": "code", - "expr": "node_memory_MemTotal_bytes{unit=\"$unit\",job=\"eturnal.turn\"}", - "format": "time_series", - "hide": false, - "intervalFactor": 2, - "legendFormat": "RAM Total", - "range": true, - "refId": "A", - "step": 240 - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_VICTORIAMETRICS}" - }, - "editorMode": "code", - "expr": "node_memory_MemTotal_bytes{unit=\"$unit\",job=\"eturnal.turn\"} - node_memory_MemFree_bytes{unit=\"$unit\",job=\"eturnal.turn\"} - (node_memory_Cached_bytes{unit=\"$unit\",job=\"eturnal.turn\"} + node_memory_Buffers_bytes{unit=\"$unit\",job=\"eturnal.turn\"})", - "format": "time_series", - "hide": false, - "intervalFactor": 2, - "legendFormat": "RAM Used", - "range": true, - "refId": "B", - "step": 240 - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_VICTORIAMETRICS}" + "datasource": { + "type": "prometheus", + "uid": "P4169E866C3094E38" }, "editorMode": "code", - "expr": "node_memory_Cached_bytes{unit=\"$unit\",job=\"eturnal.turn\"} + node_memory_Buffers_bytes{unit=\"$unit\",job=\"eturnal.turn\"}", + "expr": "sum by (unit)(irate(node_cpu_seconds_total{mode=~\".*irq\",unit=\"$unit\",job=\"eturnal.turn\"}[5m])) * 100", "format": "time_series", "intervalFactor": 2, - "legendFormat": "RAM Cache + Buffer", + "legendFormat": "Busy IRQs", "range": true, - "refId": "C", + "refId": "D", "step": 240 }, { "datasource": { "type": "prometheus", - "uid": "${DS_VICTORIAMETRICS}" + "uid": "P4169E866C3094E38" }, "editorMode": "code", - "expr": "node_memory_MemFree_bytes{unit=\"$unit\",job=\"eturnal.turn\"}", + "expr": "sum (irate(node_cpu_seconds_total{mode!='idle',mode!='user',mode!='system',mode!='iowait',mode!='irq',mode!='softirq',unit=\"$unit\",job=\"eturnal.turn\"}[5m])) * 100", "format": "time_series", "intervalFactor": 2, - "legendFormat": "RAM Free", + "legendFormat": "Busy Other", "range": true, - "refId": "D", + "refId": "E", "step": 240 }, { "datasource": { "type": "prometheus", - "uid": "${DS_VICTORIAMETRICS}" + "uid": "P4169E866C3094E38" }, "editorMode": "code", - "expr": "(node_memory_SwapTotal_bytes{unit=\"$unit\",job=\"eturnal.turn\"} - node_memory_SwapFree_bytes{unit=\"$unit\",job=\"eturnal.turn\"})", + "expr": "sum by (mode)(irate(node_cpu_seconds_total{mode='idle',unit=\"$unit\",job=\"eturnal.turn\"}[5m])) * 100", "format": "time_series", "intervalFactor": 2, - "legendFormat": "SWAP Used", + "legendFormat": "Idle", "range": true, - "refId": "E", + "refId": "F", "step": 240 } ], "thresholds": [], "timeRegions": [], - "title": "Memory Basic", + "title": "CPU Basic", "tooltip": { "shared": true, "sort": 0, @@ -864,9 +238,10 @@ }, "yaxes": [ { - "format": "bytes", + "format": "short", "label": "", "logBase": 1, + "max": "100", "min": "0", "show": true }, @@ -881,133 +256,156 @@ } }, { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 11 + "aliasColors": { + "Recv_bytes_eth2": "#7EB26D", + "Recv_bytes_lo": "#0A50A1", + "Recv_drop_eth2": "#6ED0E0", + "Recv_drop_lo": "#E0F9D7", + "Recv_errs_eth2": "#BF1B00", + "Recv_errs_lo": "#CCA300", + "Trans_bytes_eth2": "#7EB26D", + "Trans_bytes_lo": "#0A50A1", + "Trans_drop_eth2": "#6ED0E0", + "Trans_drop_lo": "#E0F9D7", + "Trans_errs_eth2": "#BF1B00", + "Trans_errs_lo": "#CCA300", + "recv_bytes_lo": "#0A50A1", + "recv_drop_eth0": "#99440A", + "recv_drop_lo": "#967302", + "recv_errs_eth0": "#BF1B00", + "recv_errs_lo": "#890F02", + "trans_bytes_eth0": "#7EB26D", + "trans_bytes_lo": "#0A50A1", + "trans_drop_eth0": "#99440A", + "trans_drop_lo": "#967302", + "trans_errs_eth0": "#BF1B00", + "trans_errs_lo": "#890F02" }, - "id": 52, - "panels": [], - "title": "Current STUN queries, TURN sessions & rates/load", - "type": "row" - }, - { + "bars": false, + "dashLength": 10, + "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_VICTORIAMETRICS}" + "uid": "P4169E866C3094E38" }, - "description": "", + "description": "Basic network info per interface", "fieldConfig": { "defaults": { - "color": { - "mode": "continuous-BlPu" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "bars", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "dashed" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "purple", - "value": null - } - ] - } + "links": [] }, "overrides": [] }, + "fill": 4, + "fillGradient": 0, "gridPos": { - "h": 6, + "h": 12, "w": 8, - "x": 0, - "y": 12 + "x": 8, + "y": 1 }, - "id": 22, + "hiddenSeries": false, + "id": 70, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "hideEmpty": false, + "hideZero": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "sort": "current", + "sortDesc": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", "options": { - "legend": { - "calcs": [ - "mean", - "stdDev", - "last" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "10.1.2", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "alias": "/.*trans.*/", + "transform": "negative-Y" } - }, - "pluginVersion": "9.2.7", + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_VICTORIAMETRICS}" + "uid": "P4169E866C3094E38" }, "editorMode": "code", - "expr": "irate(sum(eturnal_stun_requests_total{unit=~\"$unit\"}[$__rate_interval]))*$__interval", + "expr": "irate(node_network_receive_bytes_total{unit=\"$unit\",job=\"eturnal.turn\"}[5m])*8", "format": "time_series", - "legendFormat": "STUN queries", + "intervalFactor": 2, + "legendFormat": "recv {{device}}", "range": true, - "refId": "A" + "refId": "A", + "step": 240 + }, + { + "datasource": { + "type": "prometheus", + "uid": "P4169E866C3094E38" + }, + "editorMode": "code", + "expr": "irate(node_network_transmit_bytes_total{unit=\"$unit\",job=\"eturnal.turn\"}[5m])*8", + "format": "time_series", + "intervalFactor": 2, + "legendFormat": "trans {{device}} ", + "range": true, + "refId": "B", + "step": 240 } ], - "title": "STUN queries | transports $transport", - "transformations": [ + "thresholds": [], + "timeRegions": [], + "title": "Network Traffic Basic", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ { - "id": "configFromData", - "options": { - "configRefId": "A", - "mappings": [ - { - "fieldName": "STUN queries", - "handlerKey": "threshold1", - "reducerId": "mean" - } - ] - } + "format": "bps", + "logBase": 1, + "show": true + }, + { + "format": "pps", + "label": "", + "logBase": 1, + "show": false } ], - "type": "timeseries" + "yaxis": { + "align": false + } }, { "datasource": { "type": "prometheus", - "uid": "${DS_VICTORIAMETRICS}" + "uid": "P4169E866C3094E38" }, "description": "", "fieldConfig": { @@ -1021,16 +419,19 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, - "drawStyle": "bars", - "fillOpacity": 0, - "gradientMode": "none", + "drawStyle": "line", + "fillOpacity": 34, + "gradientMode": "opacity", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, - "lineInterpolation": "linear", + "lineInterpolation": "smooth", + "lineStyle": { + "fill": "solid" + }, "lineWidth": 1, "pointSize": 5, "scaleDistribution": { @@ -1056,22 +457,54 @@ } ] }, - "unit": "none" + "unit": "bytes" }, - "overrides": [] + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Total" + }, + "properties": [ + { + "id": "custom.drawStyle", + "value": "points" + }, + { + "id": "custom.stacking", + "value": { + "group": "A", + "mode": "none" + } + }, + { + "id": "custom.hideFrom", + "value": { + "legend": false, + "tooltip": false, + "viz": true + } + } + ] + } + ] }, "gridPos": { "h": 6, "w": 8, - "x": 8, - "y": 12 + "x": 16, + "y": 1 }, - "id": 61, + "id": 11, "options": { "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", + "calcs": [ + "mean", + "stdDev", + "last" + ], + "displayMode": "table", + "placement": "right", "showLegend": true }, "tooltip": { @@ -1084,54 +517,73 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_VICTORIAMETRICS}" + "uid": "P4169E866C3094E38" }, "editorMode": "code", - "expr": "eturnal_turn_open_sessions{unit=~\"$unit\"}", + "expr": "erlang_vm_memory_bytes_total{unit=~\"$unit\"}", "hide": false, - "legendFormat": "{{transport}}", + "legendFormat": "{{kind}}", "range": true, "refId": "B" } ], - "title": "Open TURN sessions", - "transformations": [], + "title": "Allocated memory by $unit eturnal", + "transformations": [ + { + "id": "concatenate", + "options": {} + }, + { + "id": "organize", + "options": { + "excludeByName": {}, + "indexByName": { + "processes": 3, + "processes · Time": 2, + "system": 1, + "system · Time": 0 + }, + "renameByName": {} + } + }, + { + "id": "calculateField", + "options": {} + } + ], "type": "timeseries" }, { "aliasColors": { - "Recv_bytes_eth2": "#7EB26D", - "Recv_bytes_lo": "#0A50A1", - "Recv_drop_eth2": "#6ED0E0", - "Recv_drop_lo": "#E0F9D7", - "Recv_errs_eth2": "#BF1B00", - "Recv_errs_lo": "#CCA300", - "Trans_bytes_eth2": "#7EB26D", - "Trans_bytes_lo": "#0A50A1", - "Trans_drop_eth2": "#6ED0E0", - "Trans_drop_lo": "#E0F9D7", - "Trans_errs_eth2": "#BF1B00", - "Trans_errs_lo": "#CCA300", - "recv_bytes_lo": "#0A50A1", - "recv_drop_eth0": "#99440A", - "recv_drop_lo": "#967302", - "recv_errs_eth0": "#BF1B00", - "recv_errs_lo": "#890F02", - "trans_bytes_eth0": "#7EB26D", - "trans_bytes_lo": "#0A50A1", - "trans_drop_eth0": "#99440A", - "trans_drop_lo": "#967302", - "trans_errs_eth0": "#BF1B00", - "trans_errs_lo": "#890F02" + "Apps": "#629E51", + "Buffers": "#614D93", + "Cache": "#6D1F62", + "Cached": "#511749", + "Committed": "#508642", + "Free": "#0A437C", + "Hardware Corrupted - Amount of RAM that the kernel identified as corrupted / not working": "#CFFAFF", + "Inactive": "#584477", + "PageTables": "#0A50A1", + "Page_Tables": "#0A50A1", + "RAM_Free": "#E0F9D7", + "SWAP Used": "#BF1B00", + "Slab": "#806EB7", + "Slab_Cache": "#E0752D", + "Swap": "#BF1B00", + "Swap Used": "#BF1B00", + "Swap_Cache": "#C15C17", + "Swap_Free": "#2F575E", + "Unused": "#EAB839" }, "bars": false, "dashLength": 10, "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_VICTORIAMETRICS}" + "uid": "P4169E866C3094E38" }, - "description": "Basic network info per interface", + "decimals": 2, + "description": "Basic memory usage", "fieldConfig": { "defaults": { "links": [] @@ -1141,31 +593,29 @@ "fill": 4, "fillGradient": 0, "gridPos": { - "h": 12, + "h": 6, "w": 8, - "x": 16, - "y": 12 + "x": 0, + "y": 7 }, "hiddenSeries": false, - "id": 70, + "id": 72, "legend": { "alignAsTable": false, "avg": false, "current": false, - "hideEmpty": false, - "hideZero": false, "max": false, "min": false, "rightSide": false, "show": true, - "sort": "current", - "sortDesc": true, + "sideWidth": 350, "total": false, "values": false }, "lines": true, "linewidth": 1, "links": [], + "maxPerRow": 6, "nullPointMode": "null", "options": { "alertThreshold": true @@ -1177,46 +627,106 @@ "renderer": "flot", "seriesOverrides": [ { - "alias": "/.*trans.*/", - "transform": "negative-Y" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ + "alias": "RAM Total", + "color": "#E0F9D7", + "fill": 0, + "stack": false + }, + { + "alias": "RAM Cache + Buffer", + "color": "#052B51" + }, + { + "alias": "RAM Free", + "color": "#7EB26D" + }, + { + "alias": "Avaliable", + "color": "#DEDAF7", + "fill": 0, + "stack": false + } + ], + "spaceLength": 10, + "stack": true, + "steppedLine": false, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "P4169E866C3094E38" + }, + "editorMode": "code", + "expr": "node_memory_MemTotal_bytes{unit=\"$unit\",job=\"eturnal.turn\"}", + "format": "time_series", + "hide": false, + "intervalFactor": 2, + "legendFormat": "RAM Total", + "range": true, + "refId": "A", + "step": 240 + }, + { + "datasource": { + "type": "prometheus", + "uid": "P4169E866C3094E38" + }, + "editorMode": "code", + "expr": "node_memory_MemTotal_bytes{unit=\"$unit\",job=\"eturnal.turn\"} - node_memory_MemFree_bytes{unit=\"$unit\",job=\"eturnal.turn\"} - (node_memory_Cached_bytes{unit=\"$unit\",job=\"eturnal.turn\"} + node_memory_Buffers_bytes{unit=\"$unit\",job=\"eturnal.turn\"})", + "format": "time_series", + "hide": false, + "intervalFactor": 2, + "legendFormat": "RAM Used", + "range": true, + "refId": "B", + "step": 240 + }, + { + "datasource": { + "type": "prometheus", + "uid": "P4169E866C3094E38" + }, + "editorMode": "code", + "expr": "node_memory_Cached_bytes{unit=\"$unit\",job=\"eturnal.turn\"} + node_memory_Buffers_bytes{unit=\"$unit\",job=\"eturnal.turn\"}", + "format": "time_series", + "intervalFactor": 2, + "legendFormat": "RAM Cache + Buffer", + "range": true, + "refId": "C", + "step": 240 + }, { "datasource": { "type": "prometheus", - "uid": "${DS_VICTORIAMETRICS}" + "uid": "P4169E866C3094E38" }, "editorMode": "code", - "expr": "irate(node_network_receive_bytes_total{unit=\"$unit\",job=\"eturnal.turn\"}[5m])*8", + "expr": "node_memory_MemFree_bytes{unit=\"$unit\",job=\"eturnal.turn\"}", "format": "time_series", "intervalFactor": 2, - "legendFormat": "recv {{device}}", + "legendFormat": "RAM Free", "range": true, - "refId": "A", + "refId": "D", "step": 240 }, { "datasource": { "type": "prometheus", - "uid": "${DS_VICTORIAMETRICS}" + "uid": "P4169E866C3094E38" }, "editorMode": "code", - "expr": "irate(node_network_transmit_bytes_total{unit=\"$unit\",job=\"eturnal.turn\"}[5m])*8", + "expr": "(node_memory_SwapTotal_bytes{unit=\"$unit\",job=\"eturnal.turn\"} - node_memory_SwapFree_bytes{unit=\"$unit\",job=\"eturnal.turn\"})", "format": "time_series", "intervalFactor": 2, - "legendFormat": "trans {{device}} ", + "legendFormat": "SWAP Used", "range": true, - "refId": "B", + "refId": "E", "step": 240 } ], "thresholds": [], "timeRegions": [], - "title": "Network Traffic Basic", + "title": "Memory Basic", "tooltip": { "shared": true, "sort": 0, @@ -1230,25 +740,261 @@ }, "yaxes": [ { - "format": "bps", + "format": "bytes", + "label": "", "logBase": 1, + "min": "0", "show": true }, { - "format": "pps", - "label": "", + "format": "short", "logBase": 1, "show": false } ], - "yaxis": { - "align": false - } + "yaxis": { + "align": false + } + }, + { + "datasource": { + "type": "prometheus", + "uid": "P4169E866C3094E38" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": -1, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "smooth", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "log": 2, + "type": "log" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "noValue": "0", + "thresholds": { + "mode": "percentage", + "steps": [ + { + "color": "green", + "value": null + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Allocation Mismatch " + }, + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Forbidden " + }, + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "blue", + "value": null + } + ] + } + }, + { + "id": "custom.lineStyle", + "value": { + "dash": [ + 0, + 10 + ], + "fill": "dot" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Stale Nonce " + }, + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "yellow", + "value": null + } + ] + } + }, + { + "id": "custom.lineWidth", + "value": 3 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Unauthorized " + }, + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + } + ] + } + }, + { + "id": "custom.lineWidth", + "value": 3 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Insufficient Capacity " + }, + "properties": [ + { + "id": "thresholds", + "value": { + "mode": "absolute", + "steps": [ + { + "color": "orange", + "value": null + } + ] + } + }, + { + "id": "custom.lineWidth", + "value": 3 + } + ] + } + ] + }, + "gridPos": { + "h": 6, + "w": 8, + "x": 16, + "y": 7 + }, + "id": 66, + "options": { + "legend": { + "calcs": [ + "sum" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "9.2.7", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "P4169E866C3094E38" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum without (transport) (increase(eturnal_protocol_error_total{unit=~\"$unit\"}[$__rate_interval]))>0", + "format": "time_series", + "hide": false, + "instant": false, + "legendFormat": "{{reason}}", + "range": true, + "refId": "B" + } + ], + "title": "Protocol errors", + "transformations": [], + "type": "timeseries" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 13 + }, + "id": 52, + "panels": [], + "title": "Current STUN queries, TURN sessions & rates/load", + "type": "row" }, { "datasource": { "type": "prometheus", - "uid": "${DS_VICTORIAMETRICS}" + "uid": "P4169E866C3094E38" }, "description": "", "fieldConfig": { @@ -1287,13 +1033,12 @@ "mode": "dashed" } }, - "decimals": 0, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { - "color": "blue", + "color": "purple", "value": null } ] @@ -1305,9 +1050,9 @@ "h": 6, "w": 8, "x": 0, - "y": 18 + "y": 14 }, - "id": 45, + "id": 22, "options": { "legend": { "calcs": [ @@ -1329,25 +1074,25 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_VICTORIAMETRICS}" + "uid": "P4169E866C3094E38" }, "editorMode": "code", - "expr": "irate(sum(eturnal_turn_sessions_total{unit=~\"$unit\"}[$__rate_interval]))*$__interval", - "hide": false, - "legendFormat": "newly opened TURN Sessions", + "expr": "irate(sum(eturnal_stun_requests_total{unit=~\"$unit\"}[$__rate_interval]))*$__interval", + "format": "time_series", + "legendFormat": "STUN queries", "range": true, - "refId": "B" + "refId": "A" } ], - "title": "newly opened TURN Sessions | transports $transport", + "title": "STUN queries", "transformations": [ { "id": "configFromData", "options": { - "configRefId": "B", + "configRefId": "A", "mappings": [ { - "fieldName": "newly opened TURN Sessions", + "fieldName": "STUN queries", "handlerKey": "threshold1", "reducerId": "mean" } @@ -1360,332 +1105,255 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_VICTORIAMETRICS}" + "uid": "P4169E866C3094E38" }, - "description": "*w/o sessions <=$threshold_size bytes (calculated from past rates)", + "description": "", "fieldConfig": { "defaults": { "color": { - "mode": "thresholds" + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "bars", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } }, - "decimals": 0, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { - "color": "blue", + "color": "green", "value": null } ] - } + }, + "unit": "none" }, "overrides": [] }, "gridPos": { - "h": 3, + "h": 6, "w": 8, "x": 8, - "y": 18 + "y": 14 }, - "id": 13, + "id": 61, "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "center", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "last" - ], - "fields": "", - "values": false + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true }, - "textMode": "auto" + "tooltip": { + "mode": "single", + "sort": "none" + } }, - "pluginVersion": "10.1.2", + "pluginVersion": "9.2.7", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_VICTORIAMETRICS}" + "uid": "P4169E866C3094E38" }, "editorMode": "code", - "expr": "( 1 - \n\n ( sum without (le,unit,job) ( (eturnal_turn_relay_rcvd_bytes_bucket{unit=~\"$unit\",le=~\"$threshold_size\"} + eturnal_turn_relay_sent_bytes_bucket{unit=~\"$unit\",le=~\"$threshold_size\"}) / 2 ) \n / ( sum without (le,unit,job) (eturnal_turn_sessions_total{unit=~\"$unit\"}) ) ) )\n\n* ( sum without (le,unit,job) (eturnal_turn_open_sessions{unit=~\"$unit\"}) )", + "expr": "eturnal_turn_open_sessions{unit=~\"$unit\"}", "hide": false, - "legendFormat": "__auto", + "legendFormat": "{{transport}}", "range": true, "refId": "B" } ], - "title": "Open active* TURN sessions", - "transformations": [ - { - "id": "calculateField", - "options": {} - } - ], - "type": "stat" + "title": "Open TURN sessions", + "transformations": [], + "type": "timeseries" }, { "datasource": { "type": "prometheus", - "uid": "${DS_VICTORIAMETRICS}" + "uid": "P4169E866C3094E38" }, - "description": "*only sessions <=$threshold_size bytes (calculated from past rates)", + "description": "*w/o sessions <=$threshold_size bytes ($transport)", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, - "decimals": 0, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { - "color": "blue", + "color": "yellow", "value": null } ] - } + }, + "unit": "bytes" }, "overrides": [] }, "gridPos": { - "h": 3, - "w": 8, - "x": 8, - "y": 21 + "h": 9, + "w": 2, + "x": 16, + "y": 14 }, - "id": 41, + "id": 68, "options": { - "colorMode": "value", + "colorMode": "none", "graphMode": "none", - "justifyMode": "center", - "orientation": "auto", + "justifyMode": "auto", + "orientation": "horizontal", "reduceOptions": { "calcs": [ - "last" + "mean" ], "fields": "", "values": false }, - "textMode": "auto" + "textMode": "name" }, "pluginVersion": "10.1.2", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_VICTORIAMETRICS}" + "uid": "P4169E866C3094E38" }, "editorMode": "code", - "expr": "( sum without (le,unit,job) ( (eturnal_turn_relay_rcvd_bytes_bucket{unit=~\"$unit\",le=~\"$threshold_size\"} + eturnal_turn_relay_sent_bytes_bucket{unit=~\"$unit\",le=~\"$threshold_size\"}) / 2 ) \n/ ( sum without (le,unit,job) (eturnal_turn_sessions_total{unit=~\"$unit\"}) ) )\n\n* ( sum without (le,unit,job) (eturnal_turn_open_sessions{unit=~\"$unit\"}) )", + "expr": "(sum without (unit,job) (eturnal_turn_relay_rcvd_bytes_sum{unit=~\"$unit\"})) / (sum without (unit,job) ( (eturnal_turn_sessions_total{unit=~\"$unit\"}) - ignoring(le) eturnal_turn_relay_rcvd_bytes_bucket{unit=~\"$unit\",le=~\"$threshold_size\"} ))", "hide": false, - "legendFormat": "__auto", + "legendFormat": "{{transport}}", "range": true, - "refId": "B" - } - ], - "title": "Open inactive* TURN sessions", - "transformations": [ - { - "id": "calculateField", - "options": {} - } - ], - "type": "stat" - }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 24 - }, - "id": 50, - "panels": [], - "title": "Information per TURN session", - "type": "row" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_VICTORIAMETRICS}" - }, - "description": "", - "fieldConfig": { - "defaults": { - "custom": { - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "scaleDistribution": { - "type": "linear" - } - } - }, - "overrides": [] - }, - "gridPos": { - "h": 10, - "w": 8, - "x": 0, - "y": 25 - }, - "id": 35, - "options": { - "calculate": false, - "cellGap": 1, - "cellValues": { - "decimals": 0 - }, - "color": { - "exponent": 0.5, - "fill": "dark-orange", - "mode": "scheme", - "reverse": true, - "scale": "exponential", - "scheme": "Plasma", - "steps": 88 - }, - "exemplars": { - "color": "rgba(255,0,255,0.7)" - }, - "filterValues": { - "le": 1e-9 - }, - "legend": { - "show": true - }, - "rowsFrame": { - "layout": "auto" - }, - "tooltip": { - "show": true, - "yHistogram": false + "refId": "A" }, - "yAxis": { - "axisPlacement": "left", - "reverse": false, - "unit": "s" - } - }, - "pluginVersion": "10.1.2", - "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_VICTORIAMETRICS}" + "uid": "P4169E866C3094E38" }, - "editorMode": "code", - "exemplar": false, - "expr": "sum without (job,unit,transport) (irate(eturnal_turn_session_duration_seconds_bucket{unit=~\"$unit\"}[$__rate_interval]))*15", - "format": "heatmap", - "instant": false, - "legendFormat": "__auto", + "editorMode": "code", + "expr": "(sum without (instance,job,transport) (eturnal_turn_relay_rcvd_bytes_sum{instance=~\"$instance\"})) / (sum without (instance,job,transport) ( (eturnal_turn_sessions_total{instance=~\"$instance\"}) - ignoring(le) eturnal_turn_relay_rcvd_bytes_bucket{instance=~\"$instance\",le=~\"$threshold_size\"} ))", + "hide": false, + "legendFormat": "Overall", "range": true, - "refId": "A" + "refId": "C" } ], - "title": "Session duration distribution | transports $transport", + "title": "Transport", "transformations": [], - "type": "heatmap" + "type": "stat" }, { "datasource": { "type": "prometheus", - "uid": "${DS_VICTORIAMETRICS}" + "uid": "P4169E866C3094E38" }, - "description": "", + "description": "*w/o sessions <=$threshold_size bytes ($transport)", "fieldConfig": { "defaults": { - "custom": { - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "scaleDistribution": { - "type": "linear" - } - } + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "bytes" }, "overrides": [] }, "gridPos": { - "h": 5, - "w": 8, - "x": 8, - "y": 25 + "h": 12, + "w": 2, + "x": 18, + "y": 14 }, - "id": 26, + "id": 29, "options": { - "calculate": false, - "cellGap": 1, - "cellValues": { - "decimals": 0 - }, - "color": { - "exponent": 0.5, - "fill": "dark-orange", - "mode": "scheme", - "reverse": true, - "scale": "exponential", - "scheme": "Plasma", - "steps": 64 - }, - "exemplars": { - "color": "transparent" - }, - "filterValues": { - "le": 1e-9 - }, - "legend": { - "show": false - }, - "rowsFrame": { - "layout": "auto" - }, - "tooltip": { - "show": true, - "yHistogram": true + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false }, - "yAxis": { - "axisPlacement": "left", - "reverse": false, - "unit": "bytes" - } + "textMode": "value" }, "pluginVersion": "10.1.2", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_VICTORIAMETRICS}" + "uid": "P4169E866C3094E38" }, "editorMode": "code", - "exemplar": false, - "expr": "sum without (job,unit,transport) ( (irate(eturnal_turn_relay_rcvd_bytes_bucket{unit=~\"$unit\"}[$__rate_interval]))*$__interval)", - "format": "heatmap", - "instant": false, - "legendFormat": "__auto", + "expr": "(sum without (unit,job) (eturnal_turn_relay_rcvd_bytes_sum{unit=~\"$unit\"})) / (sum without (unit,job) ( (eturnal_turn_sessions_total{unit=~\"$unit\"}) - ignoring(le) eturnal_turn_relay_rcvd_bytes_bucket{unit=~\"$unit\",le=~\"$threshold_size\"} ))", + "hide": false, + "legendFormat": "{{transport}}", "range": true, "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "P4169E866C3094E38" + }, + "editorMode": "code", + "expr": "(sum without (unit,job,transport) (eturnal_turn_relay_rcvd_bytes_sum{unit=~\"$unit\"})) / (sum without (unit,job,transport) ( (eturnal_turn_sessions_total{unit=~\"$unit\"}) - ignoring(le) eturnal_turn_relay_rcvd_bytes_bucket{unit=~\"$unit\",le=~\"$threshold_size\"} ))", + "hide": false, + "legendFormat": "Overall", + "range": true, + "refId": "C" } ], - "title": "Relay data distribution (rcvd↓) | transports $transport", + "title": "↓ Mean* received", "transformations": [], - "type": "heatmap" + "type": "stat" }, { "datasource": { "type": "prometheus", - "uid": "${DS_VICTORIAMETRICS}" + "uid": "P4169E866C3094E38" }, "description": "*w/o sessions <=$threshold_size bytes ($transport)", "fieldConfig": { @@ -1708,14 +1376,14 @@ "overrides": [] }, "gridPos": { - "h": 10, + "h": 12, "w": 2, - "x": 16, - "y": 25 + "x": 20, + "y": 14 }, - "id": 68, + "id": 30, "options": { - "colorMode": "none", + "colorMode": "value", "graphMode": "none", "justifyMode": "auto", "orientation": "horizontal", @@ -1726,17 +1394,17 @@ "fields": "", "values": false }, - "textMode": "name" + "textMode": "value" }, "pluginVersion": "10.1.2", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_VICTORIAMETRICS}" + "uid": "P4169E866C3094E38" }, "editorMode": "code", - "expr": "(sum without (unit,job) (eturnal_turn_relay_rcvd_bytes_sum{unit=~\"$unit\"})) / (sum without (unit,job) ( (eturnal_turn_sessions_total{unit=~\"$unit\"}) - ignoring(le) eturnal_turn_relay_rcvd_bytes_bucket{unit=~\"$unit\",le=~\"$threshold_size\"} ))", + "expr": "(sum without (unit,job) (eturnal_turn_relay_sent_bytes_sum{unit=~\"$unit\"})) / (sum without (unit,job) ( (eturnal_turn_sessions_total{unit=~\"$unit\"}) - ignoring(le) eturnal_turn_relay_sent_bytes_bucket{unit=~\"$unit\",le=~\"$threshold_size\"} ))", "hide": false, "legendFormat": "{{transport}}", "range": true, @@ -1745,26 +1413,26 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_VICTORIAMETRICS}" + "uid": "P4169E866C3094E38" }, "editorMode": "code", - "expr": "(sum without (instance,job,transport) (eturnal_turn_relay_rcvd_bytes_sum{instance=~\"$instance\"})) / (sum without (instance,job,transport) ( (eturnal_turn_sessions_total{instance=~\"$instance\"}) - ignoring(le) eturnal_turn_relay_rcvd_bytes_bucket{instance=~\"$instance\",le=~\"$threshold_size\"} ))", + "expr": "(sum without (unit,job,transport) (eturnal_turn_relay_sent_bytes_sum{unit=~\"$unit\"})) / (sum without (unit,job,transport) ( (eturnal_turn_sessions_total{unit=~\"$unit\"}) - ignoring(le) eturnal_turn_relay_sent_bytes_bucket{unit=~\"$unit\",le=~\"$threshold_size\"} ))", "hide": false, "legendFormat": "Overall", "range": true, "refId": "C" } ], - "title": "Transport", + "title": "↑ Mean* sent", "transformations": [], "type": "stat" }, { "datasource": { "type": "prometheus", - "uid": "${DS_VICTORIAMETRICS}" + "uid": "P4169E866C3094E38" }, - "description": "*w/o sessions <=$threshold_size bytes ($transport)", + "description": "", "fieldConfig": { "defaults": { "color": { @@ -1775,22 +1443,22 @@ "mode": "absolute", "steps": [ { - "color": "green", + "color": "blue", "value": null } ] }, - "unit": "bytes" + "unit": "dthms" }, "overrides": [] }, "gridPos": { - "h": 10, + "h": 12, "w": 2, - "x": 18, - "y": 25 + "x": 22, + "y": 14 }, - "id": 29, + "id": 44, "options": { "colorMode": "value", "graphMode": "none", @@ -1810,10 +1478,10 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_VICTORIAMETRICS}" + "uid": "P4169E866C3094E38" }, "editorMode": "code", - "expr": "(sum without (unit,job) (eturnal_turn_relay_rcvd_bytes_sum{unit=~\"$unit\"})) / (sum without (unit,job) ( (eturnal_turn_sessions_total{unit=~\"$unit\"}) - ignoring(le) eturnal_turn_relay_rcvd_bytes_bucket{unit=~\"$unit\",le=~\"$threshold_size\"} ))", + "expr": "(sum without (unit,job) (eturnal_turn_session_duration_seconds_sum{unit=~\"$unit\"})) / (sum without (unit,job) ( (eturnal_turn_sessions_total{unit=~\"$unit\"})))", "hide": false, "legendFormat": "{{transport}}", "range": true, @@ -1822,108 +1490,214 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_VICTORIAMETRICS}" + "uid": "P4169E866C3094E38" }, "editorMode": "code", - "expr": "(sum without (unit,job,transport) (eturnal_turn_relay_rcvd_bytes_sum{unit=~\"$unit\"})) / (sum without (unit,job,transport) ( (eturnal_turn_sessions_total{unit=~\"$unit\"}) - ignoring(le) eturnal_turn_relay_rcvd_bytes_bucket{unit=~\"$unit\",le=~\"$threshold_size\"} ))", + "expr": "(sum without (unit,job,transport) (eturnal_turn_session_duration_seconds_sum{unit=~\"$unit\"})) / (sum without (unit,job,transport) ( (eturnal_turn_sessions_total{unit=~\"$unit\"})))", "hide": false, "legendFormat": "Overall", "range": true, "refId": "C" } ], - "title": "↓ Mean* received", + "title": "Mean duration [in hh:mm:ss]", "transformations": [], "type": "stat" }, { "datasource": { "type": "prometheus", - "uid": "${DS_VICTORIAMETRICS}" + "uid": "P4169E866C3094E38" }, - "description": "*w/o sessions <=$threshold_size bytes ($transport)", + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "continuous-BlPu" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "bars", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "dashed" + } + }, + "decimals": 0, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "blue", + "value": null + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 8, + "x": 0, + "y": 20 + }, + "id": 45, + "options": { + "legend": { + "calcs": [ + "mean", + "stdDev", + "last" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "9.2.7", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "P4169E866C3094E38" + }, + "editorMode": "code", + "expr": "irate(sum(eturnal_turn_sessions_total{unit=~\"$unit\"}[$__rate_interval]))*$__interval", + "hide": false, + "legendFormat": "newly opened TURN Sessions", + "range": true, + "refId": "B" + } + ], + "title": "newly opened TURN Sessions", + "transformations": [ + { + "id": "configFromData", + "options": { + "configRefId": "B", + "mappings": [ + { + "fieldName": "newly opened TURN Sessions", + "handlerKey": "threshold1", + "reducerId": "mean" + } + ] + } + } + ], + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "P4169E866C3094E38" + }, + "description": "*w/o sessions <=$threshold_size bytes (calculated from past rates)", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, + "decimals": 0, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { - "color": "yellow", + "color": "blue", "value": null } ] - }, - "unit": "bytes" + } }, "overrides": [] }, "gridPos": { - "h": 10, - "w": 2, - "x": 20, - "y": 25 + "h": 3, + "w": 8, + "x": 8, + "y": 20 }, - "id": 30, + "id": 13, "options": { - "colorMode": "value", + "colorMode": "background", "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", + "justifyMode": "center", + "orientation": "auto", "reduceOptions": { "calcs": [ - "mean" + "last" ], "fields": "", "values": false }, - "textMode": "value" + "textMode": "auto" }, "pluginVersion": "10.1.2", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_VICTORIAMETRICS}" + "uid": "P4169E866C3094E38" }, "editorMode": "code", - "expr": "(sum without (unit,job) (eturnal_turn_relay_sent_bytes_sum{unit=~\"$unit\"})) / (sum without (unit,job) ( (eturnal_turn_sessions_total{unit=~\"$unit\"}) - ignoring(le) eturnal_turn_relay_sent_bytes_bucket{unit=~\"$unit\",le=~\"$threshold_size\"} ))", + "expr": "( 1 - \n\n ( sum without (le,unit,job) ( (eturnal_turn_relay_rcvd_bytes_bucket{unit=~\"$unit\",le=~\"$threshold_size\"} + eturnal_turn_relay_sent_bytes_bucket{unit=~\"$unit\",le=~\"$threshold_size\"}) / 2 ) \n / ( sum without (le,unit,job) (eturnal_turn_sessions_total{unit=~\"$unit\"}) ) ) )\n\n* ( sum without (le,unit,job) (eturnal_turn_open_sessions{unit=~\"$unit\"}) )", "hide": false, "legendFormat": "{{transport}}", "range": true, - "refId": "A" - }, + "refId": "B" + } + ], + "title": "Open active* TURN sessions", + "transformations": [ { - "datasource": { - "type": "prometheus", - "uid": "${DS_VICTORIAMETRICS}" - }, - "editorMode": "code", - "expr": "(sum without (unit,job,transport) (eturnal_turn_relay_sent_bytes_sum{unit=~\"$unit\"})) / (sum without (unit,job,transport) ( (eturnal_turn_sessions_total{unit=~\"$unit\"}) - ignoring(le) eturnal_turn_relay_sent_bytes_bucket{unit=~\"$unit\",le=~\"$threshold_size\"} ))", - "hide": false, - "legendFormat": "Overall", - "range": true, - "refId": "C" + "id": "calculateField", + "options": {} } ], - "title": "↑ Mean* sent", - "transformations": [], "type": "stat" }, { "datasource": { "type": "prometheus", - "uid": "${DS_VICTORIAMETRICS}" + "uid": "P4169E866C3094E38" }, - "description": "", + "description": "*only sessions <=$threshold_size bytes (calculated from past rates)", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, + "decimals": 0, "mappings": [], "thresholds": { "mode": "absolute", @@ -1933,67 +1707,158 @@ "value": null } ] - }, - "unit": "dthms" + } }, "overrides": [] }, "gridPos": { - "h": 10, - "w": 2, - "x": 22, - "y": 25 + "h": 3, + "w": 8, + "x": 8, + "y": 23 }, - "id": 44, + "id": 41, "options": { "colorMode": "value", "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", + "justifyMode": "center", + "orientation": "auto", "reduceOptions": { "calcs": [ - "mean" + "last" ], "fields": "", "values": false }, - "textMode": "value" + "textMode": "auto" }, "pluginVersion": "10.1.2", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_VICTORIAMETRICS}" + "uid": "P4169E866C3094E38" }, "editorMode": "code", - "expr": "(sum without (unit,job) (eturnal_turn_session_duration_seconds_sum{unit=~\"$unit\"})) / (sum without (unit,job) ( (eturnal_turn_sessions_total{unit=~\"$unit\"})))", + "expr": "( sum without (le,unit,job) ( (eturnal_turn_relay_rcvd_bytes_bucket{unit=~\"$unit\",le=~\"$threshold_size\"} + eturnal_turn_relay_sent_bytes_bucket{unit=~\"$unit\",le=~\"$threshold_size\"}) / 2 ) \n/ ( sum without (le,unit,job) (eturnal_turn_sessions_total{unit=~\"$unit\"}) ) )\n\n* ( sum without (le,unit,job) (eturnal_turn_open_sessions{unit=~\"$unit\"}) )", "hide": false, "legendFormat": "{{transport}}", "range": true, - "refId": "A" + "refId": "B" + } + ], + "title": "Open inactive* TURN sessions", + "transformations": [ + { + "id": "calculateField", + "options": {} + } + ], + "type": "stat" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 26 + }, + "id": 50, + "panels": [], + "title": "Information per TURN session", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "P4169E866C3094E38" + }, + "description": "", + "fieldConfig": { + "defaults": { + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "scaleDistribution": { + "type": "linear" + } + } + }, + "overrides": [] + }, + "gridPos": { + "h": 10, + "w": 8, + "x": 0, + "y": 27 + }, + "id": 26, + "options": { + "calculate": false, + "cellGap": 1, + "cellValues": { + "decimals": 0 + }, + "color": { + "exponent": 0.5, + "fill": "dark-orange", + "mode": "scheme", + "reverse": true, + "scale": "exponential", + "scheme": "Plasma", + "steps": 64 + }, + "exemplars": { + "color": "transparent" + }, + "filterValues": { + "le": 1e-9 + }, + "legend": { + "show": false + }, + "rowsFrame": { + "layout": "auto" }, + "tooltip": { + "show": true, + "yHistogram": true + }, + "yAxis": { + "axisPlacement": "left", + "reverse": false, + "unit": "bytes" + } + }, + "pluginVersion": "10.1.2", + "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_VICTORIAMETRICS}" + "uid": "P4169E866C3094E38" }, "editorMode": "code", - "expr": "(sum without (unit,job,transport) (eturnal_turn_session_duration_seconds_sum{unit=~\"$unit\"})) / (sum without (unit,job,transport) ( (eturnal_turn_sessions_total{unit=~\"$unit\"})))", - "hide": false, - "legendFormat": "Overall", + "exemplar": false, + "expr": "sum without (job,unit,transport) ( (irate(eturnal_turn_relay_rcvd_bytes_bucket{unit=~\"$unit\"}[$__rate_interval]))*$__interval)", + "format": "heatmap", + "instant": false, + "legendFormat": "__auto", "range": true, - "refId": "C" + "refId": "A" } ], - "title": "Mean duration [in hh:mm:ss]", + "title": "Relay data distribution (rcvd↓)", "transformations": [], - "type": "stat" + "type": "heatmap" }, { "datasource": { "type": "prometheus", - "uid": "${DS_VICTORIAMETRICS}" + "uid": "P4169E866C3094E38" }, "description": "", "fieldConfig": { @@ -2012,10 +1877,10 @@ "overrides": [] }, "gridPos": { - "h": 5, + "h": 10, "w": 8, "x": 8, - "y": 30 + "y": 27 }, "id": 69, "options": { @@ -2060,7 +1925,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_VICTORIAMETRICS}" + "uid": "P4169E866C3094E38" }, "editorMode": "code", "exemplar": false, @@ -2072,7 +1937,93 @@ "refId": "A" } ], - "title": "Relay data distribution (sent↑) | transports $transport", + "title": "Relay data distribution (sent↑)", + "transformations": [], + "type": "heatmap" + }, + { + "datasource": { + "type": "prometheus", + "uid": "P4169E866C3094E38" + }, + "description": "", + "fieldConfig": { + "defaults": { + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "scaleDistribution": { + "type": "linear" + } + } + }, + "overrides": [] + }, + "gridPos": { + "h": 10, + "w": 8, + "x": 16, + "y": 27 + }, + "id": 35, + "options": { + "calculate": false, + "cellGap": 1, + "cellValues": { + "decimals": 0 + }, + "color": { + "exponent": 0.5, + "fill": "dark-orange", + "mode": "scheme", + "reverse": true, + "scale": "exponential", + "scheme": "Plasma", + "steps": 88 + }, + "exemplars": { + "color": "rgba(255,0,255,0.7)" + }, + "filterValues": { + "le": 1e-9 + }, + "legend": { + "show": true + }, + "rowsFrame": { + "layout": "auto" + }, + "tooltip": { + "show": true, + "yHistogram": false + }, + "yAxis": { + "axisPlacement": "left", + "reverse": false, + "unit": "s" + } + }, + "pluginVersion": "10.1.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "P4169E866C3094E38" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum without (job,unit,transport) (irate(eturnal_turn_session_duration_seconds_bucket{unit=~\"$unit\"}[$__rate_interval]))*15", + "format": "heatmap", + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Session duration distribution", "transformations": [], "type": "heatmap" } @@ -2107,7 +2058,15 @@ "type": "datasource" }, { - "current": {}, + "current": { + "selected": true, + "text": [ + "All" + ], + "value": [ + "$__all" + ] + }, "definition": "query_result(eturnal_stun_requests_total)", "description": "Target TURN server unit", "hide": 0, @@ -2163,13 +2122,13 @@ ] }, "time": { - "from": "now-6h", + "from": "now-30m", "to": "now" }, "timepicker": {}, "timezone": "", "title": "eturnal STUN/TURN server official dashboard", "uid": "0uBAM6E4k", - "version": 5, + "version": 7, "weekStart": "" } From d440f1112afa3d3f1f9473b29571d864fe429edf Mon Sep 17 00:00:00 2001 From: Saarko <90323876+sando38@users.noreply.github.com> Date: Mon, 25 Dec 2023 19:08:26 -0600 Subject: [PATCH 4/5] Update grafana-prometheus.json --- config/grafana-prometheus.json | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/config/grafana-prometheus.json b/config/grafana-prometheus.json index 25d261f99..52d79ae64 100644 --- a/config/grafana-prometheus.json +++ b/config/grafana-prometheus.json @@ -25,7 +25,7 @@ "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, - "id": 24, + "id": 23, "links": [], "liveNow": false, "panels": [ @@ -1222,7 +1222,7 @@ "overrides": [] }, "gridPos": { - "h": 9, + "h": 12, "w": 2, "x": 16, "y": 14 @@ -1262,7 +1262,7 @@ "uid": "P4169E866C3094E38" }, "editorMode": "code", - "expr": "(sum without (instance,job,transport) (eturnal_turn_relay_rcvd_bytes_sum{instance=~\"$instance\"})) / (sum without (instance,job,transport) ( (eturnal_turn_sessions_total{instance=~\"$instance\"}) - ignoring(le) eturnal_turn_relay_rcvd_bytes_bucket{instance=~\"$instance\",le=~\"$threshold_size\"} ))", + "expr": "(sum without (unit,job,transport) (eturnal_turn_relay_rcvd_bytes_sum{unit=~\"$unit\"})) / (sum without (unit,job,transport) ( (eturnal_turn_sessions_total{unit=~\"$unit\"}) - ignoring(le) eturnal_turn_relay_rcvd_bytes_bucket{unit=~\"$unit\",le=~\"$threshold_size\"} ))", "hide": false, "legendFormat": "Overall", "range": true, @@ -2067,6 +2067,10 @@ "$__all" ] }, + "datasource": { + "type": "prometheus", + "uid": "P4169E866C3094E38" + }, "definition": "query_result(eturnal_stun_requests_total)", "description": "Target TURN server unit", "hide": 0, @@ -2122,13 +2126,13 @@ ] }, "time": { - "from": "now-30m", + "from": "now-6h", "to": "now" }, "timepicker": {}, "timezone": "", "title": "eturnal STUN/TURN server official dashboard", "uid": "0uBAM6E4k", - "version": 7, + "version": 2, "weekStart": "" } From ddc34173eb1ea5fde3cd4e8894c916d1be445c9f Mon Sep 17 00:00:00 2001 From: Saarko <90323876+sando38@users.noreply.github.com> Date: Tue, 26 Dec 2023 06:47:46 -0600 Subject: [PATCH 5/5] Update grafana-prometheus.json --- config/grafana-prometheus.json | 33 ++++++++++++++------------------- 1 file changed, 14 insertions(+), 19 deletions(-) diff --git a/config/grafana-prometheus.json b/config/grafana-prometheus.json index 52d79ae64..418bd54bb 100644 --- a/config/grafana-prometheus.json +++ b/config/grafana-prometheus.json @@ -520,7 +520,19 @@ "uid": "P4169E866C3094E38" }, "editorMode": "code", - "expr": "erlang_vm_memory_bytes_total{unit=~\"$unit\"}", + "expr": "erlang_vm_memory_bytes_total{unit=~\"$unit\",kind=\"system\"}", + "hide": false, + "legendFormat": "{{kind}}", + "range": true, + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "P4169E866C3094E38" + }, + "editorMode": "code", + "expr": "erlang_vm_memory_bytes_total{unit=~\"$unit\",kind=\"processes\"}", "hide": false, "legendFormat": "{{kind}}", "range": true, @@ -529,23 +541,6 @@ ], "title": "Allocated memory by $unit eturnal", "transformations": [ - { - "id": "concatenate", - "options": {} - }, - { - "id": "organize", - "options": { - "excludeByName": {}, - "indexByName": { - "processes": 3, - "processes · Time": 2, - "system": 1, - "system · Time": 0 - }, - "renameByName": {} - } - }, { "id": "calculateField", "options": {} @@ -2133,6 +2128,6 @@ "timezone": "", "title": "eturnal STUN/TURN server official dashboard", "uid": "0uBAM6E4k", - "version": 2, + "version": 3, "weekStart": "" }