From 895c22a627094aef3b8871483342680b124e7b25 Mon Sep 17 00:00:00 2001 From: "Eduardo Ramos Testillano (ert)" Date: Sun, 13 Aug 2023 20:43:53 +0200 Subject: [PATCH] Update grafana dashboard --- .../provisioning/dashboards/h2agent.json | 623 ++++++++++++++++-- 1 file changed, 580 insertions(+), 43 deletions(-) diff --git a/tools/grafana/grafana/provisioning/dashboards/h2agent.json b/tools/grafana/grafana/provisioning/dashboards/h2agent.json index 8ecb57d..9a02cd3 100644 --- a/tools/grafana/grafana/provisioning/dashboards/h2agent.json +++ b/tools/grafana/grafana/provisioning/dashboards/h2agent.json @@ -25,12 +25,15 @@ "fiscalYearStartMonth": 0, "graphTooltip": 0, "id": 1, - "iteration": 1691856550095, "links": [], "liveNow": false, "panels": [ { "collapsed": false, + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, "gridPos": { "h": 1, "w": 24, @@ -39,10 +42,23 @@ }, "id": 12, "panels": [], + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "refId": "A" + } + ], "title": "H2AGENT Process", "type": "row" }, { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, "description": "Accepted requests are all except: method not allowed, service unavailable, wrong api name or version.\n* processed request: could be provisioned or not", "fieldConfig": { "defaults": { @@ -51,6 +67,8 @@ "mode": "palette-classic" }, "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, @@ -200,6 +218,10 @@ "type": "timeseries" }, { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, "description": "Responses sent by the mock. Also series for purged contexts.", "fieldConfig": { "defaults": { @@ -207,6 +229,8 @@ "mode": "palette-classic" }, "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, @@ -325,6 +349,10 @@ "type": "timeseries" }, { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, "description": "File system operations managed by the process.", "fieldConfig": { "defaults": { @@ -332,6 +360,8 @@ "mode": "palette-classic" }, "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, @@ -375,7 +405,34 @@ }, "unit": "ops" }, - "overrides": [] + "overrides": [ + { + "__systemRef": "hideSeriesFrom", + "matcher": { + "id": "byNames", + "options": { + "mode": "exclude", + "names": [ + "book-store close ", + "book-store open ", + "book-store delayedClose " + ], + "prefix": "All except:", + "readOnly": true + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": false, + "tooltip": false, + "viz": true + } + } + ] + } + ] }, "gridPos": { "h": 8, @@ -420,6 +477,10 @@ "type": "timeseries" }, { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, "description": "UDP socket operations managed by the process.", "fieldConfig": { "defaults": { @@ -427,6 +488,8 @@ "mode": "palette-classic" }, "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, @@ -470,32 +533,7 @@ }, "unit": "ops" }, - "overrides": [ - { - "__systemRef": "hideSeriesFrom", - "matcher": { - "id": "byNames", - "options": { - "mode": "exclude", - "names": [ - "h2agent_file_system_operations_counter{instance=\"h2agent:8080\", job=\"h2agent\", operation=\"write\", source=\"h2agent_file_system\"}" - ], - "prefix": "All except:", - "readOnly": true - } - }, - "properties": [ - { - "id": "custom.hideFrom", - "value": { - "legend": false, - "tooltip": false, - "viz": true - } - } - ] - } - ] + "overrides": [] }, "gridPos": { "h": 8, @@ -540,6 +578,10 @@ "type": "timeseries" }, { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, "description": "h2agent traffic server: responses delays driven by mock.", "fieldConfig": { "defaults": { @@ -584,14 +626,14 @@ "showThresholdLabels": false, "showThresholdMarkers": true }, - "pluginVersion": "8.4.6", + "pluginVersion": "10.0.3", "targets": [ { "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, - "editorMode": "builder", + "editorMode": "code", "exemplar": true, "expr": "sum(rate(h2agent_traffic_server_responses_delay_seconds_gauge[$rate_interval]))", "instant": false, @@ -605,6 +647,10 @@ "type": "gauge" }, { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, "description": "Response delay (latency)", "fieldConfig": { "defaults": { @@ -612,6 +658,8 @@ "mode": "palette-classic" }, "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, @@ -701,7 +749,11 @@ "type": "timeseries" }, { - "description": "h2agent traffic server: size for messages received and sent.7", + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "description": "h2agent traffic server: size for messages received and sent", "fieldConfig": { "defaults": { "color": { @@ -740,7 +792,7 @@ "showThresholdLabels": false, "showThresholdMarkers": true }, - "pluginVersion": "8.4.6", + "pluginVersion": "10.0.3", "targets": [ { "datasource": { @@ -748,10 +800,9 @@ "uid": "PBFA97CFB590B2093" }, "editorMode": "builder", - "exemplar": true, "expr": "h2agent_traffic_server_received_messages_size_bytes_gauge", + "hide": false, "instant": false, - "interval": "", "legendFormat": "receptions", "range": true, "refId": "messages received" @@ -761,13 +812,11 @@ "type": "prometheus", "uid": "PBFA97CFB590B2093" }, - "editorMode": "builder", - "exemplar": true, + "editorMode": "code", "expr": "h2agent_traffic_server_sent_messages_size_bytes_gauge", "hide": false, "instant": false, - "interval": "", - "legendFormat": "sendings", + "legendFormat": "transmissions", "range": true, "refId": "messages sent" } @@ -776,6 +825,10 @@ "type": "gauge" }, { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, "gridPos": { "h": 1, "w": 24, @@ -783,12 +836,496 @@ "y": 25 }, "id": 13, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "refId": "A" + } + ], "title": "UDP SERVER H2CLIENT Process", "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "description": "Requests sent by the client mock.\nUnsents (errors) are also visualized.", + "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 + }, + "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": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "reqps" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 26 + }, + "id": 14, + "options": { + "legend": { + "calcs": [ + "min", + "mean", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "editorMode": "code", + "expr": "rate(udp_server_h2client_observed_resquests_sents_counter[$rate_interval]) > 0", + "instant": false, + "legendFormat": "{{source}} sent {{method}}", + "range": true, + "refId": "sents" + }, + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "editorMode": "code", + "expr": "rate(udp_server_h2client_observed_resquests_unsent_counter[$rate_interval]) > 0", + "hide": false, + "instant": false, + "legendFormat": "{{source}} unsent {{method}}", + "range": true, + "refId": "unsents" + } + ], + "title": "Requests sent [traffic client]", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "description": "Requests sent by the client mock.\nTimeouts (errors) are also visualized.", + "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 + }, + "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": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "reqps" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 26 + }, + "id": 15, + "options": { + "legend": { + "calcs": [ + "min", + "mean", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "editorMode": "code", + "expr": "rate(udp_server_h2client_observed_responses_received_counter[$rate_interval]) > 0", + "hide": false, + "instant": false, + "legendFormat": "{{source}} {{method}} response [{{status_code}}]", + "range": true, + "refId": "responses" + }, + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "editorMode": "code", + "expr": "rate(udp_server_h2client_observed_responses_timedout_counter[$rate_interval]) > 0", + "hide": false, + "instant": false, + "legendFormat": "{{source}} {{method}} timeout", + "range": true, + "refId": "timeouts" + } + ], + "title": "Responses received [traffic client]", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "description": "udp-server-h2client traffic client: responses delays for the requests launched.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "displayName": "instant delay", + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 0.001 + } + ] + }, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 4, + "x": 0, + "y": 34 + }, + "id": 17, + "options": { + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "editorMode": "builder", + "exemplar": true, + "expr": "sum(rate(udp_server_h2client_responses_delay_seconds_gauge[$rate_interval]))", + "instant": false, + "interval": "", + "legendFormat": "", + "range": true, + "refId": "A" + } + ], + "title": "Responses delay gauge [traffic client]", + "type": "gauge" + }, + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "description": "Response delay (latency)", + "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 + }, + "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": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 4, + "y": 34 + }, + "id": 16, + "options": { + "legend": { + "calcs": [ + "min", + "mean", + "max" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "editorMode": "code", + "exemplar": true, + "expr": "rate(udp_server_h2client_responses_delay_seconds_sum[$rate_interval]) / rate(udp_server_h2client_responses_delay_seconds_count[$rate_interval])", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "{{source}} latency", + "range": true, + "refId": "latency" + } + ], + "title": "Response delay [traffic client]", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "description": "udp-server-h2client traffic client: size for messages received and sent", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "blue", + "value": null + } + ] + }, + "unit": "bytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 8, + "x": 16, + "y": 34 + }, + "id": 18, + "options": { + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "editorMode": "code", + "exemplar": true, + "expr": "udp_server_h2client_received_messages_size_bytes_gauge", + "instant": false, + "interval": "", + "legendFormat": "receptions", + "range": true, + "refId": "messages received" + }, + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "editorMode": "code", + "exemplar": true, + "expr": "udp_server_h2client_sent_messages_size_bytes_gauge\n", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "transmissions", + "range": true, + "refId": "messages sent" + } + ], + "title": "Message sizes [traffic client]", + "type": "gauge" } ], - "refresh": "10s", - "schemaVersion": 35, + "refresh": false, + "schemaVersion": 38, "style": "dark", "tags": [], "templating": { @@ -875,8 +1412,8 @@ ] }, "time": { - "from": "now-5m", - "to": "now" + "from": "2023-08-13T17:20:43.292Z", + "to": "2023-08-13T17:22:33.318Z" }, "timepicker": {}, "timezone": "", @@ -884,4 +1421,4 @@ "uid": "f5dfd490-924e-4a81-8fca-46d7f4d94662", "version": 1, "weekStart": "" -} +} \ No newline at end of file