From a7412c1ee9c835fb63a3d126d427112e92148090 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Geyslan=20Greg=C3=B3rio?= Date: Tue, 15 Oct 2024 11:33:18 -0300 Subject: [PATCH] chore(performance): update tracee dashboard --- performance/dashboard/docker-compose.yml | 4 +- .../provisioning/dashboards/tracee.json | 431 +++++++++++++++--- 2 files changed, 356 insertions(+), 79 deletions(-) diff --git a/performance/dashboard/docker-compose.yml b/performance/dashboard/docker-compose.yml index bb91dee71d67..722ac3a08ac6 100644 --- a/performance/dashboard/docker-compose.yml +++ b/performance/dashboard/docker-compose.yml @@ -1,5 +1,3 @@ -version: '3.8' - volumes: prometheus_data: {} @@ -11,7 +9,7 @@ services: volumes: - /proc:/host/proc:ro - /sys:/host/sys:ro - - /:/rootfs:ro + - /:/rootfs:ro,rslave command: - '--path.procfs=/host/proc' - '--path.rootfs=/rootfs' diff --git a/performance/dashboard/provisioning/dashboards/tracee.json b/performance/dashboard/provisioning/dashboards/tracee.json index 0fd49681032d..1f34be646e50 100644 --- a/performance/dashboard/provisioning/dashboards/tracee.json +++ b/performance/dashboard/provisioning/dashboards/tracee.json @@ -18,9 +18,8 @@ "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, - "id": 1, + "id": 2, "links": [], - "liveNow": false, "panels": [ { "collapsed": false, @@ -30,6 +29,233 @@ "x": 0, "y": 0 }, + "id": 40, + "panels": [], + "title": "Perf Event Buffer", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "PDC1078F23EBDF0E5" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 8, + "x": 0, + "y": 1 + }, + "id": 39, + "options": { + "displayMode": "gradient", + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "maxVizHeight": 300, + "minVizHeight": 16, + "minVizWidth": 8, + "namePlacement": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showUnfilled": true, + "sizing": "auto", + "valueMode": "color" + }, + "pluginVersion": "11.4.0-202090", + "targets": [ + { + "disableTextWrap": false, + "editorMode": "code", + "expr": "tracee_ebpf_bpf_perf_event_submit_attempts", + "fullMetaSearch": false, + "includeNullMetadata": true, + "legendFormat": "{{event_name}}", + "range": true, + "refId": "A", + "useBackend": false + } + ], + "title": "Submit Attempts", + "type": "bargauge" + }, + { + "datasource": { + "type": "prometheus", + "uid": "PDC1078F23EBDF0E5" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 8, + "x": 8, + "y": 1 + }, + "id": 41, + "options": { + "displayMode": "gradient", + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "maxVizHeight": 300, + "minVizHeight": 16, + "minVizWidth": 8, + "namePlacement": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showUnfilled": true, + "sizing": "auto", + "valueMode": "color" + }, + "pluginVersion": "11.4.0-202090", + "targets": [ + { + "disableTextWrap": false, + "editorMode": "builder", + "expr": "tracee_ebpf_bpf_perf_event_submit_failures", + "fullMetaSearch": false, + "includeNullMetadata": true, + "legendFormat": "{{event_name}}", + "range": true, + "refId": "A", + "useBackend": false + } + ], + "title": "Submit Failures", + "type": "bargauge" + }, + { + "datasource": { + "type": "prometheus", + "uid": "PDC1078F23EBDF0E5" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + } + ] + }, + "unit": "percent" + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 8, + "x": 16, + "y": 1 + }, + "id": 42, + "options": { + "displayMode": "gradient", + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "maxVizHeight": 300, + "minVizHeight": 16, + "minVizWidth": 8, + "namePlacement": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showUnfilled": true, + "sizing": "auto", + "valueMode": "color" + }, + "pluginVersion": "11.4.0-202090", + "targets": [ + { + "disableTextWrap": false, + "editorMode": "code", + "expr": "tracee_ebpf_bpf_perf_event_submit_failures/tracee_ebpf_bpf_perf_event_submit_attempts", + "fullMetaSearch": false, + "includeNullMetadata": true, + "legendFormat": "{{event_name}}", + "range": true, + "refId": "A", + "useBackend": false + } + ], + "title": "Failures Ratio", + "type": "bargauge" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 8 + }, "id": 10, "panels": [], "title": "Events", @@ -46,11 +272,13 @@ "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 50, "gradientMode": "opacity", @@ -93,7 +321,7 @@ "h": 6, "w": 15, "x": 0, - "y": 1 + "y": 9 }, "id": 25, "options": { @@ -108,6 +336,7 @@ "sort": "none" } }, + "pluginVersion": "11.4.0-202090", "targets": [ { "datasource": { @@ -159,10 +388,12 @@ "h": 6, "w": 3, "x": 15, - "y": 1 + "y": 9 }, "id": 35, "options": { + "minVizHeight": 75, + "minVizWidth": 75, "orientation": "auto", "reduceOptions": { "calcs": [ @@ -172,9 +403,10 @@ "values": false }, "showThresholdLabels": true, - "showThresholdMarkers": true + "showThresholdMarkers": true, + "sizing": "auto" }, - "pluginVersion": "10.1.0-124233pre", + "pluginVersion": "11.4.0-202090", "targets": [ { "datasource": { @@ -220,7 +452,7 @@ "h": 6, "w": 3, "x": 18, - "y": 1 + "y": 9 }, "id": 38, "options": { @@ -228,6 +460,7 @@ "graphMode": "area", "justifyMode": "auto", "orientation": "auto", + "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" @@ -235,9 +468,11 @@ "fields": "", "values": false }, - "textMode": "auto" + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true }, - "pluginVersion": "10.1.0-124233pre", + "pluginVersion": "11.4.0-202090", "targets": [ { "datasource": { @@ -267,11 +502,13 @@ "mode": "fixed" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 50, "gradientMode": "opacity", @@ -314,7 +551,7 @@ "h": 6, "w": 15, "x": 0, - "y": 7 + "y": 15 }, "id": 33, "options": { @@ -329,6 +566,7 @@ "sort": "none" } }, + "pluginVersion": "11.4.0-202090", "targets": [ { "datasource": { @@ -380,10 +618,12 @@ "h": 6, "w": 3, "x": 15, - "y": 7 + "y": 15 }, "id": 36, "options": { + "minVizHeight": 75, + "minVizWidth": 75, "orientation": "auto", "reduceOptions": { "calcs": [ @@ -393,9 +633,10 @@ "values": false }, "showThresholdLabels": true, - "showThresholdMarkers": true + "showThresholdMarkers": true, + "sizing": "auto" }, - "pluginVersion": "10.1.0-124233pre", + "pluginVersion": "11.4.0-202090", "targets": [ { "datasource": { @@ -441,7 +682,7 @@ "h": 6, "w": 3, "x": 18, - "y": 7 + "y": 15 }, "id": 30, "options": { @@ -449,6 +690,7 @@ "graphMode": "none", "justifyMode": "auto", "orientation": "auto", + "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" @@ -456,9 +698,11 @@ "fields": "/^C \\{instance=\"localhost:3366\", job=\"tracee\"\\}$/", "values": false }, - "textMode": "auto" + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true }, - "pluginVersion": "10.1.0-124233pre", + "pluginVersion": "11.4.0-202090", "targets": [ { "datasource": { @@ -513,11 +757,13 @@ "mode": "fixed" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 50, "gradientMode": "opacity", @@ -560,7 +806,7 @@ "h": 6, "w": 15, "x": 0, - "y": 13 + "y": 21 }, "id": 34, "options": { @@ -575,6 +821,7 @@ "sort": "none" } }, + "pluginVersion": "11.4.0-202090", "targets": [ { "datasource": { @@ -626,10 +873,12 @@ "h": 6, "w": 3, "x": 15, - "y": 13 + "y": 21 }, "id": 37, "options": { + "minVizHeight": 75, + "minVizWidth": 75, "orientation": "auto", "reduceOptions": { "calcs": [ @@ -639,9 +888,10 @@ "values": false }, "showThresholdLabels": true, - "showThresholdMarkers": true + "showThresholdMarkers": true, + "sizing": "auto" }, - "pluginVersion": "10.1.0-124233pre", + "pluginVersion": "11.4.0-202090", "targets": [ { "datasource": { @@ -687,7 +937,7 @@ "h": 6, "w": 3, "x": 18, - "y": 13 + "y": 21 }, "id": 31, "options": { @@ -695,6 +945,7 @@ "graphMode": "none", "justifyMode": "auto", "orientation": "auto", + "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" @@ -702,9 +953,11 @@ "fields": "/^C \\{instance=\"localhost:3366\", job=\"tracee\"\\}$/", "values": false }, - "textMode": "auto" + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true }, - "pluginVersion": "10.1.0-124233pre", + "pluginVersion": "11.4.0-202090", "targets": [ { "datasource": { @@ -752,7 +1005,7 @@ "h": 1, "w": 24, "x": 0, - "y": 19 + "y": 27 }, "id": 12, "panels": [], @@ -770,11 +1023,13 @@ "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -821,7 +1076,7 @@ "h": 6, "w": 15, "x": 0, - "y": 20 + "y": 28 }, "id": 32, "options": { @@ -836,6 +1091,7 @@ "sort": "none" } }, + "pluginVersion": "11.4.0-202090", "targets": [ { "datasource": { @@ -886,10 +1142,12 @@ "h": 6, "w": 3, "x": 15, - "y": 20 + "y": 28 }, "id": 14, "options": { + "minVizHeight": 75, + "minVizWidth": 75, "orientation": "auto", "reduceOptions": { "calcs": [ @@ -899,9 +1157,10 @@ "values": false }, "showThresholdLabels": true, - "showThresholdMarkers": true + "showThresholdMarkers": true, + "sizing": "auto" }, - "pluginVersion": "10.1.0-124233pre", + "pluginVersion": "11.4.0-202090", "targets": [ { "datasource": { @@ -947,7 +1206,7 @@ "h": 6, "w": 3, "x": 18, - "y": 20 + "y": 28 }, "id": 15, "options": { @@ -955,6 +1214,7 @@ "graphMode": "area", "justifyMode": "auto", "orientation": "auto", + "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" @@ -962,9 +1222,11 @@ "fields": "", "values": false }, - "textMode": "auto" + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true }, - "pluginVersion": "10.1.0-124233pre", + "pluginVersion": "11.4.0-202090", "targets": [ { "datasource": { @@ -1010,7 +1272,7 @@ "h": 12, "w": 3, "x": 21, - "y": 20 + "y": 28 }, "id": 19, "options": { @@ -1018,6 +1280,7 @@ "graphMode": "none", "justifyMode": "auto", "orientation": "auto", + "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" @@ -1025,9 +1288,11 @@ "fields": "/^C$/", "values": false }, - "textMode": "auto" + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true }, - "pluginVersion": "10.1.0-124233pre", + "pluginVersion": "11.4.0-202090", "targets": [ { "datasource": { @@ -1080,11 +1345,13 @@ "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -1134,7 +1401,7 @@ "h": 6, "w": 15, "x": 0, - "y": 26 + "y": 34 }, "id": 16, "options": { @@ -1149,6 +1416,7 @@ "sort": "none" } }, + "pluginVersion": "11.4.0-202090", "targets": [ { "datasource": { @@ -1199,10 +1467,12 @@ "h": 6, "w": 3, "x": 15, - "y": 26 + "y": 34 }, "id": 17, "options": { + "minVizHeight": 75, + "minVizWidth": 75, "orientation": "auto", "reduceOptions": { "calcs": [ @@ -1212,9 +1482,10 @@ "values": false }, "showThresholdLabels": true, - "showThresholdMarkers": true + "showThresholdMarkers": true, + "sizing": "auto" }, - "pluginVersion": "10.1.0-124233pre", + "pluginVersion": "11.4.0-202090", "targets": [ { "datasource": { @@ -1260,7 +1531,7 @@ "h": 6, "w": 3, "x": 18, - "y": 26 + "y": 34 }, "id": 18, "options": { @@ -1268,6 +1539,7 @@ "graphMode": "area", "justifyMode": "auto", "orientation": "auto", + "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" @@ -1275,9 +1547,11 @@ "fields": "", "values": false }, - "textMode": "auto" + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true }, - "pluginVersion": "10.1.0-124233pre", + "pluginVersion": "11.4.0-202090", "targets": [ { "datasource": { @@ -1306,11 +1580,13 @@ "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -1358,7 +1634,7 @@ "h": 7, "w": 15, "x": 0, - "y": 32 + "y": 40 }, "id": 20, "options": { @@ -1373,6 +1649,7 @@ "sort": "none" } }, + "pluginVersion": "11.4.0-202090", "targets": [ { "datasource": { @@ -1449,10 +1726,12 @@ "h": 7, "w": 3, "x": 15, - "y": 32 + "y": 40 }, "id": 22, "options": { + "minVizHeight": 75, + "minVizWidth": 75, "orientation": "auto", "reduceOptions": { "calcs": [ @@ -1462,9 +1741,10 @@ "values": false }, "showThresholdLabels": true, - "showThresholdMarkers": true + "showThresholdMarkers": true, + "sizing": "auto" }, - "pluginVersion": "10.1.0-124233pre", + "pluginVersion": "11.4.0-202090", "targets": [ { "datasource": { @@ -1493,11 +1773,13 @@ "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -1545,7 +1827,7 @@ "h": 7, "w": 15, "x": 0, - "y": 39 + "y": 47 }, "id": 21, "options": { @@ -1560,6 +1842,7 @@ "sort": "none" } }, + "pluginVersion": "11.4.0-202090", "targets": [ { "datasource": { @@ -1610,10 +1893,12 @@ "h": 7, "w": 3, "x": 15, - "y": 39 + "y": 47 }, "id": 23, "options": { + "minVizHeight": 75, + "minVizWidth": 75, "orientation": "auto", "reduceOptions": { "calcs": [ @@ -1623,9 +1908,10 @@ "values": false }, "showThresholdLabels": true, - "showThresholdMarkers": true + "showThresholdMarkers": true, + "sizing": "auto" }, - "pluginVersion": "10.1.0-124233pre", + "pluginVersion": "11.4.0-202090", "targets": [ { "datasource": { @@ -1649,7 +1935,7 @@ "h": 1, "w": 24, "x": 0, - "y": 46 + "y": 54 }, "id": 24, "panels": [], @@ -1702,8 +1988,7 @@ "mode": "percentage", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -1719,7 +2004,7 @@ "h": 7, "w": 15, "x": 0, - "y": 47 + "y": 55 }, "id": 13, "options": { @@ -1767,8 +2052,7 @@ "mode": "percentage", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -1784,7 +2068,7 @@ "h": 7, "w": 3, "x": 15, - "y": 47 + "y": 55 }, "id": 26, "options": { @@ -1863,8 +2147,7 @@ "mode": "percentage", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -1880,7 +2163,7 @@ "h": 7, "w": 15, "x": 0, - "y": 54 + "y": 62 }, "id": 27, "options": { @@ -1928,8 +2211,7 @@ "mode": "percentage", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -1945,7 +2227,7 @@ "h": 7, "w": 3, "x": 15, - "y": 54 + "y": 62 }, "id": 28, "options": { @@ -1984,7 +2266,7 @@ "h": 1, "w": 24, "x": 0, - "y": 61 + "y": 69 }, "id": 11, "panels": [], @@ -2039,8 +2321,7 @@ "mode": "absolute", "steps": [ { - "color": "transparent", - "value": null + "color": "transparent" } ] } @@ -2051,7 +2332,7 @@ "h": 6, "w": 24, "x": 0, - "y": 62 + "y": 70 }, "id": 5, "options": { @@ -2131,8 +2412,7 @@ "mode": "absolute", "steps": [ { - "color": "transparent", - "value": null + "color": "transparent" } ] } @@ -2143,7 +2423,7 @@ "h": 6, "w": 24, "x": 0, - "y": 68 + "y": 76 }, "id": 8, "options": { @@ -2223,8 +2503,7 @@ "mode": "absolute", "steps": [ { - "color": "transparent", - "value": null + "color": "transparent" } ] } @@ -2235,7 +2514,7 @@ "h": 6, "w": 24, "x": 0, - "y": 74 + "y": 82 }, "id": 9, "options": { @@ -2329,9 +2608,9 @@ "type": "timeseries" } ], + "preload": false, "refresh": "", - "schemaVersion": 38, - "style": "dark", + "schemaVersion": 40, "tags": [], "templating": { "list": [] @@ -2343,7 +2622,7 @@ "timepicker": {}, "timezone": "", "title": "TRACEE", - "uid": "64305268-1aa8-4b02-bb2a-c338bb747159", - "version": 1, + "uid": "fe0yczzlewqgwc", + "version": 8, "weekStart": "" }