From eb6fb91c3d451a7723840a1a9ad74d50ed21daac Mon Sep 17 00:00:00 2001 From: Bernd Brandl Date: Mon, 20 Jun 2022 10:27:54 +0200 Subject: [PATCH 1/4] Test with custom dashboard/rtchandler-poc.json --- .../dashboard/dashboard.yaml | 8 +- .../dashboard/rtchandler-poc.json | 639 ++++++++++++++++++ 2 files changed, 643 insertions(+), 4 deletions(-) create mode 100644 BMW-Dynatrace-config/CD_VDLM_rtchandler/dashboard/rtchandler-poc.json diff --git a/BMW-Dynatrace-config/CD_VDLM_rtchandler/dashboard/dashboard.yaml b/BMW-Dynatrace-config/CD_VDLM_rtchandler/dashboard/dashboard.yaml index e40e8106..218f4d38 100644 --- a/BMW-Dynatrace-config/CD_VDLM_rtchandler/dashboard/dashboard.yaml +++ b/BMW-Dynatrace-config/CD_VDLM_rtchandler/dashboard/dashboard.yaml @@ -1,8 +1,8 @@ config: -- CDnewComponentTag-PROD: default.json -- CDnewComponentTag-E2E: default.json -- CDnewComponentTag-INT: default.json -- CDnewComponentTag-TEST: default.json +- CDnewComponentTag-PROD: rtchandler-poc.json +- CDnewComponentTag-E2E: rtchandler-poc.json +- CDnewComponentTag-INT: rtchandler-poc.json +- CDnewComponentTag-TEST: rtchandler-poc.json #PROD dashboards for EMEA/NA/CN Prod CDnewComponentTag-PROD: diff --git a/BMW-Dynatrace-config/CD_VDLM_rtchandler/dashboard/rtchandler-poc.json b/BMW-Dynatrace-config/CD_VDLM_rtchandler/dashboard/rtchandler-poc.json new file mode 100644 index 00000000..9745a982 --- /dev/null +++ b/BMW-Dynatrace-config/CD_VDLM_rtchandler/dashboard/rtchandler-poc.json @@ -0,0 +1,639 @@ +{ + "metadata": { + "configurationVersions": [ + 6 + ], + "clusterVersion": "1.243.146.20220615-081647" + }, + "dashboardMetadata": { + "name": "{{.name}}", + "shared": true, + "owner": "Bernd.Brandl@bmw.de", + "dashboardFilter": { + "timeframe": "-24h to now" + }, + "tags": [ + "{{.mzName}}" + ], + "popularity": 1 + }, + "tiles": [ + { + "name": "Custom chart", + "tileType": "CUSTOM_CHARTING", + "configured": true, + "bounds": { + "top": 228, + "left": 38, + "width": 1064, + "height": 304 + }, + "tileFilter": { + "managementZone": { + "id": "{{.mzId}}", + "name": "{{.mzName}}" + } + }, + "filterConfig": { + "type": "MIXED", + "customName": "Failure rate (HTTP 4xx/5xx errors)", + "defaultName": "Custom chart", + "chartConfig": { + "legendShown": true, + "type": "TIMESERIES", + "series": [ + { + "metric": "builtin:service.errors.fourxx.rate", + "aggregation": "AVG", + "type": "BAR", + "entityType": "SERVICE", + "dimensions": [], + "sortAscending": false, + "sortColumn": false, + "aggregationRate": "TOTAL" + }, + { + "metric": "builtin:service.errors.fivexx.rate", + "aggregation": "AVG", + "type": "BAR", + "entityType": "SERVICE", + "dimensions": [], + "sortAscending": false, + "sortColumn": true, + "aggregationRate": "TOTAL" + } + ], + "resultMetadata": { + "nullbuiltin:service.errors.fivexx.rate|AVG|TOTAL|BAR|SERVICE": { + "lastModified": 1617956393463, + "customColor": "#ff0000" + }, + "nullbuiltin:service.errors.fourxx.rate|AVG|TOTAL|BAR|SERVICE": { + "lastModified": 1617956441725, + "customColor": "#fff29a" + } + } + }, + "filtersPerEntityType": { + "SERVICE": { + "AUTO_TAGS": [ + "Environment:PROD" + ] + } + } + } + }, + { + "name": "Problems", + "tileType": "OPEN_PROBLEMS", + "configured": true, + "bounds": { + "top": 38, + "left": 950, + "width": 152, + "height": 152 + }, + "tileFilter": { + "managementZone": { + "id": "{{.mzId}}", + "name": "{{.mzName}}" + } + } + }, + { + "name": "Overall Health", + "tileType": "HEADER", + "configured": true, + "bounds": { + "top": 0, + "left": 38, + "width": 1064, + "height": 38 + }, + "tileFilter": { + "managementZone": { + "id": "{{.mzId}}", + "name": "{{.mzName}}" + } + } + }, + { + "name": "Markdown", + "tileType": "MARKDOWN", + "configured": true, + "bounds": { + "top": 532, + "left": 38, + "width": 1064, + "height": 38 + }, + "tileFilter": {}, + "markdown": "---\n" + }, + { + "name": "Custom chart", + "tileType": "CUSTOM_CHARTING", + "configured": true, + "bounds": { + "top": 570, + "left": 38, + "width": 1064, + "height": 304 + }, + "tileFilter": { + "managementZone": { + "id": "{{.mzId}}", + "name": "{{.mzName}}" + } + }, + "filterConfig": { + "type": "MIXED", + "customName": "Response time, Request Count and Number of Errors", + "defaultName": "Custom chart", + "chartConfig": { + "legendShown": true, + "type": "TIMESERIES", + "series": [ + { + "metric": "builtin:service.response.time", + "aggregation": "AVG", + "type": "LINE", + "entityType": "SERVICE", + "dimensions": [], + "sortAscending": false, + "sortColumn": false, + "aggregationRate": "TOTAL" + }, + { + "metric": "builtin:service.requestCount.total", + "aggregation": "NONE", + "type": "BAR", + "entityType": "SERVICE", + "dimensions": [], + "sortAscending": false, + "sortColumn": false, + "aggregationRate": "TOTAL" + }, + { + "metric": "builtin:service.errors.total.count", + "aggregation": "NONE", + "type": "BAR", + "entityType": "SERVICE", + "dimensions": [], + "sortAscending": false, + "sortColumn": true, + "aggregationRate": "TOTAL" + } + ], + "resultMetadata": { + "nullbuiltin:service.requestCount.total|NONE|TOTAL|BAR|SERVICE": { + "lastModified": 1595275720776, + "customColor": "#008cdb" + }, + "nullbuiltin:service.errors.total.count|NONE|TOTAL|BAR|SERVICE": { + "lastModified": 1595275955999, + "customColor": "#ef651f" + }, + "nullbuiltin:service.response.time|AVG|TOTAL|LINE|SERVICE": { + "lastModified": 1595275686773, + "customColor": "#b4e5f9" + } + } + }, + "filtersPerEntityType": { + "SERVICE": { + "AUTO_TAGS": [ + "Environment:PROD" + ] + } + } + } + }, + { + "name": "Markdown", + "tileType": "MARKDOWN", + "configured": true, + "bounds": { + "top": 190, + "left": 38, + "width": 1064, + "height": 38 + }, + "tileFilter": {}, + "markdown": "---\n" + }, + { + "name": "", + "tileType": "DATABASES_OVERVIEW", + "configured": true, + "bounds": { + "top": 38, + "left": 646, + "width": 190, + "height": 152 + }, + "tileFilter": { + "managementZone": { + "id": "{{.mzId}}", + "name": "{{.mzName}}" + } + }, + "filterConfig": { + "type": "DATABASE", + "customName": "Databases", + "defaultName": "Databases", + "chartConfig": { + "legendShown": true, + "type": "TIMESERIES", + "series": [], + "resultMetadata": {} + }, + "filtersPerEntityType": { + "DATABASE": { + "AUTO_TAGS": [ + "Environment:PROD" + ] + } + } + }, + "chartVisible": true + }, + { + "name": "", + "tileType": "SERVICES", + "configured": true, + "bounds": { + "top": 38, + "left": 342, + "width": 190, + "height": 152 + }, + "tileFilter": { + "managementZone": { + "id": "{{.mzId}}", + "name": "{{.mzName}}" + } + }, + "filterConfig": { + "type": "SERVICE", + "customName": "Services", + "defaultName": "Services", + "chartConfig": { + "legendShown": true, + "type": "TIMESERIES", + "series": [], + "resultMetadata": {} + }, + "filtersPerEntityType": { + "SERVICE": { + "AUTO_TAGS": [ + "Environment:PROD" + ] + } + } + }, + "chartVisible": true + }, + { + "name": "", + "tileType": "HOSTS", + "configured": true, + "bounds": { + "top": 38, + "left": 38, + "width": 190, + "height": 152 + }, + "tileFilter": { + "managementZone": { + "id": "{{.mzId}}", + "name": "{{.mzName}}" + } + }, + "filterConfig": { + "type": "HOST", + "customName": "Hosts", + "defaultName": "Hosts", + "chartConfig": { + "legendShown": true, + "type": "TIMESERIES", + "series": [], + "resultMetadata": {} + }, + "filtersPerEntityType": { + "HOST": { + "AUTO_TAGS": [ + "Environment:PROD" + ] + } + } + }, + "chartVisible": true + }, + { + "name": "List and count of messageProp", + "tileType": "DATA_EXPLORER", + "configured": true, + "bounds": { + "top": 912, + "left": 570, + "width": 532, + "height": 342 + }, + "tileFilter": {}, + "customName": "Table", + "queries": [ + { + "id": "A", + "metric": "calc:service.vdlm_rtchandler_messageprops", + "spaceAggregation": "SUM", + "timeAggregation": "DEFAULT", + "splitBy": [ + "dt.entity.service", + "Dimension" + ], + "sortBy": "DESC", + "filterBy": { + "nestedFilters": [], + "criteria": [] + }, + "limit": 100, + "enabled": true + } + ], + "visualConfig": { + "type": "TABLE", + "global": { + "hideLegend": false + }, + "rules": [ + { + "matcher": "A:", + "unitTransform": "", + "valueFormat": "auto", + "properties": { + "color": "DEFAULT", + "seriesType": "LINE", + "alias": "Count of messageProps" + }, + "seriesOverrides": [] + } + ], + "axes": { + "xAxis": { + "displayName": "", + "visible": true + }, + "yAxes": [] + }, + "heatmapSettings": { + "yAxis": "VALUE" + }, + "thresholds": [ + { + "axisTarget": "LEFT", + "columnId": "VDLM_rtchandler_messageProps", + "rules": [ + { + "color": "#7dc540" + }, + { + "color": "#f5d30f" + }, + { + "color": "#dc172a" + } + ], + "queryId": "A", + "visible": true + } + ], + "tableSettings": { + "isThresholdBackgroundAppliedToCell": false + }, + "graphChartSettings": { + "connectNulls": false + }, + "honeycombSettings": { + "showHive": true, + "showLegend": true, + "showLabels": false + } + }, + "queriesSettings": { + "resolution": "" + } + }, + { + "name": "NGTP IN/OUT Status Count", + "tileType": "DATA_EXPLORER", + "configured": true, + "bounds": { + "top": 0, + "left": 1140, + "width": 418, + "height": 418 + }, + "tileFilter": {}, + "customName": "Data explorer results", + "queries": [ + { + "id": "A", + "metric": "calc:service.vdlm_rtchandler_ngtp_status", + "spaceAggregation": "SUM", + "timeAggregation": "DEFAULT", + "splitBy": [ + "Dimension" + ], + "sortBy": "DESC", + "filterBy": { + "nestedFilters": [], + "criteria": [] + }, + "limit": 100, + "enabled": true + } + ], + "visualConfig": { + "type": "PIE_CHART", + "global": { + "hideLegend": false + }, + "rules": [ + { + "matcher": "A:", + "unitTransform": "", + "valueFormat": "none", + "properties": { + "color": "RED", + "seriesType": "STACKED_AREA" + }, + "seriesOverrides": [] + } + ], + "axes": { + "xAxis": { + "visible": true + }, + "yAxes": [] + }, + "heatmapSettings": { + "yAxis": "VALUE" + }, + "thresholds": [ + { + "axisTarget": "LEFT", + "rules": [ + { + "color": "#7dc540" + }, + { + "color": "#f5d30f" + }, + { + "color": "#dc172a" + } + ], + "queryId": "", + "visible": true + } + ], + "tableSettings": { + "isThresholdBackgroundAppliedToCell": false + }, + "graphChartSettings": { + "connectNulls": false + }, + "honeycombSettings": { + "showHive": true, + "showLegend": true, + "showLabels": false + } + }, + "queriesSettings": { + "resolution": "" + } + }, + { + "name": "Pie", + "tileType": "DATA_EXPLORER", + "configured": true, + "bounds": { + "top": 456, + "left": 1140, + "width": 304, + "height": 304 + }, + "tileFilter": {}, + "customName": "Pie", + "queries": [], + "visualConfig": { + "type": "PIE_CHART", + "global": {}, + "rules": [], + "axes": { + "xAxis": { + "visible": true + }, + "yAxes": [] + }, + "thresholds": [] + } + }, + { + "name": "List and count of status", + "tileType": "DATA_EXPLORER", + "configured": true, + "bounds": { + "top": 912, + "left": 38, + "width": 532, + "height": 342 + }, + "tileFilter": {}, + "customName": "Table", + "queries": [ + { + "id": "A", + "metric": "calc:service.vdlm_rtchandler_ngtp_processmessage", + "spaceAggregation": "SUM", + "timeAggregation": "DEFAULT", + "splitBy": [ + "dt.entity.service", + "Dimension" + ], + "sortBy": "DESC", + "filterBy": { + "nestedFilters": [], + "criteria": [] + }, + "limit": 100, + "enabled": true + } + ], + "visualConfig": { + "type": "TABLE", + "global": { + "hideLegend": false + }, + "rules": [ + { + "matcher": "A:", + "unitTransform": "", + "valueFormat": "auto", + "properties": { + "color": "DEFAULT", + "seriesType": "STACKED_COLUMN", + "alias": "Count of status" + }, + "seriesOverrides": [] + } + ], + "axes": { + "xAxis": { + "visible": true + }, + "yAxes": [] + }, + "heatmapSettings": { + "yAxis": "VALUE" + }, + "thresholds": [ + { + "axisTarget": "LEFT", + "columnId": "VDLM_rtchandler_NGTP_processMessage", + "rules": [ + { + "color": "#7dc540" + }, + { + "color": "#f5d30f" + }, + { + "color": "#dc172a" + } + ], + "queryId": "A", + "visible": true + } + ], + "tableSettings": { + "isThresholdBackgroundAppliedToCell": false + }, + "graphChartSettings": { + "connectNulls": false + }, + "honeycombSettings": { + "showHive": true, + "showLegend": true, + "showLabels": false + } + }, + "queriesSettings": { + "resolution": "", + "foldTransformation": "TOTAL", + "foldAggregation": "AVG" + } + } + ] +} \ No newline at end of file From 138525ed86997fe4098c44f3c1f4e5cfe7e14591 Mon Sep 17 00:00:00 2001 From: Bernd Brandl Date: Tue, 21 Jun 2022 13:59:14 +0200 Subject: [PATCH 2/4] fix ts-pffs --- .../custom-service-java/custom-service-java.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BMW-Dynatrace-config/CD_VDLM_ts-pffs/custom-service-java/custom-service-java.yaml b/BMW-Dynatrace-config/CD_VDLM_ts-pffs/custom-service-java/custom-service-java.yaml index afbb26fe..407e0402 100644 --- a/BMW-Dynatrace-config/CD_VDLM_ts-pffs/custom-service-java/custom-service-java.yaml +++ b/BMW-Dynatrace-config/CD_VDLM_ts-pffs/custom-service-java/custom-service-java.yaml @@ -6,7 +6,7 @@ customService1: - name: "ifs-003 (SQS) ServiceNotificationTSPFFS - IN" - className: com.bmw.cc.tspffs.api.seam.boundary.SeamNotificationSqsListenerMF - methodName: onNotification -- methodArgs: java.lang.String","java.util.Map +- methodArgs: java.lang.String","java.util.Map","org.springframework.cloud.aws.messaging.listener.Acknowledgment - returnType: void - skipDeployment: "false" From f413054a548e850dfa211c6920c7196fed6314c9 Mon Sep 17 00:00:00 2001 From: Bernd Brandl Date: Tue, 21 Jun 2022 14:42:26 +0200 Subject: [PATCH 3/4] added ifs-002 (SQS) TsSdiCallTopic - IN --- .../custom-service-java/custom-service-java.yaml | 9 +++++---- .../CD_VDLM_ts-sdi/custom-service-java/template-1-1.json | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/BMW-Dynatrace-config/CD_VDLM_ts-sdi/custom-service-java/custom-service-java.yaml b/BMW-Dynatrace-config/CD_VDLM_ts-sdi/custom-service-java/custom-service-java.yaml index 25f8a028..63903acb 100644 --- a/BMW-Dynatrace-config/CD_VDLM_ts-sdi/custom-service-java/custom-service-java.yaml +++ b/BMW-Dynatrace-config/CD_VDLM_ts-sdi/custom-service-java/custom-service-java.yaml @@ -2,8 +2,9 @@ config: - customService1: template-1-1.json customService1: -- name: myJOYNRService -- className: com.bmw.cc.conn.this.is.just.an.exampleClasss -- methodName: exampleJoynrMethod +- name: "ifs-002 (SQS) TsSdiCallTopic - IN" +- className: com.bmw.cc.servicedemandidentifier.api.calltopic.boundary.CallTopicSqsListener +- methodName: onSqsMessage - returnType: void -- skipDeployment: "true" \ No newline at end of file +- methodArgs: java.lang.String","java.util.Map +- skipDeployment: "false" \ No newline at end of file diff --git a/BMW-Dynatrace-config/CD_VDLM_ts-sdi/custom-service-java/template-1-1.json b/BMW-Dynatrace-config/CD_VDLM_ts-sdi/custom-service-java/template-1-1.json index b3003515..ebe95097 100644 --- a/BMW-Dynatrace-config/CD_VDLM_ts-sdi/custom-service-java/template-1-1.json +++ b/BMW-Dynatrace-config/CD_VDLM_ts-sdi/custom-service-java/template-1-1.json @@ -13,7 +13,7 @@ "matcher": "EQUALS", "methodRules": [ { - "argumentTypes": [], + "argumentTypes": ["{{.methodArgs}}"], "methodName": "{{.methodName}}", "returnType": "{{.returnType}}" } From 166e23d26e79d2059629ff1161e0741e9398b0e1 Mon Sep 17 00:00:00 2001 From: Bernd Brandl Date: Tue, 21 Jun 2022 14:50:58 +0200 Subject: [PATCH 4/4] fix base-ffs --- .../custom-service-java/custom-service-java.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BMW-Dynatrace-config/CD_VDLM_ts-base-ffs/custom-service-java/custom-service-java.yaml b/BMW-Dynatrace-config/CD_VDLM_ts-base-ffs/custom-service-java/custom-service-java.yaml index e0c984eb..a1ffc8af 100644 --- a/BMW-Dynatrace-config/CD_VDLM_ts-base-ffs/custom-service-java/custom-service-java.yaml +++ b/BMW-Dynatrace-config/CD_VDLM_ts-base-ffs/custom-service-java/custom-service-java.yaml @@ -6,7 +6,7 @@ customService1: - name: "ifs-001 (SQS) ServiceNotificationBaseFfs - IN" - className: com.bmw.cc.tsbaseffs.api.seam.boundary.SeamNotificationSqsListenerMF - methodName: onNotification -- methodArgs: java.lang.String","java.util.Map +- methodArgs: java.lang.String","java.util.Map","org.springframework.cloud.aws.messaging.listener.Acknowledgment - returnType: void - skipDeployment: "false"