diff --git a/BMW-Dynatrace-config/CD_imiles-service/alerting-profile/alerting-profile.yaml b/BMW-Dynatrace-config/CD_imiles-service/alerting-profile/alerting-profile.yaml new file mode 100644 index 00000000..fdc039b1 --- /dev/null +++ b/BMW-Dynatrace-config/CD_imiles-service/alerting-profile/alerting-profile.yaml @@ -0,0 +1,19 @@ +config: +- CDImiles-service: default.json + + +#Prod alerting profiles for EMEA +CDImiles-service.EMEA-Prod: +- name: CD_imiles-service PROD +- tag: imiles-service +- mzId: CD_imiles-service/management-zone/CDimiles-service.id +- env: PROD +- skipDeployment: "false" + +#INT alerting profiles for EMEA +CDImiles-service.EMEA-PreProd: +- name: CD_imiles-service INT +- tag: imiles-service +- mzId: CD_imiles-service/management-zone/CDimiles-service.id +- env: INT +- skipDeployment: "false" \ No newline at end of file diff --git a/BMW-Dynatrace-config/CD_imiles-service/alerting-profile/default.json b/BMW-Dynatrace-config/CD_imiles-service/alerting-profile/default.json new file mode 100644 index 00000000..681a4c64 --- /dev/null +++ b/BMW-Dynatrace-config/CD_imiles-service/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_imiles-service/notification/README.md b/BMW-Dynatrace-config/CD_imiles-service/notification/README.md new file mode 100644 index 00000000..5ba3825a --- /dev/null +++ b/BMW-Dynatrace-config/CD_imiles-service/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_imiles-service/notification/email.json b/BMW-Dynatrace-config/CD_imiles-service/notification/email.json new file mode 100644 index 00000000..486642a7 --- /dev/null +++ b/BMW-Dynatrace-config/CD_imiles-service/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_imiles-service/notification/msTeams.json b/BMW-Dynatrace-config/CD_imiles-service/notification/msTeams.json new file mode 100644 index 00000000..33e92cf6 --- /dev/null +++ b/BMW-Dynatrace-config/CD_imiles-service/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_imiles-service/notification/notification.yaml b/BMW-Dynatrace-config/CD_imiles-service/notification/notification.yaml new file mode 100644 index 00000000..0e7ff518 --- /dev/null +++ b/BMW-Dynatrace-config/CD_imiles-service/notification/notification.yaml @@ -0,0 +1,29 @@ +config: +- CDimiles-service: msTeams.json +- CDimiles-service_email: email.json + +# Notification System for EMEA/NA/CN Prod msTeams +CDimiles-service.EMEA-Prod: +- name: CD_imiles-service PROD +- alertingProfile: CD_imiles-service/alerting-profile/CDimiles-service.id +- webhook: https://criticaltechworks.webhook.office.com/webhookb2/b2de8193-24cf-4709-b1ad-d05f115fa08d@61f30b8e-4f6b-44fe-9bc2-041e3a9f7346/IncomingWebhook/0cf76894f7974aeaa28e5000a38d8d2c/66730f27-7257-45d8-8799-fdc7e4d4d178 +- skipDeployment: "true" + +# Notification System for EMEA/NA/CN PreProd msTeams +CDimiles-service.EMEA-PreProd: +- name: CD_imiles-service INT +- alertingProfile: CD_imiles-service/alerting-profile/CDimiles-service.id +- webhook: https://criticaltechworks.webhook.office.com/webhookb2/b2de8193-24cf-4709-b1ad-d05f115fa08d@61f30b8e-4f6b-44fe-9bc2-041e3a9f7346/IncomingWebhook/0cf76894f7974aeaa28e5000a38d8d2c/66730f27-7257-45d8-8799-fdc7e4d4d178 +- skipDeployment: "true" + +# Notification System for EMEA/NA/CN Prod Email +CDimiles-service_email.EMEA-Prod: + - name: CD_imiles-service_email PROD + - alertingProfile: CD_imiles-service/alerting-profile/CDimiles-service.id + - receivers: intangibles@list.bmw.com + +# Notification System for EMEA/NA/CN PreProd Email +CDimiles-service_email.EMEA-PreProd: + - name: CD_imiles-service_email INT + - alertingProfile: CD_imiles-service/alerting-profile/CDimiles-service.id + - receivers: intangibles@list.bmw.com