From 78ef3352c9c83a68092a039dc304a4c9856f43ac Mon Sep 17 00:00:00 2001 From: Elena Bunea Date: Fri, 19 Apr 2024 13:39:24 +0200 Subject: [PATCH] Scrape standard netbird metrics. --- ...son => OpenDuT-Metrics-1713526123022.json} | 659 ++++++++++-------- .../OpenDuT-Traces-1713524375573.json | 576 +++++++++++++++ .ci/docker/telemetry/prometheus.yml | 6 + 3 files changed, 934 insertions(+), 307 deletions(-) rename .ci/docker/telemetry/grafana/dashboards/{OpenDuT-1713274738782.json => OpenDuT-Metrics-1713526123022.json} (84%) create mode 100644 .ci/docker/telemetry/grafana/dashboards/OpenDuT-Traces-1713524375573.json diff --git a/.ci/docker/telemetry/grafana/dashboards/OpenDuT-1713274738782.json b/.ci/docker/telemetry/grafana/dashboards/OpenDuT-Metrics-1713526123022.json similarity index 84% rename from .ci/docker/telemetry/grafana/dashboards/OpenDuT-1713274738782.json rename to .ci/docker/telemetry/grafana/dashboards/OpenDuT-Metrics-1713526123022.json index 5678764f5..cdb86c128 100644 --- a/.ci/docker/telemetry/grafana/dashboards/OpenDuT-1713274738782.json +++ b/.ci/docker/telemetry/grafana/dashboards/OpenDuT-Metrics-1713526123022.json @@ -18,6 +18,7 @@ "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, + "id": 17, "links": [], "liveNow": false, "panels": [ @@ -31,19 +32,18 @@ }, "id": 8, "panels": [], - "title": "Traces", + "title": "openDuT Metrics", "type": "row" }, { "datasource": { - "type": "tempo", - "uid": "tempo" + "type": "prometheus", + "uid": "prometheus" }, "fieldConfig": { "defaults": { "color": { - "fixedColor": "blue", - "mode": "fixed" + "mode": "palette-classic" }, "custom": { "axisBorderShow": false, @@ -52,7 +52,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, - "drawStyle": "points", + "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { @@ -62,11 +62,8 @@ }, "insertNulls": false, "lineInterpolation": "linear", - "lineStyle": { - "fill": "solid" - }, - "lineWidth": 4, - "pointSize": 16, + "lineWidth": 1, + "pointSize": 5, "scaleDistribution": { "type": "linear" }, @@ -99,56 +96,122 @@ { "matcher": { "id": "byName", - "options": "traceDuration" + "options": "{__name__=\"registered_peers\", exported_instance=\"carl_instance\", exported_job=\"opendut-carl\", instance=\"otel-collector:8889\", job=\"otel-collector\", label1=\"value1\"}" }, "properties": [ - { - "id": "noValue", - "value": "0" - }, { "id": "color", "value": { - "fixedColor": "blue", + "fixedColor": "yellow", "mode": "fixed" } } ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 6, + "x": 0, + "y": 1 + }, + "id": 16, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" }, - { - "matcher": { - "id": "byName", - "options": "traceDuration {traceID=\"46e264c83ae0ea1e84a8707f19b74dda\", traceName=\"grpc::cluster_manager::list_cluster_configurations\", traceService=\"opendut-carl\"}" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "green", - "mode": "fixed" - } - } - ] + "disableTextWrap": false, + "editorMode": "builder", + "expr": "deployed_clusters", + "fullMetaSearch": false, + "includeNullMetadata": true, + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "A", + "useBackend": false + } + ], + "title": "Deployed Clusters", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" }, - { - "matcher": { - "id": "byName", - "options": "traceDuration {traceID=\"d95cb17b2d7310132111cff68e3f1039\", traceName=\"grpc::cluster_manager::list_cluster_deployments\", traceService=\"opendut-carl\"}" + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false }, - "properties": [ + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ { - "id": "color", - "value": { - "fixedColor": "red", - "mode": "fixed" - } + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 } ] - }, + } + }, + "overrides": [ { "matcher": { "id": "byName", - "options": "traceDuration {traceID=\"ac0294c922ee018593b0dfd1385cbfae\", traceName=\"network_interfaces_setup\", traceService=\"opendut-edgar\"}" + "options": "{__name__=\"registered_peers\", exported_instance=\"carl_instance\", exported_job=\"opendut-carl\", instance=\"otel-collector:8889\", job=\"otel-collector\", label1=\"value1\"}" }, "properties": [ { @@ -163,25 +226,13 @@ { "matcher": { "id": "byName", - "options": "Service" - }, - "properties": [ - { - "id": "custom.axisColorMode", - "value": "text" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "traceDuration opendut-edgar" + "options": "{__name__=\"configured_clusters\", exported_instance=\"carl_instance\", exported_job=\"opendut-carl\", instance=\"otel-collector:8889\", job=\"otel-collector\", label1=\"value1\"}" }, "properties": [ { "id": "color", "value": { - "fixedColor": "green", + "fixedColor": "yellow", "mode": "fixed" } } @@ -191,11 +242,11 @@ }, "gridPos": { "h": 8, - "w": 12, - "x": 0, + "w": 6, + "x": 6, "y": 1 }, - "id": 11, + "id": 17, "options": { "legend": { "calcs": [], @@ -204,92 +255,72 @@ "showLegend": true }, "tooltip": { - "mode": "multi", + "mode": "single", "sort": "none" } }, - "pluginVersion": "10.3.3", "targets": [ { "datasource": { - "type": "tempo", - "uid": "tempo" + "type": "prometheus", + "uid": "prometheus" }, - "filters": [ - { - "id": "a4dbbe6a", - "operator": "=", - "scope": "span" - }, - { - "id": "service-name", - "operator": "=", - "scope": "resource", - "tag": "service.name", - "value": [ - "opendut-carl" - ], - "valueType": "string" - } - ], - "limit": 20, - "query": "{resource.service.name=~\"$service_name\" && rootName=~\"$root_name\" && resource.service.instance.id=~\"$peer_id\"} ", - "queryType": "traceql", + "disableTextWrap": false, + "editorMode": "builder", + "expr": "configured_clusters", + "fullMetaSearch": false, + "includeNullMetadata": true, + "instant": false, + "legendFormat": "__auto", + "range": true, "refId": "A", - "tableType": "traces" - } - ], - "title": "Tempo", - "transformations": [ - { - "id": "convertFieldType", - "options": { - "conversions": [ - { - "destinationType": "number", - "targetField": "Duration" - } - ], - "fields": {} - } - }, - { - "id": "filterFieldsByName", - "options": { - "include": { - "names": [ - "Start time", - "Service", - "Duration" - ] - } - } - }, - { - "id": "prepareTimeSeries", - "options": { - "format": "multi" - } + "useBackend": false } ], + "title": "Configured Clusters", "type": "timeseries" }, { "datasource": { - "type": "tempo", - "uid": "tempo" + "type": "prometheus", + "uid": "prometheus" }, "fieldConfig": { "defaults": { "color": { - "mode": "thresholds" + "mode": "palette-classic" }, "custom": { - "align": "auto", - "cellOptions": { - "type": "auto" + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false }, - "inspect": false + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } }, "mappings": [], "thresholds": { @@ -306,111 +337,47 @@ ] } }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Duration" - }, - "properties": [ - { - "id": "mappings", - "value": [ - { - "options": { - "match": "null", - "result": { - "index": 0, - "text": "< 1 ms" - } - }, - "type": "special" - } - ] - } - ] - } - ] + "overrides": [] }, "gridPos": { "h": 8, - "w": 12, + "w": 6, "x": 12, "y": 1 }, - "id": 24, + "id": 14, "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "fields": "", - "reducer": [ - "sum" - ], - "show": false + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true }, - "showHeader": true, - "sortBy": [ - { - "desc": true, - "displayName": "Start time" - } - ] + "tooltip": { + "mode": "single", + "sort": "none" + } }, - "pluginVersion": "10.4.1", "targets": [ { "datasource": { - "type": "tempo", - "uid": "tempo" + "type": "prometheus", + "uid": "prometheus" }, - "filters": [ - { - "id": "a4dbbe6a", - "operator": "=", - "scope": "resource", - "tag": "service.instance.id" - }, - { - "id": "service-name", - "operator": "=", - "scope": "resource", - "tag": "service.name", - "value": [ - "$service_name" - ], - "valueType": "string" - }, - { - "id": "min-duration", - "operator": ">", - "tag": "duration", - "value": "", - "valueType": "duration" - } - ], - "limit": 20, - "query": "{resource.service.name=~\"$service_name\" && rootName=~\"$root_name\" && resource.service.instance.id=~\"$peer_id\"} | select(resource.service.instance.id, span.self_id)", - "queryType": "traceql", + "disableTextWrap": false, + "editorMode": "builder", + "expr": "connected_peers", + "fullMetaSearch": false, + "includeNullMetadata": true, + "instant": false, + "legendFormat": "__auto", + "range": true, "refId": "A", - "tableType": "traces" + "useBackend": false } ], - "title": "Tempo", - "type": "table" - }, - { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 9 - }, - "id": 13, - "panels": [], - "title": "Metrics", - "type": "row" + "title": "Online Peers", + "type": "timeseries" }, { "datasource": { @@ -490,10 +457,10 @@ "gridPos": { "h": 8, "w": 6, - "x": 0, - "y": 10 + "x": 18, + "y": 1 }, - "id": 16, + "id": 15, "options": { "legend": { "calcs": [], @@ -514,7 +481,7 @@ }, "disableTextWrap": false, "editorMode": "builder", - "expr": "deployed_clusters", + "expr": "registered_peers", "fullMetaSearch": false, "includeNullMetadata": true, "instant": false, @@ -524,9 +491,22 @@ "useBackend": false } ], - "title": "Deployed Clusters", + "title": "Registered Peers", "type": "timeseries" }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 9 + }, + "id": 24, + "panels": [], + "title": "EDGAR System Metrics", + "type": "row" + }, { "datasource": { "type": "prometheus", @@ -582,7 +562,8 @@ "value": 80 } ] - } + }, + "unit": "decbytes" }, "overrides": [ { @@ -599,31 +580,16 @@ } } ] - }, - { - "matcher": { - "id": "byName", - "options": "{__name__=\"configured_clusters\", exported_instance=\"carl_instance\", exported_job=\"opendut-carl\", instance=\"otel-collector:8889\", job=\"otel-collector\", label1=\"value1\"}" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "yellow", - "mode": "fixed" - } - } - ] } ] }, "gridPos": { "h": 8, "w": 6, - "x": 6, + "x": 0, "y": 10 }, - "id": 17, + "id": 18, "options": { "legend": { "calcs": [], @@ -644,7 +610,7 @@ }, "disableTextWrap": false, "editorMode": "builder", - "expr": "configured_clusters", + "expr": "host_ram_used{exported_job!=\"opendut-carl\"}", "fullMetaSearch": false, "includeNullMetadata": true, "instant": false, @@ -654,7 +620,7 @@ "useBackend": false } ], - "title": "Configured Clusters", + "title": "Edgar host RAM used", "type": "timeseries" }, { @@ -712,17 +678,34 @@ "value": 80 } ] - } + }, + "unit": "decbytes" }, - "overrides": [] + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "{__name__=\"registered_peers\", exported_instance=\"carl_instance\", exported_job=\"opendut-carl\", instance=\"otel-collector:8889\", job=\"otel-collector\", label1=\"value1\"}" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "yellow", + "mode": "fixed" + } + } + ] + } + ] }, "gridPos": { "h": 8, "w": 6, - "x": 12, + "x": 6, "y": 10 }, - "id": 14, + "id": 19, "options": { "legend": { "calcs": [], @@ -743,7 +726,7 @@ }, "disableTextWrap": false, "editorMode": "builder", - "expr": "connected_peers", + "expr": "process_ram_used{exported_job!=\"opendut-carl\"}", "fullMetaSearch": false, "includeNullMetadata": true, "instant": false, @@ -753,7 +736,7 @@ "useBackend": false } ], - "title": "Online Peers", + "title": "Edgar process RAM used", "type": "timeseries" }, { @@ -811,7 +794,8 @@ "value": 80 } ] - } + }, + "unit": "percent" }, "overrides": [ { @@ -834,10 +818,10 @@ "gridPos": { "h": 8, "w": 6, - "x": 18, + "x": 12, "y": 10 }, - "id": 15, + "id": 20, "options": { "legend": { "calcs": [], @@ -858,7 +842,7 @@ }, "disableTextWrap": false, "editorMode": "builder", - "expr": "registered_peers", + "expr": "process_cpu_used{exported_job!=\"opendut-carl\"}", "fullMetaSearch": false, "includeNullMetadata": true, "instant": false, @@ -868,9 +852,22 @@ "useBackend": false } ], - "title": "Registered Peers", + "title": "Edgar process CPU used", "type": "timeseries" }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 18 + }, + "id": 13, + "panels": [], + "title": "CARL System Metrics", + "type": "row" + }, { "datasource": { "type": "prometheus", @@ -920,10 +917,6 @@ { "color": "green", "value": null - }, - { - "color": "red", - "value": 80 } ] }, @@ -932,14 +925,14 @@ "overrides": [ { "matcher": { - "id": "byName", - "options": "{__name__=\"registered_peers\", exported_instance=\"carl_instance\", exported_job=\"opendut-carl\", instance=\"otel-collector:8889\", job=\"otel-collector\", label1=\"value1\"}" + "id": "byRegexp", + "options": "/carl/" }, "properties": [ { "id": "color", "value": { - "fixedColor": "yellow", + "fixedColor": "blue", "mode": "fixed" } } @@ -951,9 +944,9 @@ "h": 8, "w": 6, "x": 0, - "y": 18 + "y": 19 }, - "id": 18, + "id": 21, "options": { "legend": { "calcs": [], @@ -974,7 +967,7 @@ }, "disableTextWrap": false, "editorMode": "builder", - "expr": "host_ram_used{exported_job!=\"opendut-carl\"}", + "expr": "host_ram_used{exported_job=\"opendut-carl\"}", "fullMetaSearch": false, "includeNullMetadata": true, "instant": false, @@ -984,7 +977,7 @@ "useBackend": false } ], - "title": "Edgar host RAM used", + "title": "Carl host RAM used", "type": "timeseries" }, { @@ -1034,12 +1027,8 @@ "mode": "absolute", "steps": [ { - "color": "green", + "color": "blue", "value": null - }, - { - "color": "red", - "value": 80 } ] }, @@ -1048,14 +1037,18 @@ "overrides": [ { "matcher": { - "id": "byName", - "options": "{__name__=\"registered_peers\", exported_instance=\"carl_instance\", exported_job=\"opendut-carl\", instance=\"otel-collector:8889\", job=\"otel-collector\", label1=\"value1\"}" + "id": "byRegexp", + "options": "/carl/" }, "properties": [ + { + "id": "custom.drawStyle", + "value": "line" + }, { "id": "color", "value": { - "fixedColor": "yellow", + "fixedColor": "blue", "mode": "fixed" } } @@ -1067,9 +1060,9 @@ "h": 8, "w": 6, "x": 6, - "y": 18 + "y": 19 }, - "id": 19, + "id": 22, "options": { "legend": { "calcs": [], @@ -1090,7 +1083,7 @@ }, "disableTextWrap": false, "editorMode": "builder", - "expr": "process_ram_used{exported_job!=\"opendut-carl\"}", + "expr": "process_ram_used{exported_job=\"opendut-carl\"}", "fullMetaSearch": false, "includeNullMetadata": true, "instant": false, @@ -1100,7 +1093,7 @@ "useBackend": false } ], - "title": "Edgar process RAM used", + "title": "Carl process RAM used", "type": "timeseries" }, { @@ -1152,10 +1145,6 @@ { "color": "green", "value": null - }, - { - "color": "red", - "value": 80 } ] }, @@ -1164,14 +1153,14 @@ "overrides": [ { "matcher": { - "id": "byName", - "options": "{__name__=\"registered_peers\", exported_instance=\"carl_instance\", exported_job=\"opendut-carl\", instance=\"otel-collector:8889\", job=\"otel-collector\", label1=\"value1\"}" + "id": "byRegexp", + "options": "/carl/" }, "properties": [ { "id": "color", "value": { - "fixedColor": "yellow", + "fixedColor": "blue", "mode": "fixed" } } @@ -1183,9 +1172,9 @@ "h": 8, "w": 6, "x": 12, - "y": 18 + "y": 19 }, - "id": 20, + "id": 27, "options": { "legend": { "calcs": [], @@ -1206,7 +1195,7 @@ }, "disableTextWrap": false, "editorMode": "builder", - "expr": "process_cpu_used{exported_job!=\"opendut-carl\"}", + "expr": "process_cpu_used{exported_job=\"opendut-carl\"}", "fullMetaSearch": false, "includeNullMetadata": true, "instant": false, @@ -1216,9 +1205,22 @@ "useBackend": false } ], - "title": "Edgar process CPU used", + "title": "Carl process CPU used", "type": "timeseries" }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 27 + }, + "id": 25, + "panels": [], + "title": "Netbird System Metrics", + "type": "row" + }, { "datasource": { "type": "prometheus", @@ -1298,10 +1300,10 @@ "gridPos": { "h": 8, "w": 6, - "x": 0, - "y": 26 + "x": 6, + "y": 28 }, - "id": 21, + "id": 26, "options": { "legend": { "calcs": [], @@ -1322,7 +1324,7 @@ }, "disableTextWrap": false, "editorMode": "builder", - "expr": "host_ram_used{exported_job=\"opendut-carl\"}", + "expr": "process_resident_memory_bytes", "fullMetaSearch": false, "includeNullMetadata": true, "instant": false, @@ -1332,7 +1334,7 @@ "useBackend": false } ], - "title": "Carl host RAM used", + "title": "Netbird process RAM used", "type": "timeseries" }, { @@ -1391,7 +1393,7 @@ } ] }, - "unit": "decbytes" + "unit": "percent" }, "overrides": [ { @@ -1414,10 +1416,10 @@ "gridPos": { "h": 8, "w": 6, - "x": 6, - "y": 26 + "x": 12, + "y": 28 }, - "id": 22, + "id": 29, "options": { "legend": { "calcs": [], @@ -1437,18 +1439,58 @@ "uid": "prometheus" }, "disableTextWrap": false, - "editorMode": "builder", - "expr": "process_ram_used{exported_job=\"opendut-carl\"}", + "editorMode": "code", + "expr": "(process_cpu_seconds_total - min_over_time(process_cpu_seconds_total[2m])) / 60 * 100", "fullMetaSearch": false, + "hide": false, "includeNullMetadata": true, "instant": false, - "legendFormat": "__auto", + "legendFormat": "{{process_cpu_percentage}}", "range": true, "refId": "A", "useBackend": false + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "expr": "process_cpu_seconds_total", + "hide": true, + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "expr": "min_over_time(process_cpu_seconds_total[2m])", + "hide": true, + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "expr": "rate(process_cpu_seconds_total[2m]) * 100", + "hide": true, + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "D" } ], - "title": "Carl process RAM used", + "title": "Netbird process CPU used", "type": "timeseries" }, { @@ -1507,7 +1549,7 @@ } ] }, - "unit": "percent" + "unit": "none" }, "overrides": [ { @@ -1530,10 +1572,10 @@ "gridPos": { "h": 8, "w": 6, - "x": 12, - "y": 26 + "x": 18, + "y": 28 }, - "id": 23, + "id": 30, "options": { "legend": { "calcs": [], @@ -1546,6 +1588,7 @@ "sort": "none" } }, + "pluginVersion": "10.4.1", "targets": [ { "datasource": { @@ -1554,17 +1597,19 @@ }, "disableTextWrap": false, "editorMode": "builder", - "expr": "process_cpu_used{exported_job=\"opendut-carl\"}", + "expr": "management_grpc_connected_streams_ratio", "fullMetaSearch": false, + "hide": false, "includeNullMetadata": true, "instant": false, + "interval": "", "legendFormat": "__auto", "range": true, "refId": "A", "useBackend": false } ], - "title": "Carl process CPU used", + "title": "Netbird grpc connected streams", "type": "timeseries" } ], @@ -1577,10 +1622,10 @@ "current": { "selected": true, "text": [ - "opendut-carl" + "All" ], "value": [ - "opendut-carl" + "$__all" ] }, "datasource": { @@ -1677,8 +1722,8 @@ }, "timepicker": {}, "timezone": "", - "title": "OpenDuT", - "uid": "a0a4c37c-6df6-4ae4-8cb7-1428bad66f26", + "title": "OpenDuT Metrics", + "uid": "a0a4c37c-6df6-4ae4-8cb7-1428bad66f21", "version": 1, "weekStart": "" } \ No newline at end of file diff --git a/.ci/docker/telemetry/grafana/dashboards/OpenDuT-Traces-1713524375573.json b/.ci/docker/telemetry/grafana/dashboards/OpenDuT-Traces-1713524375573.json new file mode 100644 index 000000000..dc4d741cd --- /dev/null +++ b/.ci/docker/telemetry/grafana/dashboards/OpenDuT-Traces-1713524375573.json @@ -0,0 +1,576 @@ +{ + "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, + "id": 11, + "links": [], + "liveNow": false, + "panels": [ + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 8, + "panels": [], + "title": "Traces", + "type": "row" + }, + { + "datasource": { + "type": "tempo", + "uid": "tempo" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "blue", + "mode": "fixed" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "points", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 4, + "pointSize": 16, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "traceDuration" + }, + "properties": [ + { + "id": "noValue", + "value": "0" + }, + { + "id": "color", + "value": { + "fixedColor": "blue", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "traceDuration {traceID=\"46e264c83ae0ea1e84a8707f19b74dda\", traceName=\"grpc::cluster_manager::list_cluster_configurations\", traceService=\"opendut-carl\"}" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "green", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "traceDuration {traceID=\"d95cb17b2d7310132111cff68e3f1039\", traceName=\"grpc::cluster_manager::list_cluster_deployments\", traceService=\"opendut-carl\"}" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "red", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "traceDuration {traceID=\"ac0294c922ee018593b0dfd1385cbfae\", traceName=\"network_interfaces_setup\", traceService=\"opendut-edgar\"}" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "yellow", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Service" + }, + "properties": [ + { + "id": "custom.axisColorMode", + "value": "text" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "traceDuration opendut-edgar" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "green", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "traceDuration opendut-carl" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "blue", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "traceDuration netbird-shell" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "green", + "mode": "fixed" + } + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 1 + }, + "id": 11, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "10.3.3", + "targets": [ + { + "datasource": { + "type": "tempo", + "uid": "tempo" + }, + "filters": [ + { + "id": "a4dbbe6a", + "operator": "=", + "scope": "span" + }, + { + "id": "service-name", + "operator": "=", + "scope": "resource", + "tag": "service.name", + "value": [ + "opendut-carl" + ], + "valueType": "string" + } + ], + "limit": 20, + "query": "{resource.service.name=~\"$service_name\" && rootName=~\"$root_name\" && resource.service.instance.id=~\"$peer_id\"} ", + "queryType": "traceql", + "refId": "A", + "tableType": "traces" + } + ], + "title": "Tempo", + "transformations": [ + { + "id": "convertFieldType", + "options": { + "conversions": [ + { + "destinationType": "number", + "targetField": "Duration" + } + ], + "fields": {} + } + }, + { + "id": "filterFieldsByName", + "options": { + "include": { + "names": [ + "Start time", + "Service", + "Duration" + ] + } + } + }, + { + "id": "prepareTimeSeries", + "options": { + "format": "multi" + } + } + ], + "type": "timeseries" + }, + { + "datasource": { + "type": "tempo", + "uid": "tempo" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "auto", + "cellOptions": { + "type": "auto" + }, + "inspect": false + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Duration" + }, + "properties": [ + { + "id": "mappings", + "value": [ + { + "options": { + "match": "null", + "result": { + "index": 0, + "text": "< 1 ms" + } + }, + "type": "special" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Service" + }, + "properties": [ + { + "id": "mappings", + "value": [ + { + "options": { + "pattern": "opendut-carl", + "result": { + "color": "blue", + "index": 0 + } + }, + "type": "regex" + } + ] + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-text" + } + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 1 + }, + "id": 24, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true, + "sortBy": [ + { + "desc": true, + "displayName": "Start time" + } + ] + }, + "pluginVersion": "10.4.1", + "targets": [ + { + "datasource": { + "type": "tempo", + "uid": "tempo" + }, + "filters": [ + { + "id": "a4dbbe6a", + "operator": "=", + "scope": "resource", + "tag": "service.instance.id" + }, + { + "id": "service-name", + "operator": "=", + "scope": "resource", + "tag": "service.name", + "value": [ + "$service_name" + ], + "valueType": "string" + }, + { + "id": "min-duration", + "operator": ">", + "tag": "duration", + "value": "", + "valueType": "duration" + } + ], + "limit": 20, + "query": "{resource.service.name=~\"$service_name\" && rootName=~\"$root_name\" && resource.service.instance.id=~\"$peer_id\"} | select(resource.service.instance.id, span.self_id)", + "queryType": "traceql", + "refId": "A", + "tableType": "traces" + } + ], + "title": "Tempo", + "type": "table" + } + ], + "refresh": "", + "schemaVersion": 39, + "tags": [], + "templating": { + "list": [ + { + "current": { + "selected": true, + "text": [ + "All" + ], + "value": [ + "$__all" + ] + }, + "datasource": { + "type": "tempo", + "uid": "tempo" + }, + "definition": "", + "hide": 0, + "includeAll": true, + "label": "Service name", + "multi": true, + "name": "service_name", + "options": [], + "query": { + "label": "service.name", + "refId": "TempoDatasourceVariableQueryEditor-VariableQuery", + "type": 1 + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "current": { + "selected": true, + "text": [ + "All" + ], + "value": [ + "$__all" + ] + }, + "datasource": { + "type": "tempo", + "uid": "tempo" + }, + "definition": "", + "hide": 0, + "includeAll": true, + "label": "Service Instance ID", + "multi": true, + "name": "peer_id", + "options": [], + "query": { + "label": "service.instance.id", + "refId": "TempoDatasourceVariableQueryEditor-VariableQuery", + "type": 1 + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "current": { + "selected": true, + "text": [ + "All" + ], + "value": [ + "$__all" + ] + }, + "datasource": { + "type": "tempo", + "uid": "tempo" + }, + "definition": "", + "hide": 0, + "includeAll": true, + "label": "Root name", + "multi": true, + "name": "root_name", + "options": [], + "query": { + "label": "rootName", + "refId": "TempoDatasourceVariableQueryEditor-VariableQuery", + "type": 1 + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + } + ] + }, + "time": { + "from": "now-5m", + "to": "now" + }, + "timepicker": {}, + "timezone": "", + "title": "OpenDuT Traces", + "uid": "a0a4c37c-6df6-4ae4-8cb7-1428bad66f28", + "version": 1, + "weekStart": "" +} \ No newline at end of file diff --git a/.ci/docker/telemetry/prometheus.yml b/.ci/docker/telemetry/prometheus.yml index ae7d1021e..dcf5337ee 100644 --- a/.ci/docker/telemetry/prometheus.yml +++ b/.ci/docker/telemetry/prometheus.yml @@ -3,3 +3,9 @@ scrape_configs: scrape_interval: 60s static_configs: - targets: ['otel-collector:8889'] + - job_name: 'netbird' + scheme: http + scrape_interval: 60s + static_configs: + - targets: ['netbird-management-container:8081'] + metrics_path: /metrics