From 52e30f6c5ea622022b1d500a674e0fea03df12e8 Mon Sep 17 00:00:00 2001 From: aidenvaines-bjss Date: Thu, 4 Sep 2025 15:06:25 +0100 Subject: [PATCH] CCM-11874 Eventbus Dashboard --- .../dashboards/eventbus/eventbus.json | 2129 +++++++++++++++++ 1 file changed, 2129 insertions(+) create mode 100644 infrastructure/terraform/components/obsconfig/dashboards/eventbus/eventbus.json diff --git a/infrastructure/terraform/components/obsconfig/dashboards/eventbus/eventbus.json b/infrastructure/terraform/components/obsconfig/dashboards/eventbus/eventbus.json new file mode 100644 index 00000000..ebadaf62 --- /dev/null +++ b/infrastructure/terraform/components/obsconfig/dashboards/eventbus/eventbus.json @@ -0,0 +1,2129 @@ +{ + "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": [], + "panels": [ + { + "description": "", + "gridPos": { + "h": 2, + "w": 15, + "x": 0, + "y": 0 + }, + "id": 6, + "options": { + "code": { + "language": "plaintext", + "showLineNumbers": false, + "showMiniMap": false + }, + "content": "# EventBus Overview", + "mode": "markdown" + }, + "pluginVersion": "10.4.1", + "transparent": true, + "type": "text" + }, + { + "gridPos": { + "h": 2, + "w": 21, + "x": 0, + "y": 2 + }, + "id": 9, + "options": { + "code": { + "language": "plaintext", + "showLineNumbers": false, + "showMiniMap": false + }, + "content": "## Traffic (Where events go)", + "mode": "markdown" + }, + "pluginVersion": "10.4.1", + "transparent": true, + "type": "text" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasrc}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "displayName": "per min", + "fieldMinMax": false, + "mappings": [], + "noValue": "0", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 2, + "x": 0, + "y": 4 + }, + "id": 26, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "10.4.1", + "targets": [ + { + "accountId": "all", + "datasource": { + "type": "cloudwatch", + "uid": "${datasrc}" + }, + "dimensions": { + "EventBusName": "$dataPlaneBusCsi" + }, + "expression": "", + "hide": false, + "id": "", + "label": "", + "logGroups": [], + "matchExact": false, + "metricEditorMode": 0, + "metricName": "MatchedEvents", + "metricQueryType": 0, + "namespace": "AWS/Events", + "period": "60", + "queryMode": "Metrics", + "refId": "A", + "region": "eu-west-2", + "sql": { + "from": { + "property": { + "name": "AWS/CloudFront", + "type": "string" + }, + "type": "property" + }, + "select": { + "name": "SUM", + "parameters": [ + { + "name": "4xxErrorRate", + "type": "functionParameter" + } + ], + "type": "function" + } + }, + "sqlExpression": "SELECT SUM(\"4xxErrorRate\") FROM \"AWS/CloudFront\"", + "statistic": "Sum" + } + ], + "title": "Data Events", + "type": "stat" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasrc}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "bars", + "fillOpacity": 0, + "gradientMode": "hue", + "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" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 14, + "x": 2, + "y": 4 + }, + "id": 41, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "10.4.1", + "targets": [ + { + "accountId": "all", + "datasource": { + "type": "cloudwatch", + "uid": "${datasrc}" + }, + "dimensions": { + "EventBusName": "nhs-main-events-data-plane", + "RuleName": "nhs-main-events-sms-nudge" + }, + "expression": "", + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "Invocations", + "metricQueryType": 1, + "namespace": "AWS/Events", + "period": "", + "queryMode": "Metrics", + "refId": "A", + "region": "eu-west-2", + "sql": { + "from": { + "property": { + "name": "AWS/Events", + "type": "string" + }, + "type": "property" + }, + "groupBy": { + "expressions": [ + { + "property": { + "name": "RuleName", + "type": "string" + }, + "type": "groupBy" + }, + { + "property": { + "name": "EventBusName", + "type": "string" + }, + "type": "groupBy" + } + ], + "type": "and" + }, + "select": { + "name": "SUM", + "parameters": [ + { + "name": "Invocations", + "type": "functionParameter" + } + ], + "type": "function" + } + }, + "sqlExpression": "SELECT SUM(Invocations) FROM \"AWS/Events\" GROUP BY RuleName, EventBusName", + "statistic": "Sum" + } + ], + "title": "Target deliveries by rule", + "transformations": [ + { + "id": "filterFieldsByName", + "options": { + "byVariable": false, + "include": { + "pattern": "Time|.*nhs-${env}-events-.*" + } + } + }, + { + "id": "renameByRegex", + "options": { + "regex": ".*nhs-.*-events-(.*)", + "renamePattern": "$1" + } + } + ], + "type": "timeseries" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasrc}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "bars", + "fillOpacity": 0, + "gradientMode": "hue", + "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" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 5, + "x": 16, + "y": 4 + }, + "id": 44, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "10.4.1", + "targets": [ + { + "accountId": "all", + "datasource": { + "type": "cloudwatch", + "uid": "${datasrc}" + }, + "dimensions": { + "EventBusName": "nhs-main-events-data-plane", + "RuleName": "nhs-main-events-sms-nudge" + }, + "expression": "", + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "Invocations", + "metricQueryType": 1, + "namespace": "AWS/Events", + "period": "", + "queryMode": "Metrics", + "refId": "A", + "region": "eu-west-2", + "sql": { + "from": { + "property": { + "name": "AWS/Events", + "type": "string" + }, + "type": "property" + }, + "groupBy": { + "expressions": [ + { + "property": { + "name": "RuleName", + "type": "string" + }, + "type": "groupBy" + }, + { + "property": { + "name": "EventBusName", + "type": "string" + }, + "type": "groupBy" + } + ], + "type": "and" + }, + "select": { + "name": "SUM", + "parameters": [ + { + "name": "InvocationAttempts", + "type": "functionParameter" + } + ], + "type": "function" + } + }, + "sqlExpression": "SELECT SUM(InvocationAttempts) FROM \"AWS/Events\" GROUP BY RuleName, EventBusName", + "statistic": "Sum" + } + ], + "title": "Target delivery attempts by rule", + "transformations": [ + { + "id": "filterFieldsByName", + "options": { + "byVariable": false, + "include": { + "pattern": "Time|.*nhs-${env}-events-.*" + } + } + }, + { + "id": "renameByRegex", + "options": { + "regex": "nhs-.*-events-(.*) nhs-.*-events-(.*)-plane", + "renamePattern": "$1 ($2)" + } + } + ], + "type": "timeseries" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasrc}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "displayName": "per min", + "fieldMinMax": false, + "mappings": [], + "noValue": "0", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 2, + "x": 0, + "y": 8 + }, + "id": 40, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "10.4.1", + "targets": [ + { + "accountId": "all", + "datasource": { + "type": "cloudwatch", + "uid": "${datasrc}" + }, + "dimensions": { + "EventBusName": "$controlPlaneBusCsi" + }, + "expression": "", + "hide": false, + "id": "", + "label": "", + "logGroups": [], + "matchExact": false, + "metricEditorMode": 0, + "metricName": "MatchedEvents", + "metricQueryType": 0, + "namespace": "AWS/Events", + "period": "60", + "queryMode": "Metrics", + "refId": "A", + "region": "eu-west-2", + "sql": { + "from": { + "property": { + "name": "AWS/CloudFront", + "type": "string" + }, + "type": "property" + }, + "select": { + "name": "SUM", + "parameters": [ + { + "name": "4xxErrorRate", + "type": "functionParameter" + } + ], + "type": "function" + } + }, + "sqlExpression": "SELECT SUM(\"4xxErrorRate\") FROM \"AWS/CloudFront\"", + "statistic": "Sum" + } + ], + "title": "Control Events", + "type": "stat" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasrc}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "bars", + "fillOpacity": 0, + "gradientMode": "hue", + "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" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 9, + "x": 0, + "y": 12 + }, + "id": 45, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "10.4.1", + "targets": [ + { + "accountId": "all", + "datasource": { + "type": "cloudwatch", + "uid": "${datasrc}" + }, + "dimensions": { + "EventBusName": "nhs-main-events-data-plane", + "RuleName": "nhs-main-events-sms-nudge" + }, + "expression": "", + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "Invocations", + "metricQueryType": 1, + "namespace": "AWS/Events", + "period": "", + "queryMode": "Metrics", + "refId": "A", + "region": "eu-west-2", + "sql": { + "from": { + "property": { + "name": "AWS/Events", + "type": "string" + }, + "type": "property" + }, + "groupBy": { + "expressions": [ + { + "property": { + "name": "RuleName", + "type": "string" + }, + "type": "groupBy" + }, + { + "property": { + "name": "EventBusName", + "type": "string" + }, + "type": "groupBy" + } + ], + "type": "and" + }, + "select": { + "name": "SUM", + "parameters": [ + { + "name": "TriggeredRules", + "type": "functionParameter" + } + ], + "type": "function" + } + }, + "sqlExpression": "SELECT SUM(TriggeredRules) FROM \"AWS/Events\" GROUP BY RuleName, EventBusName", + "statistic": "Sum" + } + ], + "title": "Target deliveries by rule", + "transformations": [ + { + "id": "filterFieldsByName", + "options": { + "byVariable": false, + "include": { + "pattern": "Time|.*nhs-${env}-events-.*" + } + } + }, + { + "id": "renameByRegex", + "options": { + "regex": "nhs-.*-events-(.*) nhs-.*-events-(.*)-plane", + "renamePattern": "$1 ($2)" + } + } + ], + "type": "timeseries" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasrc}" + }, + "fieldConfig": { + "defaults": { + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "scaleDistribution": { + "type": "linear" + } + }, + "fieldMinMax": false + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 7, + "x": 9, + "y": 12 + }, + "id": 47, + "options": { + "calculate": false, + "cellGap": 1, + "color": { + "exponent": 0.5, + "fill": "dark-orange", + "mode": "scheme", + "reverse": false, + "scale": "exponential", + "scheme": "Rainbow", + "steps": 64 + }, + "exemplars": { + "color": "rgba(255,0,255,0.7)" + }, + "filterValues": { + "le": 1e-09 + }, + "legend": { + "show": true + }, + "rowsFrame": { + "layout": "auto" + }, + "tooltip": { + "mode": "single", + "showColorScale": false, + "yHistogram": false + }, + "yAxis": { + "axisPlacement": "left", + "reverse": false + } + }, + "pluginVersion": "10.4.1", + "targets": [ + { + "accountId": "all", + "datasource": { + "type": "cloudwatch", + "uid": "${datasrc}" + }, + "dimensions": { + "EventBusName": "nhs-main-events-data-plane", + "RuleName": "nhs-main-events-sms-nudge" + }, + "expression": "", + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "Invocations", + "metricQueryType": 1, + "namespace": "AWS/Events", + "period": "", + "queryMode": "Metrics", + "refId": "A", + "region": "eu-west-2", + "sql": { + "from": { + "property": { + "name": "AWS/Events", + "type": "string" + }, + "type": "property" + }, + "groupBy": { + "expressions": [ + { + "property": { + "name": "RuleName", + "type": "string" + }, + "type": "groupBy" + }, + { + "property": { + "name": "EventBusName", + "type": "string" + }, + "type": "groupBy" + } + ], + "type": "and" + }, + "select": { + "name": "SUM", + "parameters": [ + { + "name": "TriggeredRules", + "type": "functionParameter" + } + ], + "type": "function" + } + }, + "sqlExpression": "SELECT SUM(TriggeredRules) FROM \"AWS/Events\" GROUP BY RuleName, EventBusName", + "statistic": "Sum" + } + ], + "title": "Target deliveries by rule", + "transformations": [ + { + "id": "filterFieldsByName", + "options": { + "byVariable": false, + "include": { + "pattern": "Time|.*nhs-${env}-events-.*" + } + } + }, + { + "id": "renameByRegex", + "options": { + "regex": "nhs-.*-events-(.*) nhs-.*-events-(.*)-plane", + "renamePattern": "$1 ($2)" + } + }, + { + "id": "histogram", + "options": {} + } + ], + "type": "heatmap" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasrc}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "displayName": "per min", + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 5, + "x": 16, + "y": 12 + }, + "id": 46, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "10.4.1", + "targets": [ + { + "accountId": "all", + "datasource": { + "type": "cloudwatch", + "uid": "${datasrc}" + }, + "dimensions": { + "EventBusName": "nhs-main-events-data-plane", + "RuleName": "nhs-main-events-sms-nudge" + }, + "expression": "", + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "Invocations", + "metricQueryType": 1, + "namespace": "AWS/Events", + "period": "60", + "queryMode": "Metrics", + "refId": "A", + "region": "eu-west-2", + "sql": { + "from": { + "property": { + "name": "AWS/Events", + "type": "string" + }, + "type": "property" + }, + "groupBy": { + "expressions": [ + { + "property": { + "name": "RuleName", + "type": "string" + }, + "type": "groupBy" + }, + { + "property": { + "name": "EventBusName", + "type": "string" + }, + "type": "groupBy" + } + ], + "type": "and" + }, + "select": { + "name": "SUM", + "parameters": [ + { + "name": "TriggeredRules", + "type": "functionParameter" + } + ], + "type": "function" + } + }, + "sqlExpression": "SELECT SUM(TriggeredRules) FROM \"AWS/Events\" GROUP BY RuleName, EventBusName", + "statistic": "Sum" + } + ], + "title": "Target deliveries by rule", + "transformations": [ + { + "id": "filterFieldsByName", + "options": { + "byVariable": false, + "include": { + "pattern": "Time|.*nhs-${env}-events-.*" + } + } + }, + { + "id": "renameByRegex", + "options": { + "regex": "nhs-.*-events-(.*) nhs-.*-events-(.*)-plane", + "renamePattern": "$1 ($2)" + } + } + ], + "type": "stat" + }, + { + "gridPos": { + "h": 2, + "w": 11, + "x": 0, + "y": 20 + }, + "id": 10, + "options": { + "code": { + "language": "plaintext", + "showLineNumbers": false, + "showMiniMap": false + }, + "content": "## Latency", + "mode": "markdown" + }, + "pluginVersion": "10.4.1", + "transparent": true, + "type": "text" + }, + { + "gridPos": { + "h": 2, + "w": 10, + "x": 11, + "y": 20 + }, + "id": 7, + "options": { + "code": { + "language": "plaintext", + "showLineNumbers": false, + "showMiniMap": false + }, + "content": "## Errors", + "mode": "markdown" + }, + "pluginVersion": "10.4.1", + "transparent": true, + "type": "text" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasrc}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "bars", + "fillOpacity": 0, + "gradientMode": "hue", + "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" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "dtdurationms" + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 11, + "x": 0, + "y": 22 + }, + "id": 49, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "10.4.1", + "targets": [ + { + "accountId": "all", + "datasource": { + "type": "cloudwatch", + "uid": "${datasrc}" + }, + "dimensions": { + "EventBusName": "nhs-main-events-data-plane", + "RuleName": "nhs-main-events-sms-nudge" + }, + "expression": "", + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "Invocations", + "metricQueryType": 1, + "namespace": "AWS/Events", + "period": "60", + "queryMode": "Metrics", + "refId": "A", + "region": "eu-west-2", + "sql": { + "from": { + "property": { + "name": "AWS/Events", + "type": "string" + }, + "type": "property" + }, + "select": { + "name": "SUM", + "parameters": [ + { + "name": "PutEventsLatency", + "type": "functionParameter" + } + ], + "type": "function" + } + }, + "sqlExpression": "SELECT SUM(PutEventsLatency) FROM \"AWS/Events\"", + "statistic": "Sum" + } + ], + "title": "Put event latency", + "transformations": [ + { + "disabled": true, + "id": "filterFieldsByName", + "options": { + "byVariable": false, + "include": { + "pattern": "Time|.*nhs-${env}-events-.*" + } + } + }, + { + "disabled": true, + "id": "renameByRegex", + "options": { + "regex": ".*nhs-.*-events-(.*)", + "renamePattern": "$1" + } + } + ], + "type": "timeseries" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasrc}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "noValue": "0", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 1 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 3, + "x": 11, + "y": 22 + }, + "id": 50, + "options": { + "minVizHeight": 75, + "minVizWidth": 75, + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "sum" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true, + "sizing": "auto" + }, + "pluginVersion": "10.4.1", + "targets": [ + { + "accountId": "all", + "datasource": { + "type": "cloudwatch", + "uid": "${datasrc}" + }, + "dimensions": {}, + "expression": "", + "hide": true, + "id": "", + "label": "", + "logGroups": [], + "matchExact": false, + "metricEditorMode": 0, + "metricName": "InvocationAttempts", + "metricQueryType": 0, + "namespace": "AWS/Events", + "period": "60", + "queryMode": "Metrics", + "refId": "A", + "region": "eu-west-2", + "sql": { + "from": { + "property": { + "name": "AWS/Events", + "type": "string" + }, + "type": "property" + }, + "groupBy": { + "expressions": [ + { + "property": { + "name": "EventBusName", + "type": "string" + }, + "type": "groupBy" + } + ], + "type": "and" + }, + "select": { + "name": "SUM", + "parameters": [ + { + "name": "FailedInvocations", + "type": "functionParameter" + } + ], + "type": "function" + } + }, + "sqlExpression": "SELECT SUM(FailedInvocations) FROM \"AWS/Events\" GROUP BY EventBusName", + "statistic": "Sum" + }, + { + "accountId": "all", + "datasource": { + "type": "cloudwatch", + "uid": "${datasrc}" + }, + "dimensions": {}, + "expression": "", + "hide": true, + "id": "", + "label": "", + "logGroups": [], + "matchExact": false, + "metricEditorMode": 0, + "metricName": "SuccessfulInvocationAttempts", + "metricQueryType": 0, + "namespace": "AWS/Events", + "period": "60", + "queryMode": "Metrics", + "refId": "B", + "region": "eu-west-2", + "sql": { + "from": { + "property": { + "name": "AWS/Events", + "type": "string" + }, + "type": "property" + }, + "groupBy": { + "expressions": [ + { + "property": { + "name": "EventBusName", + "type": "string" + }, + "type": "groupBy" + } + ], + "type": "and" + }, + "select": { + "name": "SUM", + "parameters": [ + { + "name": "FailedInvocations", + "type": "functionParameter" + } + ], + "type": "function" + } + }, + "sqlExpression": "SELECT SUM(FailedInvocations) FROM \"AWS/Events\" GROUP BY EventBusName", + "statistic": "Sum" + }, + { + "datasource": { + "name": "Expression", + "type": "__expr__", + "uid": "__expr__" + }, + "expression": "$A-$B", + "hide": false, + "refId": "C", + "type": "math" + } + ], + "title": "Attempt Failures", + "transformations": [ + { + "id": "filterFieldsByName", + "options": { + "byVariable": false, + "include": { + "pattern": "Time|.*nhs-${env}-events-.*" + } + } + }, + { + "id": "renameByRegex", + "options": { + "regex": ".*nhs-.*-events-(.*)", + "renamePattern": "$1" + } + } + ], + "type": "gauge" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasrc}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "noValue": "0", + "thresholds": { + "mode": "percentage", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "#EAB839", + "value": 90 + }, + { + "color": "green", + "value": 100 + } + ] + }, + "unit": "percent" + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 3, + "x": 14, + "y": 22 + }, + "id": 51, + "options": { + "minVizHeight": 75, + "minVizWidth": 75, + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "sum" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true, + "sizing": "auto" + }, + "pluginVersion": "10.4.1", + "targets": [ + { + "accountId": "all", + "datasource": { + "type": "cloudwatch", + "uid": "${datasrc}" + }, + "dimensions": { + "EventBusName": "$dataPlaneBusCsi" + }, + "expression": "", + "hide": true, + "id": "", + "label": "", + "logGroups": [], + "matchExact": false, + "metricEditorMode": 0, + "metricName": "InvocationAttempts", + "metricQueryType": 0, + "namespace": "AWS/Events", + "period": "60", + "queryMode": "Metrics", + "refId": "A", + "region": "eu-west-2", + "sql": { + "from": { + "property": { + "name": "AWS/Events", + "type": "string" + }, + "type": "property" + }, + "groupBy": { + "expressions": [ + { + "property": { + "name": "EventBusName", + "type": "string" + }, + "type": "groupBy" + } + ], + "type": "and" + }, + "select": { + "name": "SUM", + "parameters": [ + { + "name": "FailedInvocations", + "type": "functionParameter" + } + ], + "type": "function" + } + }, + "sqlExpression": "SELECT SUM(FailedInvocations) FROM \"AWS/Events\" GROUP BY EventBusName", + "statistic": "Sum" + }, + { + "datasource": { + "name": "Expression", + "type": "__expr__", + "uid": "__expr__" + }, + "expression": "A", + "hide": true, + "reducer": "sum", + "refId": "C", + "settings": { + "mode": "replaceNN", + "replaceWithValue": 0 + }, + "type": "reduce" + }, + { + "accountId": "all", + "datasource": { + "type": "cloudwatch", + "uid": "${datasrc}" + }, + "dimensions": { + "EventBusName": "$controlPlaneBusCsi" + }, + "expression": "", + "hide": true, + "id": "", + "label": "", + "logGroups": [], + "matchExact": false, + "metricEditorMode": 0, + "metricName": "InvocationAttempts", + "metricQueryType": 0, + "namespace": "AWS/Events", + "period": "60", + "queryMode": "Metrics", + "refId": "B", + "region": "eu-west-2", + "sql": { + "from": { + "property": { + "name": "AWS/Events", + "type": "string" + }, + "type": "property" + }, + "groupBy": { + "expressions": [ + { + "property": { + "name": "EventBusName", + "type": "string" + }, + "type": "groupBy" + } + ], + "type": "and" + }, + "select": { + "name": "SUM", + "parameters": [ + { + "name": "FailedInvocations", + "type": "functionParameter" + } + ], + "type": "function" + } + }, + "sqlExpression": "SELECT SUM(FailedInvocations) FROM \"AWS/Events\" GROUP BY EventBusName", + "statistic": "Maximum" + }, + { + "datasource": { + "name": "Expression", + "type": "__expr__", + "uid": "__expr__" + }, + "expression": "B", + "hide": true, + "reducer": "sum", + "refId": "D", + "settings": { + "mode": "replaceNN", + "replaceWithValue": 0 + }, + "type": "reduce" + }, + { + "accountId": "all", + "datasource": { + "type": "cloudwatch", + "uid": "${datasrc}" + }, + "dimensions": { + "EventBusName": "$dataPlaneBusCsi" + }, + "expression": "", + "hide": true, + "id": "", + "label": "", + "logGroups": [], + "matchExact": false, + "metricEditorMode": 0, + "metricName": "SuccessfulInvocationAttempts", + "metricQueryType": 0, + "namespace": "AWS/Events", + "period": "60", + "queryMode": "Metrics", + "refId": "A2", + "region": "eu-west-2", + "sql": { + "from": { + "property": { + "name": "AWS/Events", + "type": "string" + }, + "type": "property" + }, + "groupBy": { + "expressions": [ + { + "property": { + "name": "EventBusName", + "type": "string" + }, + "type": "groupBy" + } + ], + "type": "and" + }, + "select": { + "name": "SUM", + "parameters": [ + { + "name": "FailedInvocations", + "type": "functionParameter" + } + ], + "type": "function" + } + }, + "sqlExpression": "SELECT SUM(FailedInvocations) FROM \"AWS/Events\" GROUP BY EventBusName", + "statistic": "Sum" + }, + { + "datasource": { + "name": "Expression", + "type": "__expr__", + "uid": "__expr__" + }, + "expression": "A2", + "hide": true, + "reducer": "sum", + "refId": "C2", + "settings": { + "mode": "replaceNN", + "replaceWithValue": 0 + }, + "type": "reduce" + }, + { + "accountId": "all", + "datasource": { + "type": "cloudwatch", + "uid": "${datasrc}" + }, + "dimensions": { + "EventBusName": "$controlPlaneBusCsi" + }, + "expression": "", + "hide": true, + "id": "", + "label": "", + "logGroups": [], + "matchExact": false, + "metricEditorMode": 0, + "metricName": "SuccessfulInvocationAttempts", + "metricQueryType": 0, + "namespace": "AWS/Events", + "period": "60", + "queryMode": "Metrics", + "refId": "B2", + "region": "eu-west-2", + "sql": { + "from": { + "property": { + "name": "AWS/Events", + "type": "string" + }, + "type": "property" + }, + "groupBy": { + "expressions": [ + { + "property": { + "name": "EventBusName", + "type": "string" + }, + "type": "groupBy" + } + ], + "type": "and" + }, + "select": { + "name": "SUM", + "parameters": [ + { + "name": "FailedInvocations", + "type": "functionParameter" + } + ], + "type": "function" + } + }, + "sqlExpression": "SELECT SUM(FailedInvocations) FROM \"AWS/Events\" GROUP BY EventBusName", + "statistic": "Sum" + }, + { + "datasource": { + "name": "Expression", + "type": "__expr__", + "uid": "__expr__" + }, + "expression": "B2", + "hide": true, + "reducer": "sum", + "refId": "D2", + "settings": { + "mode": "replaceNN", + "replaceWithValue": 0 + }, + "type": "reduce" + }, + { + "datasource": { + "name": "Expression", + "type": "__expr__", + "uid": "__expr__" + }, + "expression": "100*($C+$D)/($C2+$D2)", + "hide": false, + "refId": "E", + "type": "math" + } + ], + "title": "Attempt Success Rate", + "transformations": [ + { + "disabled": true, + "id": "filterFieldsByName", + "options": { + "byVariable": false, + "include": { + "pattern": "Time|.*nhs-${env}-events-.*" + } + } + }, + { + "disabled": true, + "id": "renameByRegex", + "options": { + "regex": ".*nhs-.*-events-(.*)", + "renamePattern": "$1" + } + } + ], + "type": "gauge" + }, + { + "gridPos": { + "h": 2, + "w": 21, + "x": 0, + "y": 31 + }, + "id": 52, + "options": { + "code": { + "language": "plaintext", + "showLineNumbers": false, + "showMiniMap": false + }, + "content": "## Saturation and Throughput", + "mode": "markdown" + }, + "pluginVersion": "10.4.1", + "transparent": true, + "type": "text" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasrc}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "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 + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "noValue": "0", + "thresholds": { + "mode": "percentage", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "#EAB839", + "value": 90 + }, + { + "color": "green", + "value": 100 + } + ] + }, + "unit": "ms" + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 11, + "x": 0, + "y": 33 + }, + "id": 53, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "10.4.1", + "targets": [ + { + "accountId": "all", + "datasource": { + "type": "cloudwatch", + "uid": "${datasrc}" + }, + "dimensions": { + "EventBusName": "$dataPlaneBusCsi" + }, + "expression": "", + "hide": false, + "id": "", + "label": "", + "logGroups": [], + "matchExact": false, + "metricEditorMode": 0, + "metricName": "InvocationAttempts", + "metricQueryType": 1, + "namespace": "AWS/Events", + "period": "60", + "queryMode": "Metrics", + "refId": "A", + "region": "eu-west-2", + "sql": { + "from": { + "property": { + "name": "AWS/Events", + "type": "string" + }, + "type": "property" + }, + "groupBy": { + "expressions": [ + { + "property": { + "name": "EventBusName", + "type": "string" + }, + "type": "groupBy" + } + ], + "type": "and" + }, + "orderBy": { + "name": "SUM", + "type": "function" + }, + "select": { + "name": "SUM", + "parameters": [ + { + "name": "InvocationAttempts", + "type": "functionParameter" + } + ], + "type": "function" + } + }, + "sqlExpression": "SELECT SUM(InvocationAttempts) FROM \"AWS/Events\" GROUP BY EventBusName ORDER BY SUM() ASC", + "statistic": "Sum" + } + ], + "title": "Attempts per second", + "transformations": [ + { + "id": "filterFieldsByName", + "options": { + "byVariable": false, + "include": { + "pattern": "Time|.*nhs-${env}-events-.*" + } + } + }, + { + "id": "renameByRegex", + "options": { + "regex": ".*nhs-.*-events-(.*)", + "renamePattern": "$1" + } + } + ], + "type": "timeseries" + } + ], + "refresh": "", + "schemaVersion": 39, + "tags": [], + "templating": { + "list": [ + { + "current": { + "selected": false, + "text": "nhs-main-obsconfig-cloudwatch", + "value": "desw1wljo2yo0d" + }, + "hide": 2, + "includeAll": false, + "label": "Datasource", + "multi": false, + "name": "datasrc", + "options": [], + "query": "cloudwatch", + "queryValue": "", + "refresh": 1, + "regex": ".*obsconfig-cloudwatch", + "skipUrlSync": false, + "type": "datasource" + }, + { + "current": { + "selected": true, + "text": "main", + "value": "main" + }, + "hide": 0, + "label": "Environment", + "name": "env", + "options": [ + { + "selected": true, + "text": "main", + "value": "main" + } + ], + "query": "main", + "skipUrlSync": false, + "type": "textbox" + }, + { + "current": { + "selected": false, + "text": "nhs-main-events-data-plane", + "value": "nhs-main-events-data-plane" + }, + "description": "nhs-main-events-data-plane", + "hide": 2, + "includeAll": false, + "label": "Data Plane Bus CSI", + "multi": false, + "name": "dataPlaneBusCsi", + "options": [ + { + "selected": true, + "text": "nhs-main-events-data-plane", + "value": "nhs-main-events-data-plane" + } + ], + "query": "nhs-${env}-events-data-plane", + "skipUrlSync": false, + "type": "custom" + }, + { + "current": { + "selected": false, + "text": "nhs-main-events-control-plane", + "value": "nhs-main-events-control-plane" + }, + "description": "nhs-main-events-control-plane", + "hide": 2, + "includeAll": false, + "label": "Control Plane Bus CSI", + "multi": false, + "name": "controlPlaneBusCsi", + "options": [ + { + "selected": true, + "text": "nhs-main-events-control-plane", + "value": "nhs-main-events-control-plane" + } + ], + "query": "nhs-${env}-events-control-plane", + "skipUrlSync": false, + "type": "custom" + } + ] + }, + "time": { + "from": "now-6h", + "to": "now" + }, + "timepicker": {}, + "timezone": "browser", + "title": "EventBus Overview", + "weekStart": "" +}