diff --git a/BMW-Dynatrace-config/CD_smart-wallbox-web-app/alerting-profile/alerting-profile.yaml b/BMW-Dynatrace-config/CD_smart-wallbox-web-app/alerting-profile/alerting-profile.yaml new file mode 100644 index 00000000..179f24e1 --- /dev/null +++ b/BMW-Dynatrace-config/CD_smart-wallbox-web-app/alerting-profile/alerting-profile.yaml @@ -0,0 +1,18 @@ +config: +- CD_smart-wallbox-web-app: default.json + +#Prod alerting profiles for EMEA +CD_smart-wallbox-web-app.EMEA-Prod: +- name: CD_smart-wallbox-web-app PROD +- tag: smart-wallbox-web-app +- mzId: CD_smart-wallbox-web-app/management-zone/CD_smart-wallbox-web-app.id +- env: PROD +- skipDeployment: "false" + +#INT alerting profiles for EMEA +CD_smart-wallbox-web-app.EMEA-PreProd: +- name: CD_smart-wallbox-web-app INT +- tag: smart-wallbox-web-app +- mzId: CD_smart-wallbox-web-app/management-zone/CD_smart-wallbox-web-app.id +- env: INT +- skipDeployment: "false" \ No newline at end of file diff --git a/BMW-Dynatrace-config/CD_smart-wallbox-web-app/alerting-profile/default.json b/BMW-Dynatrace-config/CD_smart-wallbox-web-app/alerting-profile/default.json new file mode 100644 index 00000000..681a4c64 --- /dev/null +++ b/BMW-Dynatrace-config/CD_smart-wallbox-web-app/alerting-profile/default.json @@ -0,0 +1,103 @@ +{ + "displayName": "{{.name}}", + "eventTypeFilters": [], + "managementZoneId": "{{.mzId}}", + "mzId": "{{.mzId}}", + "rules": [ + { + "delayInMinutes": 0, + "severityLevel": "AVAILABILITY", + "tagFilter": { + "includeMode": "INCLUDE_ALL", + "tagFilters": [ + { + "context": "CONTEXTLESS", + "key": "Component", + "value": "{{.tag}}" + }, + { + "context": "CONTEXTLESS", + "key": "Environment", + "value": "{{.env}}" + } + ] + } + }, + { + "delayInMinutes": 10, + "severityLevel": "ERROR", + "tagFilter": { + "includeMode": "INCLUDE_ALL", + "tagFilters": [ + { + "context": "CONTEXTLESS", + "key": "Component", + "value": "{{.tag}}" + }, + { + "context": "CONTEXTLESS", + "key": "Environment", + "value": "{{.env}}" + } + ] + } + }, + { + "delayInMinutes": 30, + "severityLevel": "PERFORMANCE", + "tagFilter": { + "includeMode": "INCLUDE_ALL", + "tagFilters": [ + { + "context": "CONTEXTLESS", + "key": "Component", + "value": "{{.tag}}" + }, + { + "context": "CONTEXTLESS", + "key": "Environment", + "value": "{{.env}}" + } + ] + } + }, + { + "delayInMinutes": 30, + "severityLevel": "RESOURCE_CONTENTION", + "tagFilter": { + "includeMode": "INCLUDE_ALL", + "tagFilters": [ + { + "context": "CONTEXTLESS", + "key": "Component", + "value": "{{.tag}}" + }, + { + "context": "CONTEXTLESS", + "key": "Environment", + "value": "{{.env}}" + } + ] + } + }, + { + "delayInMinutes": 10, + "severityLevel": "CUSTOM_ALERT", + "tagFilter": { + "includeMode": "INCLUDE_ALL", + "tagFilters": [ + { + "context": "CONTEXTLESS", + "key": "Component", + "value": "{{.tag}}" + }, + { + "context": "CONTEXTLESS", + "key": "Environment", + "value": "{{.env}}" + } + ] + } + } + ] +} \ No newline at end of file diff --git a/BMW-Dynatrace-config/CD_smart-wallbox-web-app/dashboard/README.md b/BMW-Dynatrace-config/CD_smart-wallbox-web-app/dashboard/README.md new file mode 100644 index 00000000..2b6d5717 --- /dev/null +++ b/BMW-Dynatrace-config/CD_smart-wallbox-web-app/dashboard/README.md @@ -0,0 +1,4 @@ + +### How to configure dashboards? + +Please refer to [this](https://atc.bmwgroup.net/confluence/display/OPMAAS/Documentation+%7C+Dashboards) page to configure your dashboards. \ No newline at end of file diff --git a/BMW-Dynatrace-config/CD_smart-wallbox-web-app/dashboard/dashboard.yaml b/BMW-Dynatrace-config/CD_smart-wallbox-web-app/dashboard/dashboard.yaml new file mode 100644 index 00000000..9aa0c2a6 --- /dev/null +++ b/BMW-Dynatrace-config/CD_smart-wallbox-web-app/dashboard/dashboard.yaml @@ -0,0 +1,69 @@ +config: +- CD_smart-wallbox-web-app-PROD: default.json +- CD_smart-wallbox-web-app-E2E: default.json +- CD_smart-wallbox-web-app-INT: default.json +- CD_smart-wallbox-web-app-TEST: default.json + +#PROD dashboards for EMEA Prod +CD_smart-wallbox-web-app-PROD: +- name: CD_smart-wallbox-web-app PROD +- mzName: CD_smart-wallbox-web-app/management-zone/CD_smart-wallbox-web-app.name +- mzId: CD_smart-wallbox-web-app/management-zone/CD_smart-wallbox-web-app.id +- tag: smart-wallbox-web-app +- env: PROD +- skipDeployment: "true" +CD_smart-wallbox-web-app-PROD.EMEA-Prod: +- name: CD_smart-wallbox-web-app PROD +- mzName: CD_smart-wallbox-web-app/management-zone/CD_smart-wallbox-web-app.name +- mzId: CD_smart-wallbox-web-app/management-zone/CD_smart-wallbox-web-app.id +- tag: smart-wallbox-web-app +- env: PROD +- skipDeployment: "false" + +#E2E dashboards for EMEA Prod +CD_smart-wallbox-web-app-E2E: +- name: CD_smart-wallbox-web-app E2E +- mzName: CD_smart-wallbox-web-app/management-zone/CD_smart-wallbox-web-app.name +- mzId: CD_smart-wallbox-web-app/management-zone/CD_smart-wallbox-web-app.id +- tag: smart-wallbox-web-app +- env: E2E +- skipDeployment: "true" +CD_smart-wallbox-web-app-E2E.EMEA-Prod: +- name: CD_smart-wallbox-web-app E2E +- mzName: CD_smart-wallbox-web-app/management-zone/CD_smart-wallbox-web-app.name +- mzId: CD_smart-wallbox-web-app/management-zone/CD_smart-wallbox-web-app.id +- tag: smart-wallbox-web-app +- env: E2E +- skipDeployment: "false" + +#INT dashboards for EMEA PreProd +CD_smart-wallbox-web-app-INT: +- name: CD_smart-wallbox-web-app INT +- mzName: CD_smart-wallbox-web-app/management-zone/CD_smart-wallbox-web-app.name +- mzId: CD_smart-wallbox-web-app/management-zone/CD_smart-wallbox-web-app.id +- tag: smart-wallbox-web-app +- env: INT +- skipDeployment: "true" +CD_smart-wallbox-web-app-INT.EMEA-PreProd: +- name: CD_smart-wallbox-web-app INT +- mzName: CD_smart-wallbox-web-app/management-zone/CD_smart-wallbox-web-app.name +- mzId: CD_smart-wallbox-web-app/management-zone/CD_smart-wallbox-web-app.id +- tag: smart-wallbox-web-app +- env: INT +- skipDeployment: "false" + +#TEST dashboards for EMEA PreProd +CD_smart-wallbox-web-app-TEST: +- name: CD_smart-wallbox-web-app TEST +- mzName: CD_smart-wallbox-web-app/management-zone/CD_smart-wallbox-web-app.name +- mzId: CD_smart-wallbox-web-app/management-zone/CD_smart-wallbox-web-app.id +- tag: smart-wallbox-web-app +- env: TEST +- skipDeployment: "true" +CD_smart-wallbox-web-app-TEST.EMEA-PreProd: +- name: CD_smart-wallbox-web-app TEST +- mzName: CD_smart-wallbox-web-app/management-zone/CD_smart-wallbox-web-app.name +- mzId: CD_smart-wallbox-web-app/management-zone/CD_smart-wallbox-web-app.id +- tag: smart-wallbox-web-app +- env: TEST +- skipDeployment: "false" \ No newline at end of file diff --git a/BMW-Dynatrace-config/CD_smart-wallbox-web-app/dashboard/default.json b/BMW-Dynatrace-config/CD_smart-wallbox-web-app/dashboard/default.json new file mode 100644 index 00000000..dbcdd06c --- /dev/null +++ b/BMW-Dynatrace-config/CD_smart-wallbox-web-app/dashboard/default.json @@ -0,0 +1,304 @@ +{ + "metadata": { + "configurationVersions": [3], + "clusterVersion": "1.214.107.20210407-223952" + }, + "dashboardMetadata": { + "name": "{{.name}}", + "shared": true, + "owner": "Bruno.Garcia@ctw.bmwgroup.com", + "dashboardFilter": { + "timeframe": "-24h to now" + }, + "tags": ["{{.tag}}"] + }, + "tiles": [ + { + "name": "Custom chart", + "tileType": "CUSTOM_CHARTING", + "configured": true, + "bounds": { + "top": 228, + "left": 38, + "width": 1064, + "height": 304 + }, + "tileFilter": {}, + "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:{{.env}}", + "Component:{{.tag}}" + ] + } + } + } + }, + { + "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": {} + }, + { + "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": {}, + "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:{{.env}}", + "Component:{{.tag}}" + ] + } + } + } + }, + { + "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": {}, + "filterConfig": { + "type": "DATABASE", + "customName": "Databases", + "defaultName": "Databases", + "chartConfig": { + "legendShown": true, + "type": "TIMESERIES", + "series": [], + "resultMetadata": {} + }, + "filtersPerEntityType": { + "DATABASE": { + "AUTO_TAGS": [ + "Environment:{{.env}}", + "Component:{{.tag}}" + ] + } + } + }, + "chartVisible": true + }, + { + "name": "", + "tileType": "SERVICES", + "configured": true, + "bounds": { + "top": 38, + "left": 342, + "width": 190, + "height": 152 + }, + "tileFilter": {}, + "filterConfig": { + "type": "SERVICE", + "customName": "Services", + "defaultName": "Services", + "chartConfig": { + "legendShown": true, + "type": "TIMESERIES", + "series": [], + "resultMetadata": {} + }, + "filtersPerEntityType": { + "SERVICE": { + "AUTO_TAGS": [ + "Environment:{{.env}}", + "Component:{{.tag}}" + ] + } + } + }, + "chartVisible": true + }, + { + "name": "", + "tileType": "HOSTS", + "configured": true, + "bounds": { + "top": 38, + "left": 38, + "width": 190, + "height": 152 + }, + "tileFilter": {}, + "filterConfig": { + "type": "HOST", + "customName": "Hosts", + "defaultName": "Hosts", + "chartConfig": { + "legendShown": true, + "type": "TIMESERIES", + "series": [], + "resultMetadata": {} + }, + "filtersPerEntityType": { + "HOST": { + "AUTO_TAGS": [ + "Environment:{{.env}}", + "Component:{{.tag}}" + ] + } + } + }, + "chartVisible": true + } + ] +} diff --git a/BMW-Dynatrace-config/CD_smart-wallbox-web-app/management-zone/README.md b/BMW-Dynatrace-config/CD_smart-wallbox-web-app/management-zone/README.md new file mode 100644 index 00000000..ffe9d6e3 --- /dev/null +++ b/BMW-Dynatrace-config/CD_smart-wallbox-web-app/management-zone/README.md @@ -0,0 +1,4 @@ + +### How to configure management zones? + +Please refer to [this](https://atc.bmwgroup.net/confluence/display/OPMAAS/Documentation+%7C+Management+Zones) page to configure your management zones. \ No newline at end of file diff --git a/BMW-Dynatrace-config/CD_smart-wallbox-web-app/management-zone/default.json b/BMW-Dynatrace-config/CD_smart-wallbox-web-app/management-zone/default.json new file mode 100644 index 00000000..bffa0c3b --- /dev/null +++ b/BMW-Dynatrace-config/CD_smart-wallbox-web-app/management-zone/default.json @@ -0,0 +1,114 @@ +{ + "dimensionalRules": [], + "name": "{{.name}}", + "rules": [ + { + "conditions": [ + { + "comparisonInfo": { + "negate": false, + "operator": "EQUALS", + "type": "TAG", + "value": { + "context": "CONTEXTLESS", + "key": "Component", + "value": "{{.tag}}" + } + }, + "key": { + "attribute": "SERVICE_TAGS" + } + } + ], + "enabled": true, + "propagationTypes": [ + "SERVICE_TO_PROCESS_GROUP_LIKE", + "SERVICE_TO_HOST_LIKE" + ], + "type": "SERVICE" + }, + { + "conditions": [ + { + "comparisonInfo": { + "negate": false, + "operator": "EQUALS", + "type": "TAG", + "value": { + "context": "CONTEXTLESS", + "key": "Component", + "value": "{{.tag}}" + } + }, + "key": { + "attribute": "PROCESS_GROUP_TAGS" + } + } + ], + "enabled": true, + "propagationTypes": [ + "PROCESS_GROUP_TO_HOST" + ], + "type": "PROCESS_GROUP" + }, + { + "conditions": [ + { + "comparisonInfo": { + "negate": false, + "operator": "EQUALS", + "type": "TAG", + "value": { + "context": "CONTEXTLESS", + "key": "Component", + "value": "{{.tag}}" + } + }, + "key": { + "attribute": "HOST_TAGS" + } + } + ], + "enabled": true, + "type": "HOST" + }, + { + "conditions": [ + { + "comparisonInfo": { + "caseSensitive": true, + "negate": false, + "operator": "CONTAINS", + "type": "STRING", + "value": "{{.tag}}" + }, + "key": { + "attribute": "CLOUD_APPLICATION_NAMESPACE_NAME" + } + } + ], + "enabled": true, + "propagationTypes": [], + "type": "CLOUD_APPLICATION_NAMESPACE" + }, + { + "conditions": [ + { + "comparisonInfo": { + "caseSensitive": true, + "negate": false, + "operator": "CONTAINS", + "type": "STRING", + "value": "{{.tag}}" + }, + "key": { + "attribute": "CLOUD_APPLICATION_NAME" + } + } + ], + "enabled": true, + "propagationTypes": [], + "type": "CLOUD_APPLICATION" + } + ] +} \ No newline at end of file diff --git a/BMW-Dynatrace-config/CD_smart-wallbox-web-app/management-zone/management-zone.yaml b/BMW-Dynatrace-config/CD_smart-wallbox-web-app/management-zone/management-zone.yaml new file mode 100644 index 00000000..26802899 --- /dev/null +++ b/BMW-Dynatrace-config/CD_smart-wallbox-web-app/management-zone/management-zone.yaml @@ -0,0 +1,6 @@ +config: +- CD_smart-wallbox-web-app: default.json + +CD_smart-wallbox-web-app: +- name: CD_smart-wallbox-web-app +- tag: smart-wallbox-web-app diff --git a/BMW-Dynatrace-config/CD_smart-wallbox-web-app/notification/README.md b/BMW-Dynatrace-config/CD_smart-wallbox-web-app/notification/README.md new file mode 100644 index 00000000..836e4d15 --- /dev/null +++ b/BMW-Dynatrace-config/CD_smart-wallbox-web-app/notification/README.md @@ -0,0 +1,4 @@ + +### How to configure notification systems? + +Please refer to [this](https://atc.bmwgroup.net/confluence/display/OPMAAS/Documentation+%7C+Problem+Notification+Integrations) page to configure your notification systems \ No newline at end of file diff --git a/BMW-Dynatrace-config/CD_smart-wallbox-web-app/notification/email.json b/BMW-Dynatrace-config/CD_smart-wallbox-web-app/notification/email.json new file mode 100644 index 00000000..486642a7 --- /dev/null +++ b/BMW-Dynatrace-config/CD_smart-wallbox-web-app/notification/email.json @@ -0,0 +1,13 @@ +{ + "active": true, + "alertingProfile": "{{.alertingProfile}}", + "bccReceivers": [], + "body": "{ProblemDetailsHTML}", + "ccReceivers": [], + "name": "{{.name}}", + "receivers": [ + "{{.receivers}}" + ], + "subject": "{State} Problem {ProblemID}: {ImpactedEntity}", + "type": "EMAIL" +} \ No newline at end of file diff --git a/BMW-Dynatrace-config/CD_smart-wallbox-web-app/notification/msTeams.json b/BMW-Dynatrace-config/CD_smart-wallbox-web-app/notification/msTeams.json new file mode 100644 index 00000000..33e92cf6 --- /dev/null +++ b/BMW-Dynatrace-config/CD_smart-wallbox-web-app/notification/msTeams.json @@ -0,0 +1,11 @@ +{ + "acceptAnyCertificate": false, + "active": true, + "alertingProfile": "{{.alertingProfile}}", + "headers": [], + "name": "{{.name}}", + "notifyEventMergesEnabled": false, + "payload": "{\n\"title\":\"{ProblemTitle}\",\n\"text\":\"{ProblemDetailsHTML}\",\n\"themeColor\":\"EA4300\"\n}", + "type": "WEBHOOK", + "url": "{{.webhook}}" +} \ No newline at end of file diff --git a/BMW-Dynatrace-config/CD_smart-wallbox-web-app/notification/notification.yaml b/BMW-Dynatrace-config/CD_smart-wallbox-web-app/notification/notification.yaml new file mode 100644 index 00000000..d59e77a5 --- /dev/null +++ b/BMW-Dynatrace-config/CD_smart-wallbox-web-app/notification/notification.yaml @@ -0,0 +1,31 @@ +config: +- CD_smart-wallbox-web-app: msTeams.json +- CD_smart-wallbox-web-app_email: email.json + +# Notification System for EMEA Prod msTeams +CD_smart-wallbox-web-app.EMEA-Prod: +- name: CD_smart-wallbox-web-app PROD +- alertingProfile: CD_smart-wallbox-web-app/alerting-profile/CD_smart-wallbox-web-app.id +- webhook: https://criticaltechworks.webhook.office.com/webhookb2/b2de8193-24cf-4709-b1ad-d05f115fa08d@61f30b8e-4f6b-44fe-9bc2-041e3a9f7346/IncomingWebhook/5ea6c142b7164a79aaf52faa9f728274/f8ef3c85-672e-4922-ac7f-e63f3f934b1d +- skipDeployment: "false" + +# Notification System for EMEA PreProd msTeams +CD_smart-wallbox-web-app.EMEA-PreProd: +- name: CD_smart-wallbox-web-app INT +- alertingProfile: CD_smart-wallbox-web-app/alerting-profile/CD_smart-wallbox-web-app.id +- webhook: https://criticaltechworks.webhook.office.com/webhookb2/b2de8193-24cf-4709-b1ad-d05f115fa08d@61f30b8e-4f6b-44fe-9bc2-041e3a9f7346/IncomingWebhook/5ea6c142b7164a79aaf52faa9f728274/f8ef3c85-672e-4922-ac7f-e63f3f934b1d +- skipDeployment: "false" + +# Notification System for EMEA Prod Email +CD_smart-wallbox-web-app_email.EMEA-Prod: + - name: CD_smart-wallbox-web-app_email PROD + - alertingProfile: CD_smart-wallbox-web-app/alerting-profile/CD_smart-wallbox-web-app.id + - receivers: flash@criticaltechworks.com + - skipDeployment: "false" + +# Notification System for EMEA PreProd Email +CD_smart-wallbox-web-app_email.EMEA-PreProd: + - name: CD_smart-wallbox-web-app_email INT + - alertingProfile: CD_smart-wallbox-web-app/alerting-profile/CD_smart-wallbox-web-app.id + - receivers: flash@criticaltechworks.com + - skipDeployment: "false" \ No newline at end of file