diff --git a/BMW-Dynatrace-config/CD_APIGW/notification/README.md b/BMW-Dynatrace-config/CD_APIGW/notification/README.md new file mode 100644 index 00000000..5ba3825a --- /dev/null +++ b/BMW-Dynatrace-config/CD_APIGW/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_APIGW/notification/itsm.json b/BMW-Dynatrace-config/CD_APIGW/notification/itsm.json new file mode 100644 index 00000000..677ef0ea --- /dev/null +++ b/BMW-Dynatrace-config/CD_APIGW/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_APIGW/notification/notification.yaml b/BMW-Dynatrace-config/CD_APIGW/notification/notification.yaml new file mode 100644 index 00000000..6188be68 --- /dev/null +++ b/BMW-Dynatrace-config/CD_APIGW/notification/notification.yaml @@ -0,0 +1,67 @@ +config: +- CDAPIGWITSM: itsm.json + +# Notification System for EMEA/NA/CN Prod ITSM +CDAPIGWITSM.EMEA-Prod: +- name: CD_APIGW ITSM PROD +- alertingProfile: CD_APIGW/alerting-profile/CDAPIGW-Prod.id +- webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1 +- contractid: "10APP11633204" +- appdid: "APPD-48041" +- mzName: CD_APIGW/management-zone/CDAPIGW.id +- DTEnvironment: https://xxu26128.live.dynatrace.com +- skipDeployment: "true" + +CDAPIGWITSM.NA-Prod: +- name: CD_APIGW ITSM PROD +- alertingProfile: CD_APIGW/alerting-profile/CDAPIGW-Prod.id +- webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1 +- contractid: "10APP11633204" +- appdid: "APPD-48041" +- mzName: CD_APIGW/management-zone/CDAPIGW.id +- DTEnvironment: https://xxu26128.live.dynatrace.com +- skipDeployment: "true" + + +CDAPIGWITSM.CN-Prod: +- name: CD_APIGW ITSM PROD +- alertingProfile: CD_APIGW/alerting-profile/CDAPIGW-Prod.id +- webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1 +- contractid: "10APP11633204" +- appdid: "APPD-48041" +- mzName: CD_APIGW/management-zone/CDAPIGW.id +- DTEnvironment: https://xxu26128.live.dynatrace.com +- skipDeployment: "true" + +# Notification System for EMEA/NA/CN PreProd ITSM +CDAPIGWITSM.EMEA-PreProd: +- name: CD_APIGW ITSM INT +- alertingProfile: CD_APIGW/alerting-profile/CDAPIGW-PreProd.id +- webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1 +- contractid: "10APP11633202" +- appdid: "APPD-48016" +- mzName: CD_APIGW/management-zone/CDAPIGW.id +- DTEnvironment: https://xxu26128.live.dynatrace.com +- skipDeployment: "true" + +CDAPIGWITSM.NA-PreProd: +- name: CD_APIGW ITSM INT +- alertingProfile: CD_APIGW/alerting-profile/CDAPIGW-PreProd.id +- webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1 +- contractid: "10APP11633202" +- appdid: "APPD-48016" +- mzName: CD_APIGW/management-zone/CDAPIGW.id +- DTEnvironment: https://xxu26128.live.dynatrace.com +- skipDeployment: "true" + + +CDAPIGWITSM.CN-PreProd: +- name: CD_APIGW ITSM INT +- alertingProfile: CD_APIGW/alerting-profile/CDAPIGW-PreProd.id +- webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1 +- contractid: "10APP11633202" +- appdid: "APPD-48016" +- mzName: CD_APIGW/management-zone/CDAPIGW.id +- DTEnvironment: https://xxu26128.live.dynatrace.com +- skipDeployment: "true" +