diff --git a/BMW-Dynatrace-config/CD_CallCenterClient/dashboard/dashboard.yaml b/BMW-Dynatrace-config/CD_CallCenterClient/dashboard/dashboard.yaml deleted file mode 100644 index abca2948..00000000 --- a/BMW-Dynatrace-config/CD_CallCenterClient/dashboard/dashboard.yaml +++ /dev/null @@ -1,127 +0,0 @@ -config: -- CDCallCenterClient-PROD: default.json -- CDCallCenterClient-E2E: default.json -- CDCallCenterClient-INT: default.json -- CDCallCenterClient-TEST: default.json - -#PROD dashboards for EMEA/NA/CN Prod -#Dry-run needed for all hubs -CDCallCenterClient-PROD: -- name: CD_CallCenterClient PROD -- mzName: CD_CallCenterClient/management-zone/CDCallCenterClient.name -- mzId: CD_CallCenterClient/management-zone/CDCallCenterClient.id -- env: PROD -- skipDeployment: "true" -#Configuration -CDCallCenterClient-PROD.EMEA-Prod: -- name: CD_CallCenterClient PROD -- mzName: CD_CallCenterClient/management-zone/CDCallCenterClient.name -- mzId: CD_CallCenterClient/management-zone/CDCallCenterClient.id -- tag: Call Center Client -- env: PROD -- skipDeployment: "false" -CDCallCenterClient-PROD.NA-Prod: -- name: CD_CallCenterClient PROD -- mzName: CD_CallCenterClient/management-zone/CDCallCenterClient.name -- mzId: CD_CallCenterClient/management-zone/CDCallCenterClient.id -- tag: Call Center Client -- env: PROD -- skipDeployment: "false" -CDCallCenterClient-PROD.CN-Prod: -- name: CD_CallCenterClient PROD -- mzName: CD_CallCenterClient/management-zone/CDCallCenterClient.name -- mzId: CD_CallCenterClient/management-zone/CDCallCenterClient.id -- tag: Call Center Client -- env: PROD -- skipDeployment: "false" - -#E2E dashboards for EMEA/NA/CN E2E -#Dry-run needed for all hubs -CDCallCenterClient-E2E: -- name: CD_CallCenterClient E2E -- mzName: CD_CallCenterClient/management-zone/CDCallCenterClient.name -- mzId: CD_CallCenterClient/management-zone/CDCallCenterClient.id -- env: E2E -- skipDeployment: "true" -#Configuration -CDCallCenterClient-E2E.EMEA-Prod: -- name: CD_CallCenterClient E2E -- mzName: CD_CallCenterClient/management-zone/CDCallCenterClient.name -- mzId: CD_CallCenterClient/management-zone/CDCallCenterClient.id -- env: E2E -- tag: Call Center Client -- skipDeployment: "true" -CDCallCenterClient-E2E.NA-Prod: -- name: CD_CallCenterClient E2E -- mzName: CD_CallCenterClient/management-zone/CDCallCenterClient.name -- mzId: CD_CallCenterClient/management-zone/CDCallCenterClient.id -- env: E2E -- tag: Call Center Client -- skipDeployment: "true" -CDCallCenterClient-E2E.CN-Prod: -- name: CD_CallCenterClient E2E -- mzName: CD_CallCenterClient/management-zone/CDCallCenterClient.name -- mzId: CD_CallCenterClient/management-zone/CDCallCenterClient.id -- env: E2E -- tag: Call Center Client -- skipDeployment: "true" - -#INT dashboards for EMEA/NA/CN -#Dry-run needed for all hubs -CDCallCenterClient-INT: -- name: CD_CallCenterClient INT -- mzName: CD_CallCenterClient/management-zone/CDCallCenterClient.name -- mzId: CD_CallCenterClient/management-zone/CDCallCenterClient.id -- env: INT -- tag: Call Center Client -- skipDeployment: "true" -#Configuration -CDCallCenterClient-INT.EMEA-PreProd: -- name: CD_CallCenterClient INT -- mzName: CD_CallCenterClient/management-zone/CDCallCenterClient.name -- mzId: CD_CallCenterClient/management-zone/CDCallCenterClient.id -- env: INT -- tag: Call Center Client -- skipDeployment: "false" -CDCallCenterClient-INT.NA-PreProd: -- name: CD_CallCenterClient INT -- mzName: CD_CallCenterClient/management-zone/CDCallCenterClient.name -- mzId: CD_CallCenterClient/management-zone/CDCallCenterClient.id -- env: INT -- skipDeployment: "false" -CDCallCenterClient-INT.CN-PreProd: -- name: CD_CallCenterClient INT -- mzName: CD_CallCenterClient/management-zone/CDCallCenterClient.name -- mzId: CD_CallCenterClient/management-zone/CDCallCenterClient.id -- env: INT -- skipDeployment: "false" - -#TEST dashboards for EMEA/NA/CN -#Dry-run needed for all hubs -CDCallCenterClient-TEST: -- name: CD_CallCenterClient TEST -- mzName: CD_CallCenterClient/management-zone/CDCallCenterClient.name -- mzId: CD_CallCenterClient/management-zone/CDCallCenterClient.id -- tag: Call Center Client -- env: TEST -- skipDeployment: "true" -#Configuration -CDCallCenterClient-TEST.EMEA-PreProd: -- name: CD_CallCenterClient TEST -- mzName: CD_CallCenterClient/management-zone/CDCallCenterClient.name -- mzId: CD_CallCenterClient/management-zone/CDCallCenterClient.id -- tag: Call Center Client -- env: TEST -- skipDeployment: "false" -CDCallCenterClient-TEST.NA-PreProd: -- name: CD_CallCenterClient TEST -- mzName: CD_CallCenterClient/management-zone/CDCallCenterClient.name -- mzId: CD_CallCenterClient/management-zone/CDCallCenterClient.id -- env: TEST -- skipDeployment: "false" -CDCallCenterClient-TEST.CN-PreProd: -- name: CD_CallCenterClient TEST -- mzName: CD_CallCenterClient/management-zone/CDCallCenterClient.name -- mzId: CD_CallCenterClient/management-zone/CDCallCenterClient.id -- env: TEST -- skipDeployment: "false" \ No newline at end of file diff --git a/BMW-Dynatrace-config/CD_CallCenterClient/management-zone/management-zone.yaml b/BMW-Dynatrace-config/CD_CallCenterClient/management-zone/management-zone.yaml deleted file mode 100644 index a9eaeaa6..00000000 --- a/BMW-Dynatrace-config/CD_CallCenterClient/management-zone/management-zone.yaml +++ /dev/null @@ -1,6 +0,0 @@ -config: -- CDCallCenterClient: default.json - -CDCallCenterClient: -- name: CD_CallCenterClient -- tag: Call Center Client diff --git a/BMW-Dynatrace-config/CD_ccc/alerting-profile/alerting-profile.yaml b/BMW-Dynatrace-config/CD_ccc/alerting-profile/alerting-profile.yaml new file mode 100644 index 00000000..7d59d086 --- /dev/null +++ b/BMW-Dynatrace-config/CD_ccc/alerting-profile/alerting-profile.yaml @@ -0,0 +1,43 @@ +config: +- CDccc: default.json + + +#Prod alerting profiles for EMEA/NA/CN +CDccc.EMEA-Prod: +- name: CD_ccc PROD +- tag: ccc +- mzId: CD_ccc/management-zone/CDccc.id +- env: PROD +- skipDeployment: "false" +CDccc.NA-Prod: +- name: CD_ccc PROD +- tag: ccc +- mzId: CD_ccc/management-zone/CDccc.id +- env: PROD +- skipDeployment: "false" +CDccc.CN-Prod: +- name: CD_ccc PROD +- tag: ccc +- mzId: CD_ccc/management-zone/CDccc.id +- env: PROD +- skipDeployment: "false" + +#INT alerting profiles for EMEA/NA/CN +CDccc.EMEA-PreProd: +- name: CD_ccc INT +- tag: ccc +- mzId: CD_ccc/management-zone/CDccc.id +- env: INT +- skipDeployment: "false" +CDccc.NA-PreProd: +- name: CD_ccc INT +- tag: ccc +- mzId: CD_ccc/management-zone/CDccc.id +- env: INT +- skipDeployment: "false" +CDccc.CN-PreProd: +- name: CD_ccc INT +- tag: ccc +- mzId: CD_ccc/management-zone/CDccc.id +- env: INT +- skipDeployment: "false" \ No newline at end of file diff --git a/BMW-Dynatrace-config/CD_ccc/alerting-profile/default.json b/BMW-Dynatrace-config/CD_ccc/alerting-profile/default.json new file mode 100644 index 00000000..681a4c64 --- /dev/null +++ b/BMW-Dynatrace-config/CD_ccc/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_ccc/calculated-metrics-service/README.md b/BMW-Dynatrace-config/CD_ccc/calculated-metrics-service/README.md new file mode 100644 index 00000000..f958f929 --- /dev/null +++ b/BMW-Dynatrace-config/CD_ccc/calculated-metrics-service/README.md @@ -0,0 +1,4 @@ + +### How to configure custom metrics? + +Please refer to [this](https://atc.bmwgroup.net/confluence/display/OPMAAS/Documentation+%7C+Calculated+Metrics) page to configure your custom metrics. \ No newline at end of file diff --git a/BMW-Dynatrace-config/CD_ccc/conditional-naming-processgroup/README.md b/BMW-Dynatrace-config/CD_ccc/conditional-naming-processgroup/README.md new file mode 100644 index 00000000..8c10d2b4 --- /dev/null +++ b/BMW-Dynatrace-config/CD_ccc/conditional-naming-processgroup/README.md @@ -0,0 +1,4 @@ + +### How to configure process groups? + +Please refer to [this](https://atc.bmwgroup.net/confluence/display/OPMAAS/Documentation+%7C+Process+Group+Naming) page to configure your process groups. \ No newline at end of file diff --git a/BMW-Dynatrace-config/CD_ccc/conditional-naming-processgroup/conditional-naming-processgroup.yaml b/BMW-Dynatrace-config/CD_ccc/conditional-naming-processgroup/conditional-naming-processgroup.yaml new file mode 100644 index 00000000..bbd78ca0 --- /dev/null +++ b/BMW-Dynatrace-config/CD_ccc/conditional-naming-processgroup/conditional-naming-processgroup.yaml @@ -0,0 +1,8 @@ +config: +- CDccc: template.json + +CDccc: +- name: MyProcessNamingRule +- nameFormat: "{ProcessGroup:KubernetesNamespace/regex-example}" +- tag: ccc +- skipDeployment: "true" diff --git a/BMW-Dynatrace-config/CD_ccc/conditional-naming-processgroup/template.json b/BMW-Dynatrace-config/CD_ccc/conditional-naming-processgroup/template.json new file mode 100644 index 00000000..7c039808 --- /dev/null +++ b/BMW-Dynatrace-config/CD_ccc/conditional-naming-processgroup/template.json @@ -0,0 +1,29 @@ +{ + "displayName": "{{.name}}", + "enabled": true, + "metadata": { + "clusterVersion": "1.214.107.20210407-223952", + "configurationVersions": [ + 0 + ] + }, + "nameFormat": "{{.nameFormat}}", + "rules": [ + { + "comparisonInfo": { + "negate": false, + "operator": "EQUALS", + "type": "TAG", + "value": { + "context": "CONTEXTLESS", + "key": "Component", + "value": "{{.tag}}" + } + }, + "key": { + "attribute": "PROCESS_GROUP_TAGS" + } + } + ], + "type": "PROCESS_GROUP" +} \ No newline at end of file diff --git a/BMW-Dynatrace-config/CD_ccc/conditional-naming-service/README.md b/BMW-Dynatrace-config/CD_ccc/conditional-naming-service/README.md new file mode 100644 index 00000000..93dc620b --- /dev/null +++ b/BMW-Dynatrace-config/CD_ccc/conditional-naming-service/README.md @@ -0,0 +1,4 @@ + +### How to configure service naming + +Please refer to [this](https://atc.bmwgroup.net/confluence/display/OPMAAS/Documentation+%7C+Service+Naming) page to configure your service naming. \ No newline at end of file diff --git a/BMW-Dynatrace-config/CD_ccc/conditional-naming-service/conditional-naming-service.yaml b/BMW-Dynatrace-config/CD_ccc/conditional-naming-service/conditional-naming-service.yaml new file mode 100644 index 00000000..bbd78ca0 --- /dev/null +++ b/BMW-Dynatrace-config/CD_ccc/conditional-naming-service/conditional-naming-service.yaml @@ -0,0 +1,8 @@ +config: +- CDccc: template.json + +CDccc: +- name: MyProcessNamingRule +- nameFormat: "{ProcessGroup:KubernetesNamespace/regex-example}" +- tag: ccc +- skipDeployment: "true" diff --git a/BMW-Dynatrace-config/CD_ccc/conditional-naming-service/template.json b/BMW-Dynatrace-config/CD_ccc/conditional-naming-service/template.json new file mode 100644 index 00000000..5d4fac56 --- /dev/null +++ b/BMW-Dynatrace-config/CD_ccc/conditional-naming-service/template.json @@ -0,0 +1,29 @@ +{ + "displayName": "{{.name}}", + "enabled": true, + "metadata": { + "clusterVersion": "1.214.107.20210407-223952", + "configurationVersions": [ + 0 + ] + }, + "nameFormat": "{{.nameFormat}}", + "rules": [ + { + "comparisonInfo": { + "negate": false, + "operator": "EQUALS", + "type": "TAG", + "value": { + "context": "CONTEXTLESS", + "key": "Component", + "value": "{{.tag}}" + } + }, + "key": { + "attribute": "SERVICE_TAGS" + } + } + ], + "type": "SERVICE" +} \ No newline at end of file diff --git a/BMW-Dynatrace-config/CD_ccc/custom-service-java/README.md b/BMW-Dynatrace-config/CD_ccc/custom-service-java/README.md new file mode 100644 index 00000000..a467a6f8 --- /dev/null +++ b/BMW-Dynatrace-config/CD_ccc/custom-service-java/README.md @@ -0,0 +1,4 @@ + +### How to configure custom services? + +Please refer to [this](https://atc.bmwgroup.net/confluence/display/OPMAAS/Documentation+%7C+Custom+Services) page to configure your custom services. \ No newline at end of file diff --git a/BMW-Dynatrace-config/CD_ccc/custom-service-java/custom-service-java.yaml b/BMW-Dynatrace-config/CD_ccc/custom-service-java/custom-service-java.yaml new file mode 100644 index 00000000..25f8a028 --- /dev/null +++ b/BMW-Dynatrace-config/CD_ccc/custom-service-java/custom-service-java.yaml @@ -0,0 +1,9 @@ +config: +- customService1: template-1-1.json + +customService1: +- name: myJOYNRService +- className: com.bmw.cc.conn.this.is.just.an.exampleClasss +- methodName: exampleJoynrMethod +- returnType: void +- skipDeployment: "true" \ No newline at end of file diff --git a/BMW-Dynatrace-config/CD_ccc/custom-service-java/template-1-1.json b/BMW-Dynatrace-config/CD_ccc/custom-service-java/template-1-1.json new file mode 100644 index 00000000..b3003515 --- /dev/null +++ b/BMW-Dynatrace-config/CD_ccc/custom-service-java/template-1-1.json @@ -0,0 +1,23 @@ +{ + "enabled": true, + "name": "{{.name}}", + "processGroups": [], + "queueEntryPoint": false, + "queueEntryPointType": null, + "rules": [ + { + "annotations": [], + "className": "{{.className}}", + "enabled": true, + "fileName": "", + "matcher": "EQUALS", + "methodRules": [ + { + "argumentTypes": [], + "methodName": "{{.methodName}}", + "returnType": "{{.returnType}}" + } + ] + } + ] +} \ No newline at end of file diff --git a/BMW-Dynatrace-config/CD_CallCenterClient/dashboard/README.md b/BMW-Dynatrace-config/CD_ccc/dashboard/README.md similarity index 92% rename from BMW-Dynatrace-config/CD_CallCenterClient/dashboard/README.md rename to BMW-Dynatrace-config/CD_ccc/dashboard/README.md index f2f821ec..2b6d5717 100644 --- a/BMW-Dynatrace-config/CD_CallCenterClient/dashboard/README.md +++ b/BMW-Dynatrace-config/CD_ccc/dashboard/README.md @@ -1,4 +1,4 @@ - -### How to configure dashboards? - + +### 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_ccc/dashboard/dashboard.yaml b/BMW-Dynatrace-config/CD_ccc/dashboard/dashboard.yaml new file mode 100644 index 00000000..e4bd1c98 --- /dev/null +++ b/BMW-Dynatrace-config/CD_ccc/dashboard/dashboard.yaml @@ -0,0 +1,125 @@ +config: +- CDccc-PROD: default.json +- CDccc-E2E: default.json +- CDccc-INT: default.json +- CDccc-TEST: default.json + +#PROD dashboards for EMEA/NA/CN Prod +CDccc-PROD: +- name: CD_ccc PROD +- mzName: CD_ccc/management-zone/CDccc.name +- mzId: CD_ccc/management-zone/CDccc.id +- tag: ccc +- env: PROD +- skipDeployment: "true" +CDccc-PROD.EMEA-Prod: +- name: CD_ccc PROD +- mzName: CD_ccc/management-zone/CDccc.name +- mzId: CD_ccc/management-zone/CDccc.id +- tag: ccc +- env: PROD +- skipDeployment: "false" +CDccc-PROD.NA-Prod: +- name: CD_ccc PROD +- mzName: CD_ccc/management-zone/CDccc.name +- mzId: CD_ccc/management-zone/CDccc.id +- tag: ccc +- env: PROD +- skipDeployment: "false" +CDccc-PROD.CN-Prod: +- name: CD_ccc PROD +- mzName: CD_ccc/management-zone/CDccc.name +- mzId: CD_ccc/management-zone/CDccc.id +- tag: ccc +- env: PROD +- skipDeployment: "false" + +#E2E dashboards for EMEA/NA/CN Prod +CDccc-E2E: +- name: CD_ccc E2E +- mzName: CD_ccc/management-zone/CDccc.name +- mzId: CD_ccc/management-zone/CDccc.id +- tag: ccc +- env: E2E +- skipDeployment: "true" +CDccc-E2E.EMEA-Prod: +- name: CD_ccc E2E +- mzName: CD_ccc/management-zone/CDccc.name +- mzId: CD_ccc/management-zone/CDccc.id +- tag: ccc +- env: E2E +- skipDeployment: "false" +CDccc-E2E.NA-Prod: +- name: CD_ccc E2E +- mzName: CD_ccc/management-zone/CDccc.name +- mzId: CD_ccc/management-zone/CDccc.id +- tag: ccc +- env: E2E +- skipDeployment: "false" +CDccc-E2E.CN-Prod: +- name: CD_ccc E2E +- mzName: CD_ccc/management-zone/CDccc.name +- mzId: CD_ccc/management-zone/CDccc.id +- tag: ccc +- env: E2E +- skipDeployment: "false" + +#INT dashboards for EMEA/NA/CN PreProd +CDccc-INT: +- name: CD_ccc INT +- mzName: CD_ccc/management-zone/CDccc.name +- mzId: CD_ccc/management-zone/CDccc.id +- tag: ccc +- env: INT +- skipDeployment: "true" +CDccc-INT.EMEA-PreProd: +- name: CD_ccc INT +- mzName: CD_ccc/management-zone/CDccc.name +- mzId: CD_ccc/management-zone/CDccc.id +- tag: ccc +- env: INT +- skipDeployment: "false" +CDccc-INT.NA-PreProd: +- name: CD_ccc INT +- mzName: CD_ccc/management-zone/CDccc.name +- mzId: CD_ccc/management-zone/CDccc.id +- tag: ccc +- env: INT +- skipDeployment: "false" +CDccc-INT.CN-PreProd: +- name: CD_ccc INT +- mzName: CD_ccc/management-zone/CDccc.name +- mzId: CD_ccc/management-zone/CDccc.id +- tag: ccc +- env: INT +- skipDeployment: "false" + +#TEST dashboards for EMEA/NA/CN PreProd +CDccc-TEST: +- name: CD_ccc TEST +- mzName: CD_ccc/management-zone/CDccc.name +- mzId: CD_ccc/management-zone/CDccc.id +- tag: ccc +- env: TEST +- skipDeployment: "true" +CDccc-TEST.EMEA-PreProd: +- name: CD_ccc TEST +- mzName: CD_ccc/management-zone/CDccc.name +- mzId: CD_ccc/management-zone/CDccc.id +- tag: ccc +- env: TEST +- skipDeployment: "false" +CDccc-TEST.NA-PreProd: +- name: CD_ccc TEST +- mzName: CD_ccc/management-zone/CDccc.name +- mzId: CD_ccc/management-zone/CDccc.id +- tag: ccc +- env: TEST +- skipDeployment: "false" +CDccc-TEST.CN-PreProd: +- name: CD_ccc TEST +- mzName: CD_ccc/management-zone/CDccc.name +- mzId: CD_ccc/management-zone/CDccc.id +- tag: ccc +- env: TEST +- skipDeployment: "false" \ No newline at end of file diff --git a/BMW-Dynatrace-config/CD_CallCenterClient/dashboard/default.json b/BMW-Dynatrace-config/CD_ccc/dashboard/default.json similarity index 100% rename from BMW-Dynatrace-config/CD_CallCenterClient/dashboard/default.json rename to BMW-Dynatrace-config/CD_ccc/dashboard/default.json diff --git a/BMW-Dynatrace-config/CD_CallCenterClient/management-zone/README.md b/BMW-Dynatrace-config/CD_ccc/management-zone/README.md similarity index 87% rename from BMW-Dynatrace-config/CD_CallCenterClient/management-zone/README.md rename to BMW-Dynatrace-config/CD_ccc/management-zone/README.md index 3716858c..ffe9d6e3 100644 --- a/BMW-Dynatrace-config/CD_CallCenterClient/management-zone/README.md +++ b/BMW-Dynatrace-config/CD_ccc/management-zone/README.md @@ -1,4 +1,4 @@ - -### How to configure management zones? - + +### 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_CallCenterClient/management-zone/default.json b/BMW-Dynatrace-config/CD_ccc/management-zone/default.json similarity index 100% rename from BMW-Dynatrace-config/CD_CallCenterClient/management-zone/default.json rename to BMW-Dynatrace-config/CD_ccc/management-zone/default.json diff --git a/BMW-Dynatrace-config/CD_ccc/management-zone/management-zone.yaml b/BMW-Dynatrace-config/CD_ccc/management-zone/management-zone.yaml new file mode 100644 index 00000000..c8203091 --- /dev/null +++ b/BMW-Dynatrace-config/CD_ccc/management-zone/management-zone.yaml @@ -0,0 +1,6 @@ +config: +- CDccc: default.json + +CDccc: +- name: CD_ccc +- tag: ccc diff --git a/BMW-Dynatrace-config/CD_ccc/notification/README.md b/BMW-Dynatrace-config/CD_ccc/notification/README.md new file mode 100644 index 00000000..5ba3825a --- /dev/null +++ b/BMW-Dynatrace-config/CD_ccc/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_ccc/notification/email.json b/BMW-Dynatrace-config/CD_ccc/notification/email.json new file mode 100644 index 00000000..486642a7 --- /dev/null +++ b/BMW-Dynatrace-config/CD_ccc/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_ccc/notification/itsm.json b/BMW-Dynatrace-config/CD_ccc/notification/itsm.json new file mode 100644 index 00000000..677ef0ea --- /dev/null +++ b/BMW-Dynatrace-config/CD_ccc/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_ccc/notification/msTeams.json b/BMW-Dynatrace-config/CD_ccc/notification/msTeams.json new file mode 100644 index 00000000..33e92cf6 --- /dev/null +++ b/BMW-Dynatrace-config/CD_ccc/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_ccc/notification/notification.yaml b/BMW-Dynatrace-config/CD_ccc/notification/notification.yaml new file mode 100644 index 00000000..b0c0c46b --- /dev/null +++ b/BMW-Dynatrace-config/CD_ccc/notification/notification.yaml @@ -0,0 +1,102 @@ +config: +- CDccc: msTeams.json +- CDcccITSM: itsm.json + +# Notification System for EMEA/NA/CN Prod msTeams +CDccc.EMEA-Prod: +- name: CD_ccc PROD +- alertingProfile: CD_ccc/alerting-profile/CDccc.id +- webhook: https://empty +- skipDeployment: "true" +CDccc.NA-Prod: +- name: CD_ccc PROD +- alertingProfile: CD_ccc/alerting-profile/CDccc.id +- webhook: https://empty +- skipDeployment: "true" +CDccc.CN-Prod: +- name: CD_ccc PROD +- alertingProfile: CD_ccc/alerting-profile/CDccc.id +- webhook: https://empty +- skipDeployment: "true" + +# Notification System for EMEA/NA/CN PreProd msTeams +CDccc.EMEA-PreProd: +- name: CD_ccc INT +- alertingProfile: CD_ccc/alerting-profile/CDccc.id +- webhook: https://empty +- skipDeployment: "true" +CDccc.NA-PreProd: +- name: CD_ccc INT +- alertingProfile: CD_ccc/alerting-profile/CDccc.id +- webhook: https://empty +- skipDeployment: "true" +CDccc.CN-PreProd: +- name: CD_ccc INT +- alertingProfile: CD_ccc/alerting-profile/CDccc.id +- webhook: https://empty +- skipDeployment: "true" + + +# Notification System for EMEA/NA/CN Prod ITSM +CDcccITSM.EMEA-Prod: +- name: CD_ccc ITSM PROD +- alertingProfile: CD_ccc/alerting-profile/CDccc.id +- webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1 +- contractid: "10APP11906401" +- appdid: "TEST123" +- mzName: CD_ccc/management-zone/CDccc.id +- DTEnvironment: https://xxu26128.live.dynatrace.com +- skipDeployment: "true" + +CDcccITSM.NA-Prod: +- name: CD_ccc ITSM PROD +- alertingProfile: CD_ccc/alerting-profile/CDccc.id +- webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1 +- contractid: "10APP11906401" +- appdid: "TEST123" +- mzName: CD_ccc/management-zone/CDccc.id +- DTEnvironment: https://xxu26128.live.dynatrace.com +- skipDeployment: "true" + + +CDcccITSM.CN-Prod: +- name: CD_ccc ITSM PROD +- alertingProfile: CD_ccc/alerting-profile/CDccc.id +- webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1 +- contractid: "10APP11906401" +- appdid: "TEST123" +- mzName: CD_ccc/management-zone/CDccc.id +- DTEnvironment: https://xxu26128.live.dynatrace.com +- skipDeployment: "true" + +CDcccITSM.EMEA-PreProd: +- name: CD_ccc ITSM INT +- alertingProfile: CD_ccc/alerting-profile/CDccc.id +- webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1 +- contractid: "10APP11906401" +- appdid: "TEST123" +- mzName: CD_ccc/management-zone/CDccc.id +- DTEnvironment: https://xxu26128.live.dynatrace.com +- skipDeployment: "true" + +CDcccITSM.NA-PreProd: +- name: CD_ccc ITSM INT +- alertingProfile: CD_ccc/alerting-profile/CDccc.id +- webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1 +- contractid: "10APP11906401" +- appdid: "TEST123" +- mzName: CD_ccc/management-zone/CDccc.id +- DTEnvironment: https://xxu26128.live.dynatrace.com +- skipDeployment: "true" + + +CDcccITSM.CN-PreProd: +- name: CD_ccc ITSM INT +- alertingProfile: CD_ccc/alerting-profile/CDccc.id +- webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1 +- contractid: "10APP11906401" +- appdid: "TEST123" +- mzName: CD_ccc/management-zone/CDccc.id +- DTEnvironment: https://xxu26128.live.dynatrace.com +- skipDeployment: "true" + diff --git a/BMW-Dynatrace-config/CD_ccc/synthetic-monitor/README.md b/BMW-Dynatrace-config/CD_ccc/synthetic-monitor/README.md new file mode 100644 index 00000000..04d7949f --- /dev/null +++ b/BMW-Dynatrace-config/CD_ccc/synthetic-monitor/README.md @@ -0,0 +1,4 @@ + +### How to configure synthetics? + +Please refer to [this](https://atc.bmwgroup.net/confluence/display/OPMAAS/Documentation+%7C+Synthetic+Monitors) page to configure your synthetics. \ No newline at end of file diff --git a/BMW-Dynatrace-config/CD_ccc/synthetic-monitor/default.json b/BMW-Dynatrace-config/CD_ccc/synthetic-monitor/default.json new file mode 100644 index 00000000..cf83039b --- /dev/null +++ b/BMW-Dynatrace-config/CD_ccc/synthetic-monitor/default.json @@ -0,0 +1,82 @@ +{ + "anomalyDetection": { + "loadingTimeThresholds": { + "enabled": false, + "thresholds": [ + { + "type": "TOTAL", + "valueMs": 0 + } + ] + }, + "outageHandling": { + "globalOutage": true, + "localOutage": false, + "localOutagePolicy": { + "affectedLocations": 1, + "consecutiveRuns": 3 + } + } + }, + "automaticallyAssignedApps": [], + "enabled": true, + "frequencyMin": 1, + "locations": [ + "{{.location}}" + ], + "managementZones": [ + { + "id": "{{.mzId}}", + "name": "{{.mzName}}" + } + ], + "manuallyAssignedApps": [], + "name": "{{.name}}", + "requests": [ + { + "entityId": "HTTP_CHECK_STEP-0BA53EC80CD7EE5A", + "name": "{{.name}}", + "sequenceNumber": 1 + } + ], + "script": { + "requests": [ + { + "configuration": { + "acceptAnyCertificate": true, + "followRedirects": true, + "requestHeaders": [ + { + "name": "accept", + "value": "application/json" + }, + { + "name": "Content-Type", + "value": "application/json" + }, + { + "name": "api_key", + "value": "355DE89C-7B72-4EA3-BDD8-157C79EB2C23" + } + ] + }, + "description": "{{.name}}", + "method": "GET", + "url": "{{.endpoint}}", + "validation": { + "rules": [ + { + "passIfFound": true, + "type": "httpStatusesList", + "value": "200" + } + ], + "rulesChaining": "or" + } + } + ], + "version": "1.0" + }, + "tags": [], + "type": "HTTP" +} \ No newline at end of file diff --git a/BMW-Dynatrace-config/CD_ccc/synthetic-monitor/synthetic-monitor.yaml b/BMW-Dynatrace-config/CD_ccc/synthetic-monitor/synthetic-monitor.yaml new file mode 100644 index 00000000..5d211acf --- /dev/null +++ b/BMW-Dynatrace-config/CD_ccc/synthetic-monitor/synthetic-monitor.yaml @@ -0,0 +1,10 @@ +config: +- ccc: default.json + +ccc: +- name: CD_ccc - +- mzName: CD_ccc/management-zone/CDccc.name +- mzId: CD_ccc/management-zone/CDccc.id +- endpoint: +- location: +- skipDeployment: "true" \ No newline at end of file