Pull request #130: Add e-mail/msteams problem notification integration for application imiles-service to Dynatrace

Merge in OPAPM/cd_e2e_monitoring_config from CD_imiles-service-alerts to master

* commit 'd0fce1ce7d3a93ce553b2969a39d8d71ccb4e56d':
  Change Email configuration
  - Add e-mail/msteams problem notification integration for application imiles-service to Dynatrace
CD_CCIS_NN_SLO
Jose Cadilha (CTW) 2022-01-27 11:41:31 +01:00
commit 79179f24b2
6 changed files with 179 additions and 0 deletions

View File

@ -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"

View File

@ -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}}"
}
]
}
}
]
}

View File

@ -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.

View File

@ -0,0 +1,13 @@
{
"active": true,
"alertingProfile": "{{.alertingProfile}}",
"bccReceivers": [],
"body": "{ProblemDetailsHTML}",
"ccReceivers": [],
"name": "{{.name}}",
"receivers": [
"{{.receivers}}"
],
"subject": "{State} Problem {ProblemID}: {ImpactedEntity}",
"type": "EMAIL"
}

View File

@ -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}}"
}

View File

@ -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