diff --git a/BMW-Dynatrace-config/CD_PHD/notification/README.md b/BMW-Dynatrace-config/CD_PHD/notification/README.md new file mode 100644 index 00000000..a6bd67bc --- /dev/null +++ b/BMW-Dynatrace-config/CD_PHD/notification/README.md @@ -0,0 +1,5 @@ +### 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_PHD/notification/email.json b/BMW-Dynatrace-config/CD_PHD/notification/email.json new file mode 100644 index 00000000..e2c50ece --- /dev/null +++ b/BMW-Dynatrace-config/CD_PHD/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_PHD/notification/itsm.json b/BMW-Dynatrace-config/CD_PHD/notification/itsm.json new file mode 100644 index 00000000..c838a134 --- /dev/null +++ b/BMW-Dynatrace-config/CD_PHD/notification/itsm.json @@ -0,0 +1,20 @@ +{ + "acceptAnyCertificate": false, + "active": true, + "alertingProfile": "{{.alertingProfile}}", + "headers": [ + { + "name": "Authorization", + "value": "{{.Env.SecretAuthHeader}}" + }, + { + "name": "x-apikey", + "value": "{{.Env.SecretXAPIKey}}" + } + ], + "name": "{{.name}}", + "notifyEventMergesEnabled": false, + "payload": "[\n{\n \"attributes\": {\n \"CLASS\": \"BusinessTransaction\",\n \"source\": \"MgmtZone: {{.mzName}}\",\n \"severity\": \"MINOR\",\n \"origin\": \"{{.appdid}}\",\n \"sub_origin\": \"Dynatrace SaaS - {ImpactedEntity}\",\n \"adapter_host\": \"{{ .DTEnvironment }}\",\n \"msg\": \"{ProblemDetailsText}\",\n \"contract_id\": \"{{.contractid}}\",\n \"ars_esc\": \"Yes\",\n \"ars_delay_time\": \"0\",\n \"hostname\": \"test\",\n \"sub_source\": \"Environment: CoCo_EMEA_Prod\",\n \"server_loc\": \"\",\n \"event_id\": \"AI001\",\n \"dd_plus\": \"{ProblemSeverity}\",\n \"dd1\": \"{ProblemURL}\",\n \"dd2\": \"{PID}\"\n }\n}\n]", + "type": "WEBHOOK", + "url": "{{.webhook}}" +} diff --git a/BMW-Dynatrace-config/CD_PHD/notification/msTeams.json b/BMW-Dynatrace-config/CD_PHD/notification/msTeams.json new file mode 100644 index 00000000..388dbff1 --- /dev/null +++ b/BMW-Dynatrace-config/CD_PHD/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_PHD/notification/notification.yaml b/BMW-Dynatrace-config/CD_PHD/notification/notification.yaml new file mode 100644 index 00000000..d0b40a59 --- /dev/null +++ b/BMW-Dynatrace-config/CD_PHD/notification/notification.yaml @@ -0,0 +1,102 @@ +config: + - CDnewComponentTag: msTeams.json + - CDnewComponentTagITSM: itsm.json + +# Notification System for EMEA/NA/CN Prod msTeams +CDnewComponentTag.EMEA-Prod: + - name: CD_PHD PROD + - alertingProfile: CD_PHD/alerting-profile/CDnewComponentTag.id + - webhook: https://empty + - skipDeployment: "true" +CDnewComponentTag.NA-Prod: + - name: CD_PHD PROD + - alertingProfile: CD_PHD/alerting-profile/CDnewComponentTag.id + - webhook: https://empty + - skipDeployment: "true" +CDnewComponentTag.CN-Prod: + - name: CD_PHD PROD + - alertingProfile: CD_PHD/alerting-profile/CDnewComponentTag.id + - webhook: https://empty + - skipDeployment: "true" + +# Notification System for EMEA/NA/CN PreProd msTeams +CDnewComponentTag.EMEA-PreProd: + - name: CD_PHD INT + - alertingProfile: CD_PHD/alerting-profile/CDnewComponentTag.id + - webhook: https://empty + - skipDeployment: "true" +CDnewComponentTag.NA-PreProd: + - name: CD_PHD INT + - alertingProfile: CD_PHD/alerting-profile/CDnewComponentTag.id + - webhook: https://empty + - skipDeployment: "true" +CDnewComponentTag.CN-PreProd: + - name: CD_PHD INT + - alertingProfile: CD_PHD/alerting-profile/CDnewComponentTag.id + - webhook: https://empty + - skipDeployment: "true" + + +# Notification System for EMEA/NA/CN Prod ITSM +CDnewComponentTagITSM.EMEA-Prod: + - name: CD_PHD ITSM PROD + - alertingProfile: CD_PHD/alerting-profile/CDnewComponentTag.id + - webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1 + - contractid: "10APP11906401" + - appdid: "TEST123" + - mzName: CD_PHD/management-zone/CDnewComponentTag.id + - DTEnvironment: https://xxu26128.live.dynatrace.com + - skipDeployment: "true" + +CDnewComponentTagITSM.NA-Prod: + - name: CD_PHD ITSM PROD + - alertingProfile: CD_PHD/alerting-profile/CDnewComponentTag.id + - webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1 + - contractid: "10APP11906401" + - appdid: "TEST123" + - mzName: CD_PHD/management-zone/CDnewComponentTag.id + - DTEnvironment: https://xxu26128.live.dynatrace.com + - skipDeployment: "true" + + +CDnewComponentTagITSM.CN-Prod: + - name: CD_PHD ITSM PROD + - alertingProfile: CD_PHD/alerting-profile/CDnewComponentTag.id + - webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1 + - contractid: "10APP11906401" + - appdid: "TEST123" + - mzName: CD_PHD/management-zone/CDnewComponentTag.id + - DTEnvironment: https://xxu26128.live.dynatrace.com + - skipDeployment: "true" + +CDnewComponentTagITSM.EMEA-PreProd: + - name: CD_PHD ITSM INT + - alertingProfile: CD_PHD/alerting-profile/CDnewComponentTag.id + - webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1 + - contractid: "10APP11906401" + - appdid: "TEST123" + - mzName: CD_PHD/management-zone/CDnewComponentTag.id + - DTEnvironment: https://xxu26128.live.dynatrace.com + - skipDeployment: "true" + +CDnewComponentTagITSM.NA-PreProd: + - name: CD_PHD ITSM INT + - alertingProfile: CD_PHD/alerting-profile/CDnewComponentTag.id + - webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1 + - contractid: "10APP11906401" + - appdid: "TEST123" + - mzName: CD_PHD/management-zone/CDnewComponentTag.id + - DTEnvironment: https://xxu26128.live.dynatrace.com + - skipDeployment: "true" + + +CDnewComponentTagITSM.CN-PreProd: + - name: CD_PHD ITSM INT + - alertingProfile: CD_PHD/alerting-profile/CDnewComponentTag.id + - webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1 + - contractid: "10APP11906401" + - appdid: "TEST123" + - mzName: CD_PHD/management-zone/CDnewComponentTag.id + - DTEnvironment: https://xxu26128.live.dynatrace.com + - skipDeployment: "true" +