From 70f5376c18f5e2e963479fd3b1d0bc8fe1237dd9 Mon Sep 17 00:00:00 2001 From: ninjab3s Date: Wed, 5 Jun 2024 17:28:56 +0200 Subject: [PATCH] helm grafana: Add dashboard file --- home.json | 1012 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 1012 insertions(+) create mode 100644 home.json diff --git a/home.json b/home.json new file mode 100644 index 0000000..f594693 --- /dev/null +++ b/home.json @@ -0,0 +1,1012 @@ +{ + "__elements": {}, + "__requires": [ + { + "type": "panel", + "id": "gauge", + "name": "Gauge", + "version": "" + }, + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "10.2.0-61719" + }, + { + "type": "datasource", + "id": "influxdb", + "name": "InfluxDB", + "version": "1.0.0" + }, + { + "type": "panel", + "id": "stat", + "name": "Stat", + "version": "" + }, + { + "type": "panel", + "id": "text", + "name": "Text", + "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", + "type": "dashboard" + } + ] + }, + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "links": [], + "liveNow": false, + "panels": [ + { + "datasource": { + "type": "influxdb", + "uid": "JOSE3g9KVz" + }, + "gridPos": { + "h": 4, + "w": 4, + "x": 0, + "y": 0 + }, + "id": 15, + "options": { + "code": { + "language": "plaintext", + "showLineNumbers": false, + "showMiniMap": false + }, + "content": "", + "mode": "html" + }, + "pluginVersion": "10.2.0-61719", + "transparent": true, + "type": "text" + }, + { + "datasource": { + "type": "influxdb", + "uid": "JOSE3g9KVz" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 0, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 2, + "x": 4, + "y": 0 + }, + "id": 19, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "10.2.0-61719", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "JOSE3g9KVz" + }, + "query": "from(bucket: \"srsran\")\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> filter(fn: (r) => r[\"_measurement\"] == \"ue_info\")\n |> filter(fn: (r) => r[\"testbed\"] == \"default\")\n |> filter(fn: (r) => r[\"_field\"] == \"dl_brate\")\n |> window(every: 2s)\n |> group(columns: [\"_stop\"])\n |> unique(column: \"pci\")\n |> count(column: \"pci\")\n |> map(fn: (r) => ({ r with _value: r[\"pci\"] }))\n |> drop(columns: [\"pci\"])\n |> group()\n", + "refId": "Downlink" + } + ], + "title": "Num Cells", + "transformations": [ + { + "id": "renameByRegex", + "options": { + "regex": ".*", + "renamePattern": "Num Cells" + } + } + ], + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "JOSE3g9KVz" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 0, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 6, + "x": 6, + "y": 0 + }, + "id": 14, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "10.2.0-61719", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "JOSE3g9KVz" + }, + "query": "from(bucket: \"srsran\")\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> filter(fn: (r) => r[\"_measurement\"] == \"ue_info\")\n |> filter(fn: (r) => r[\"testbed\"] == \"default\")\n |> filter(fn: (r) => r[\"_field\"] == \"dl_brate\")\n |> map(fn: (r) => ({ r with ue_id: r[\"pci\"]+\".\"+r[\"rnti\"]}))\n |> window(every: 2s)\n |> group(columns: [\"_stop\"])\n |> unique(column: \"ue_id\")\n |> count(column: \"ue_id\")\n |> map(fn: (r) => ({ r with _value: r[\"ue_id\"] }))\n |> drop(columns: [\"ue_id\"])\n |> group()\n", + "refId": "Downlink" + } + ], + "title": "Active UEs", + "transformations": [ + { + "id": "renameByRegex", + "options": { + "regex": ".*", + "renamePattern": "Active UEs" + } + } + ], + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "JOSE3g9KVz" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "bps" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 8, + "x": 12, + "y": 0 + }, + "id": 3, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "last" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "10.2.0-62263", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "JOSE3g9KVz" + }, + "query": "from(bucket: \"srsran\")\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> filter(fn: (r) => r[\"_measurement\"] == \"ue_info\")\n |> filter(fn: (r) => r[\"testbed\"] == \"default\")\n |> filter(fn: (r) => r[\"_field\"] == \"dl_brate\")\n |> window(every: 1s)\n |> group(columns: [\"_stop\"])\n |> sum(column: \"_value\")\n |> group()\n |> movingAverage(n: 2)\n ", + "refId": "A" + } + ], + "title": "Current Total Downlink Bitrate", + "transformations": [], + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "JOSE3g9KVz" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "bps" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 4, + "x": 20, + "y": 0 + }, + "id": 18, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "max" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "10.2.0-61719", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "JOSE3g9KVz" + }, + "query": "from(bucket: \"srsran\")\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> filter(fn: (r) => r[\"_measurement\"] == \"ue_info\")\n |> filter(fn: (r) => r[\"testbed\"] == \"default\")\n |> filter(fn: (r) => r[\"_field\"] == \"dl_brate\")\n |> window(every: 1s)\n |> group(columns: [\"_stop\"])\n |> sum(column: \"_value\")\n |> group()\n |> movingAverage(n: 2)\n ", + "refId": "A" + } + ], + "title": "Maximum Total Downlink Bitrate", + "transformations": [], + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "JOSE3g9KVz" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": 30000, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 7, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "dashed" + } + }, + "decimals": 3, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "bps" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 0, + "y": 4 + }, + "id": 1, + "options": { + "legend": { + "calcs": [ + "last" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "JOSE3g9KVz" + }, + "query": "from(bucket: \"srsran\")\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> filter(fn: (r) => r[\"_measurement\"] == \"ue_info\")\n |> filter(fn: (r) => r[\"testbed\"] == \"default\")\n |> filter(fn: (r) => r[\"_field\"] == \"dl_brate\")\n", + "refId": "Downlink" + } + ], + "title": "Downlink Bitrate", + "transformations": [ + { + "id": "renameByRegex", + "options": { + "regex": ".*pci=\"(\\w+).*rnti=\"(\\w+).*$", + "renamePattern": "UE $2 [$1]" + } + } + ], + "type": "timeseries" + }, + { + "datasource": { + "type": "influxdb", + "uid": "JOSE3g9KVz" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": 30000, + "lineInterpolation": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 7, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "dashed" + } + }, + "decimals": 0, + "mappings": [], + "max": 31, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 12, + "y": 4 + }, + "id": 8, + "options": { + "legend": { + "calcs": [ + "last" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "JOSE3g9KVz" + }, + "query": "from(bucket: \"srsran\")\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> filter(fn: (r) => r[\"_measurement\"] == \"ue_info\") \n |> filter(fn: (r) => r[\"testbed\"] == \"default\")\n |> filter(fn: (r) => r[\"_field\"] == \"dl_mcs\")", + "refId": "Downlink" + } + ], + "title": "Downlink MCS", + "transformations": [ + { + "id": "renameByRegex", + "options": { + "regex": ".*pci=\"(\\w+).*rnti=\"(\\w+).*$", + "renamePattern": "UE $2 [$1]" + } + } + ], + "type": "timeseries" + }, + { + "datasource": { + "type": "influxdb", + "uid": "JOSE3g9KVz" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": 30000, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 7, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "dashed" + } + }, + "decimals": 3, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "bps" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 0, + "y": 10 + }, + "id": 16, + "options": { + "legend": { + "calcs": [ + "last" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "JOSE3g9KVz" + }, + "query": "from(bucket: \"srsran\")\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> filter(fn: (r) => r[\"_measurement\"] == \"ue_info\")\n |> filter(fn: (r) => r[\"testbed\"] == \"default\")\n |> filter(fn: (r) => r[\"_field\"] == \"ul_brate\")\n", + "refId": "Downlink" + } + ], + "title": "Uplink Bitrate", + "transformations": [ + { + "id": "renameByRegex", + "options": { + "regex": ".*pci=\"(\\w+).*rnti=\"(\\w+).*$", + "renamePattern": "UE $2 [$1]" + } + } + ], + "type": "timeseries" + }, + { + "datasource": { + "type": "influxdb", + "uid": "JOSE3g9KVz" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": 30000, + "lineInterpolation": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 7, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "dashed" + } + }, + "decimals": 0, + "mappings": [], + "max": 31, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 12, + "y": 10 + }, + "id": 17, + "options": { + "legend": { + "calcs": [ + "last" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "JOSE3g9KVz" + }, + "query": "from(bucket: \"srsran\")\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> filter(fn: (r) => r[\"_measurement\"] == \"ue_info\") \n |> filter(fn: (r) => r[\"testbed\"] == \"default\")\n |> filter(fn: (r) => r[\"_field\"] == \"ul_mcs\")", + "refId": "Downlink" + } + ], + "title": "Uplink MCS", + "transformations": [ + { + "id": "renameByRegex", + "options": { + "regex": ".*pci=\"(\\w+).*rnti=\"(\\w+).*$", + "renamePattern": "UE $2 [$1]" + } + } + ], + "type": "timeseries" + }, + { + "datasource": { + "type": "influxdb", + "uid": "JOSE3g9KVz" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": 30000, + "lineInterpolation": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 7, + "scaleDistribution": { + "log": 2, + "type": "log" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "dashed" + } + }, + "decimals": 2, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "dB" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 0, + "y": 16 + }, + "id": 10, + "options": { + "legend": { + "calcs": [ + "last" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "JOSE3g9KVz" + }, + "query": "from(bucket: \"srsran\")\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> filter(fn: (r) => r[\"_measurement\"] == \"ue_info\") \n |> filter(fn: (r) => r[\"testbed\"] == \"default\")\n |> filter(fn: (r) => r[\"_field\"] == \"pusch_snr_db\")", + "refId": "Downlink" + } + ], + "title": "Uplink SNR", + "transformations": [ + { + "id": "renameByRegex", + "options": { + "regex": ".*pci=\"(\\w+).*rnti=\"(\\w+).*$", + "renamePattern": "UE $2 [$1]" + } + } + ], + "type": "timeseries" + }, + { + "datasource": { + "type": "influxdb", + "uid": "JOSE3g9KVz" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": 30000, + "lineInterpolation": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 1, + "pointSize": 7, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "dashed" + } + }, + "decimals": 0, + "mappings": [], + "max": 15, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 12, + "y": 16 + }, + "id": 7, + "options": { + "legend": { + "calcs": [ + "last" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "JOSE3g9KVz" + }, + "query": "from(bucket: \"srsran\")\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> filter(fn: (r) => r[\"_measurement\"] == \"ue_info\") \n |> filter(fn: (r) => r[\"testbed\"] == \"default\")\n |> filter(fn: (r) => r[\"_field\"] == \"cqi\")", + "refId": "Downlink" + } + ], + "title": "CQI", + "transformations": [ + { + "id": "renameByRegex", + "options": { + "regex": ".*pci=\"(\\w+).*rnti=\"(\\w+).*$", + "renamePattern": "UE $2 [$1]" + } + } + ], + "type": "timeseries" + } + ], + "refresh": "1s", + "schemaVersion": 38, + "tags": [], + "templating": { + "list": [] + }, + "time": { + "from": "now-5m", + "to": "now" + }, + "timepicker": { + "refresh_intervals": [ + "1s", + "5s", + "10s", + "30s", + "1m", + "5m", + "12m", + "15m", + "30m", + "1h", + "2h", + "1d" + ] + }, + "timezone": "", + "title": "srsRAN Project Metrics", + "uid": "a8a69f8a-1dd1-4496-8f3f-33de8988a823", + "version": 2, + "weekStart": "" +} \ No newline at end of file