From 363e1a7cc91aa5ae1ce8c22ca77910158dba954a Mon Sep 17 00:00:00 2001 From: ermisw Date: Mon, 15 Nov 2021 11:52:54 +0100 Subject: [PATCH] initial new nop management zones --- .../alerting-profile/alerting-profile.yaml | 37 ++++++ .../alerting-profile/default.json | 78 +++++++++++ .../calculated-metrics-service/README.md | 4 + .../conditional-naming-processgroup/README.md | 4 + .../conditional-naming-processgroup.yaml | 7 + .../template.json | 29 +++++ .../conditional-naming-service/README.md | 4 + .../conditional-naming-service.yaml | 7 + .../conditional-naming-service/template.json | 29 +++++ .../custom-service-java/README.md | 4 + .../custom-service-java.yaml | 9 ++ .../custom-service-java/template-1-1.json | 23 ++++ .../CD_nop-admin/dashboard/dashboard.yaml | 120 ++++++++--------- .../CD_nop-admin/dashboard/default.json | 62 ++++++--- .../CD_nop-admin/management-zone/default.json | 121 +++--------------- .../management-zone/management-zone.yaml | 6 +- .../CD_nop-admin/notification/README.md | 4 + .../CD_nop-admin/notification/email.json | 13 ++ .../CD_nop-admin/notification/itsm.json | 20 +++ .../CD_nop-admin/notification/msTeams.json | 11 ++ .../notification/notification.yaml | 102 +++++++++++++++ .../CD_nop-admin/synthetic-monitor/README.md | 4 + .../synthetic-monitor/default.json | 82 ++++++++++++ .../synthetic-monitor/synthetic-monitor.yaml | 10 ++ .../alerting-profile/alerting-profile.yaml | 37 ++++++ .../alerting-profile/default.json | 78 +++++++++++ .../calculated-metrics-service/README.md | 4 + .../conditional-naming-processgroup/README.md | 4 + .../conditional-naming-processgroup.yaml | 7 + .../template.json | 29 +++++ .../conditional-naming-service/README.md | 4 + .../conditional-naming-service.yaml | 7 + .../conditional-naming-service/template.json | 29 +++++ .../custom-service-java/README.md | 4 + .../custom-service-java.yaml | 9 ++ .../custom-service-java/template-1-1.json | 23 ++++ .../CD_nop-archive/dashboard/dashboard.yaml | 120 ++++++++--------- .../CD_nop-archive/dashboard/default.json | 62 ++++++--- .../management-zone/default.json | 121 +++--------------- .../management-zone/management-zone.yaml | 6 +- .../CD_nop-archive/notification/README.md | 4 + .../CD_nop-archive/notification/email.json | 13 ++ .../CD_nop-archive/notification/itsm.json | 20 +++ .../CD_nop-archive/notification/msTeams.json | 11 ++ .../notification/notification.yaml | 102 +++++++++++++++ .../synthetic-monitor/README.md | 4 + .../synthetic-monitor/default.json | 82 ++++++++++++ .../synthetic-monitor/synthetic-monitor.yaml | 10 ++ .../alerting-profile/alerting-profile.yaml | 37 ++++++ .../alerting-profile/default.json | 78 +++++++++++ .../calculated-metrics-service/README.md | 4 + .../conditional-naming-processgroup/README.md | 4 + .../conditional-naming-processgroup.yaml | 7 + .../template.json | 29 +++++ .../conditional-naming-service/README.md | 4 + .../conditional-naming-service.yaml | 7 + .../conditional-naming-service/template.json | 29 +++++ .../custom-service-java/README.md | 4 + .../custom-service-java.yaml | 9 ++ .../custom-service-java/template-1-1.json | 23 ++++ .../CD_nop-trigger/dashboard/dashboard.yaml | 120 ++++++++--------- .../CD_nop-trigger/dashboard/default.json | 62 ++++++--- .../management-zone/default.json | 121 +++--------------- .../management-zone/management-zone.yaml | 6 +- .../CD_nop-trigger/notification/README.md | 4 + .../CD_nop-trigger/notification/email.json | 13 ++ .../CD_nop-trigger/notification/itsm.json | 20 +++ .../CD_nop-trigger/notification/msTeams.json | 11 ++ .../notification/notification.yaml | 102 +++++++++++++++ .../synthetic-monitor/README.md | 4 + .../synthetic-monitor/default.json | 82 ++++++++++++ .../synthetic-monitor/synthetic-monitor.yaml | 10 ++ 72 files changed, 1785 insertions(+), 585 deletions(-) create mode 100644 BMW-Dynatrace-config/CD_nop-admin/alerting-profile/alerting-profile.yaml create mode 100644 BMW-Dynatrace-config/CD_nop-admin/alerting-profile/default.json create mode 100644 BMW-Dynatrace-config/CD_nop-admin/calculated-metrics-service/README.md create mode 100644 BMW-Dynatrace-config/CD_nop-admin/conditional-naming-processgroup/README.md create mode 100644 BMW-Dynatrace-config/CD_nop-admin/conditional-naming-processgroup/conditional-naming-processgroup.yaml create mode 100644 BMW-Dynatrace-config/CD_nop-admin/conditional-naming-processgroup/template.json create mode 100644 BMW-Dynatrace-config/CD_nop-admin/conditional-naming-service/README.md create mode 100644 BMW-Dynatrace-config/CD_nop-admin/conditional-naming-service/conditional-naming-service.yaml create mode 100644 BMW-Dynatrace-config/CD_nop-admin/conditional-naming-service/template.json create mode 100644 BMW-Dynatrace-config/CD_nop-admin/custom-service-java/README.md create mode 100644 BMW-Dynatrace-config/CD_nop-admin/custom-service-java/custom-service-java.yaml create mode 100644 BMW-Dynatrace-config/CD_nop-admin/custom-service-java/template-1-1.json create mode 100644 BMW-Dynatrace-config/CD_nop-admin/notification/README.md create mode 100644 BMW-Dynatrace-config/CD_nop-admin/notification/email.json create mode 100644 BMW-Dynatrace-config/CD_nop-admin/notification/itsm.json create mode 100644 BMW-Dynatrace-config/CD_nop-admin/notification/msTeams.json create mode 100644 BMW-Dynatrace-config/CD_nop-admin/notification/notification.yaml create mode 100644 BMW-Dynatrace-config/CD_nop-admin/synthetic-monitor/README.md create mode 100644 BMW-Dynatrace-config/CD_nop-admin/synthetic-monitor/default.json create mode 100644 BMW-Dynatrace-config/CD_nop-admin/synthetic-monitor/synthetic-monitor.yaml create mode 100644 BMW-Dynatrace-config/CD_nop-archive/alerting-profile/alerting-profile.yaml create mode 100644 BMW-Dynatrace-config/CD_nop-archive/alerting-profile/default.json create mode 100644 BMW-Dynatrace-config/CD_nop-archive/calculated-metrics-service/README.md create mode 100644 BMW-Dynatrace-config/CD_nop-archive/conditional-naming-processgroup/README.md create mode 100644 BMW-Dynatrace-config/CD_nop-archive/conditional-naming-processgroup/conditional-naming-processgroup.yaml create mode 100644 BMW-Dynatrace-config/CD_nop-archive/conditional-naming-processgroup/template.json create mode 100644 BMW-Dynatrace-config/CD_nop-archive/conditional-naming-service/README.md create mode 100644 BMW-Dynatrace-config/CD_nop-archive/conditional-naming-service/conditional-naming-service.yaml create mode 100644 BMW-Dynatrace-config/CD_nop-archive/conditional-naming-service/template.json create mode 100644 BMW-Dynatrace-config/CD_nop-archive/custom-service-java/README.md create mode 100644 BMW-Dynatrace-config/CD_nop-archive/custom-service-java/custom-service-java.yaml create mode 100644 BMW-Dynatrace-config/CD_nop-archive/custom-service-java/template-1-1.json create mode 100644 BMW-Dynatrace-config/CD_nop-archive/notification/README.md create mode 100644 BMW-Dynatrace-config/CD_nop-archive/notification/email.json create mode 100644 BMW-Dynatrace-config/CD_nop-archive/notification/itsm.json create mode 100644 BMW-Dynatrace-config/CD_nop-archive/notification/msTeams.json create mode 100644 BMW-Dynatrace-config/CD_nop-archive/notification/notification.yaml create mode 100644 BMW-Dynatrace-config/CD_nop-archive/synthetic-monitor/README.md create mode 100644 BMW-Dynatrace-config/CD_nop-archive/synthetic-monitor/default.json create mode 100644 BMW-Dynatrace-config/CD_nop-archive/synthetic-monitor/synthetic-monitor.yaml create mode 100644 BMW-Dynatrace-config/CD_nop-trigger/alerting-profile/alerting-profile.yaml create mode 100644 BMW-Dynatrace-config/CD_nop-trigger/alerting-profile/default.json create mode 100644 BMW-Dynatrace-config/CD_nop-trigger/calculated-metrics-service/README.md create mode 100644 BMW-Dynatrace-config/CD_nop-trigger/conditional-naming-processgroup/README.md create mode 100644 BMW-Dynatrace-config/CD_nop-trigger/conditional-naming-processgroup/conditional-naming-processgroup.yaml create mode 100644 BMW-Dynatrace-config/CD_nop-trigger/conditional-naming-processgroup/template.json create mode 100644 BMW-Dynatrace-config/CD_nop-trigger/conditional-naming-service/README.md create mode 100644 BMW-Dynatrace-config/CD_nop-trigger/conditional-naming-service/conditional-naming-service.yaml create mode 100644 BMW-Dynatrace-config/CD_nop-trigger/conditional-naming-service/template.json create mode 100644 BMW-Dynatrace-config/CD_nop-trigger/custom-service-java/README.md create mode 100644 BMW-Dynatrace-config/CD_nop-trigger/custom-service-java/custom-service-java.yaml create mode 100644 BMW-Dynatrace-config/CD_nop-trigger/custom-service-java/template-1-1.json create mode 100644 BMW-Dynatrace-config/CD_nop-trigger/notification/README.md create mode 100644 BMW-Dynatrace-config/CD_nop-trigger/notification/email.json create mode 100644 BMW-Dynatrace-config/CD_nop-trigger/notification/itsm.json create mode 100644 BMW-Dynatrace-config/CD_nop-trigger/notification/msTeams.json create mode 100644 BMW-Dynatrace-config/CD_nop-trigger/notification/notification.yaml create mode 100644 BMW-Dynatrace-config/CD_nop-trigger/synthetic-monitor/README.md create mode 100644 BMW-Dynatrace-config/CD_nop-trigger/synthetic-monitor/default.json create mode 100644 BMW-Dynatrace-config/CD_nop-trigger/synthetic-monitor/synthetic-monitor.yaml diff --git a/BMW-Dynatrace-config/CD_nop-admin/alerting-profile/alerting-profile.yaml b/BMW-Dynatrace-config/CD_nop-admin/alerting-profile/alerting-profile.yaml new file mode 100644 index 00000000..d85e4955 --- /dev/null +++ b/BMW-Dynatrace-config/CD_nop-admin/alerting-profile/alerting-profile.yaml @@ -0,0 +1,37 @@ +config: +- CDnewComponentTag: default.json + + +#Prod alerting profiles for EMEA/NA/CN +CDnewComponentTag.EMEA-Prod: +- name: CD_nop-admin PROD +- mzId: CD_nop-admin/management-zone/CDnewComponentTag.id +- env: PROD +- skipDeployment: "false" +CDnewComponentTag.NA-Prod: +- name: CD_nop-admin PROD +- mzId: CD_nop-admin/management-zone/CDnewComponentTag.id +- env: PROD +- skipDeployment: "false" +CDnewComponentTag.CN-Prod: +- name: CD_nop-admin PROD +- mzId: CD_nop-admin/management-zone/CDnewComponentTag.id +- env: PROD +- skipDeployment: "false" + +#INT alerting profiles for EMEA/NA/CN +CDnewComponentTag.EMEA-PreProd: +- name: CD_nop-admin INT +- mzId: CD_nop-admin/management-zone/CDnewComponentTag.id +- env: INT +- skipDeployment: "false" +CDnewComponentTag.NA-PreProd: +- name: CD_nop-admin INT +- mzId: CD_nop-admin/management-zone/CDnewComponentTag.id +- env: INT +- skipDeployment: "false" +CDnewComponentTag.CN-PreProd: +- name: CD_nop-admin INT +- mzId: CD_nop-admin/management-zone/CDnewComponentTag.id +- env: INT +- skipDeployment: "false" \ No newline at end of file diff --git a/BMW-Dynatrace-config/CD_nop-admin/alerting-profile/default.json b/BMW-Dynatrace-config/CD_nop-admin/alerting-profile/default.json new file mode 100644 index 00000000..bb81115c --- /dev/null +++ b/BMW-Dynatrace-config/CD_nop-admin/alerting-profile/default.json @@ -0,0 +1,78 @@ +{ + "displayName": "{{.name}}", + "eventTypeFilters": [], + "managementZoneId": "{{.mzId}}", + "mzId": "{{.mzId}}", + "rules": [ + { + "delayInMinutes": 0, + "severityLevel": "AVAILABILITY", + "tagFilter": { + "includeMode": "INCLUDE_ALL", + "tagFilters": [ + { + "context": "CONTEXTLESS", + "key": "Environment", + "value": "{{.env}}" + } + ] + } + }, + { + "delayInMinutes": 10, + "severityLevel": "ERROR", + "tagFilter": { + "includeMode": "INCLUDE_ALL", + "tagFilters": [ + { + "context": "CONTEXTLESS", + "key": "Environment", + "value": "{{.env}}" + } + ] + } + }, + { + "delayInMinutes": 30, + "severityLevel": "PERFORMANCE", + "tagFilter": { + "includeMode": "INCLUDE_ALL", + "tagFilters": [ + { + "context": "CONTEXTLESS", + "key": "Environment", + "value": "{{.env}}" + } + ] + } + }, + { + "delayInMinutes": 30, + "severityLevel": "RESOURCE_CONTENTION", + "tagFilter": { + "includeMode": "INCLUDE_ALL", + "tagFilters": [ + { + "context": "CONTEXTLESS", + "key": "Environment", + "value": "{{.env}}" + } + ] + } + }, + { + "delayInMinutes": 10, + "severityLevel": "CUSTOM_ALERT", + "tagFilter": { + "includeMode": "INCLUDE_ALL", + "tagFilters": [ + { + "context": "CONTEXTLESS", + "key": "Environment", + "value": "{{.env}}" + } + ] + } + } + ] +} \ No newline at end of file diff --git a/BMW-Dynatrace-config/CD_nop-admin/calculated-metrics-service/README.md b/BMW-Dynatrace-config/CD_nop-admin/calculated-metrics-service/README.md new file mode 100644 index 00000000..f958f929 --- /dev/null +++ b/BMW-Dynatrace-config/CD_nop-admin/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_nop-admin/conditional-naming-processgroup/README.md b/BMW-Dynatrace-config/CD_nop-admin/conditional-naming-processgroup/README.md new file mode 100644 index 00000000..8c10d2b4 --- /dev/null +++ b/BMW-Dynatrace-config/CD_nop-admin/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_nop-admin/conditional-naming-processgroup/conditional-naming-processgroup.yaml b/BMW-Dynatrace-config/CD_nop-admin/conditional-naming-processgroup/conditional-naming-processgroup.yaml new file mode 100644 index 00000000..fb9502e8 --- /dev/null +++ b/BMW-Dynatrace-config/CD_nop-admin/conditional-naming-processgroup/conditional-naming-processgroup.yaml @@ -0,0 +1,7 @@ +config: +- CDnewComponentTag: template.json + +CDnewComponentTag: +- name: MyProcessNamingRule +- nameFormat: "{ProcessGroup:KubernetesNamespace/regex-example}" +- skipDeployment: "true" diff --git a/BMW-Dynatrace-config/CD_nop-admin/conditional-naming-processgroup/template.json b/BMW-Dynatrace-config/CD_nop-admin/conditional-naming-processgroup/template.json new file mode 100644 index 00000000..7c039808 --- /dev/null +++ b/BMW-Dynatrace-config/CD_nop-admin/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_nop-admin/conditional-naming-service/README.md b/BMW-Dynatrace-config/CD_nop-admin/conditional-naming-service/README.md new file mode 100644 index 00000000..93dc620b --- /dev/null +++ b/BMW-Dynatrace-config/CD_nop-admin/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_nop-admin/conditional-naming-service/conditional-naming-service.yaml b/BMW-Dynatrace-config/CD_nop-admin/conditional-naming-service/conditional-naming-service.yaml new file mode 100644 index 00000000..fb9502e8 --- /dev/null +++ b/BMW-Dynatrace-config/CD_nop-admin/conditional-naming-service/conditional-naming-service.yaml @@ -0,0 +1,7 @@ +config: +- CDnewComponentTag: template.json + +CDnewComponentTag: +- name: MyProcessNamingRule +- nameFormat: "{ProcessGroup:KubernetesNamespace/regex-example}" +- skipDeployment: "true" diff --git a/BMW-Dynatrace-config/CD_nop-admin/conditional-naming-service/template.json b/BMW-Dynatrace-config/CD_nop-admin/conditional-naming-service/template.json new file mode 100644 index 00000000..5d4fac56 --- /dev/null +++ b/BMW-Dynatrace-config/CD_nop-admin/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_nop-admin/custom-service-java/README.md b/BMW-Dynatrace-config/CD_nop-admin/custom-service-java/README.md new file mode 100644 index 00000000..a467a6f8 --- /dev/null +++ b/BMW-Dynatrace-config/CD_nop-admin/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_nop-admin/custom-service-java/custom-service-java.yaml b/BMW-Dynatrace-config/CD_nop-admin/custom-service-java/custom-service-java.yaml new file mode 100644 index 00000000..25f8a028 --- /dev/null +++ b/BMW-Dynatrace-config/CD_nop-admin/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_nop-admin/custom-service-java/template-1-1.json b/BMW-Dynatrace-config/CD_nop-admin/custom-service-java/template-1-1.json new file mode 100644 index 00000000..b3003515 --- /dev/null +++ b/BMW-Dynatrace-config/CD_nop-admin/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_nop-admin/dashboard/dashboard.yaml b/BMW-Dynatrace-config/CD_nop-admin/dashboard/dashboard.yaml index cbaf9205..6b318d8f 100644 --- a/BMW-Dynatrace-config/CD_nop-admin/dashboard/dashboard.yaml +++ b/BMW-Dynatrace-config/CD_nop-admin/dashboard/dashboard.yaml @@ -1,125 +1,109 @@ config: -- CDnop-admin-PROD: default.json -- CDnop-admin-E2E: default.json -- CDnop-admin-INT: default.json -- CDnop-admin-TEST: default.json +- CDnewComponentTag-PROD: default.json +- CDnewComponentTag-E2E: default.json +- CDnewComponentTag-INT: default.json +- CDnewComponentTag-TEST: default.json #PROD dashboards for EMEA/NA/CN Prod -CDnop-admin-PROD: +CDnewComponentTag-PROD: - name: CD_nop-admin PROD -- mzName: CD_nop-admin/management-zone/CDnop-admin.name -- mzId: CD_nop-admin/management-zone/CDnop-admin.id -- tag: nop-admin +- mzName: CD_nop-admin/management-zone/CDnewComponentTag.name +- mzId: CD_nop-admin/management-zone/CDnewComponentTag.id - env: PROD - skipDeployment: "true" -CDnop-admin-PROD.EMEA-Prod: +CDnewComponentTag-PROD.EMEA-Prod: - name: CD_nop-admin PROD -- mzName: CD_nop-admin/management-zone/CDnop-admin.name -- mzId: CD_nop-admin/management-zone/CDnop-admin.id -- tag: nop-admin +- mzName: CD_nop-admin/management-zone/CDnewComponentTag.name +- mzId: CD_nop-admin/management-zone/CDnewComponentTag.id - env: PROD - skipDeployment: "false" -CDnop-admin-PROD.NA-Prod: +CDnewComponentTag-PROD.NA-Prod: - name: CD_nop-admin PROD -- mzName: CD_nop-admin/management-zone/CDnop-admin.name -- mzId: CD_nop-admin/management-zone/CDnop-admin.id -- tag: nop-admin +- mzName: CD_nop-admin/management-zone/CDnewComponentTag.name +- mzId: CD_nop-admin/management-zone/CDnewComponentTag.id - env: PROD - skipDeployment: "false" -CDnop-admin-PROD.CN-Prod: +CDnewComponentTag-PROD.CN-Prod: - name: CD_nop-admin PROD -- mzName: CD_nop-admin/management-zone/CDnop-admin.name -- mzId: CD_nop-admin/management-zone/CDnop-admin.id -- tag: nop-admin +- mzName: CD_nop-admin/management-zone/CDnewComponentTag.name +- mzId: CD_nop-admin/management-zone/CDnewComponentTag.id - env: PROD - skipDeployment: "false" #E2E dashboards for EMEA/NA/CN Prod -CDnop-admin-E2E: +CDnewComponentTag-E2E: - name: CD_nop-admin E2E -- mzName: CD_nop-admin/management-zone/CDnop-admin.name -- mzId: CD_nop-admin/management-zone/CDnop-admin.id -- tag: nop-admin +- mzName: CD_nop-admin/management-zone/CDnewComponentTag.name +- mzId: CD_nop-admin/management-zone/CDnewComponentTag.id - env: E2E - skipDeployment: "true" -CDnop-admin-E2E.EMEA-Prod: +CDnewComponentTag-E2E.EMEA-Prod: - name: CD_nop-admin E2E -- mzName: CD_nop-admin/management-zone/CDnop-admin.name -- mzId: CD_nop-admin/management-zone/CDnop-admin.id -- tag: nop-admin +- mzName: CD_nop-admin/management-zone/CDnewComponentTag.name +- mzId: CD_nop-admin/management-zone/CDnewComponentTag.id - env: E2E - skipDeployment: "false" -CDnop-admin-E2E.NA-Prod: +CDnewComponentTag-E2E.NA-Prod: - name: CD_nop-admin E2E -- mzName: CD_nop-admin/management-zone/CDnop-admin.name -- mzId: CD_nop-admin/management-zone/CDnop-admin.id -- tag: nop-admin +- mzName: CD_nop-admin/management-zone/CDnewComponentTag.name +- mzId: CD_nop-admin/management-zone/CDnewComponentTag.id - env: E2E - skipDeployment: "false" -CDnop-admin-E2E.CN-Prod: +CDnewComponentTag-E2E.CN-Prod: - name: CD_nop-admin E2E -- mzName: CD_nop-admin/management-zone/CDnop-admin.name -- mzId: CD_nop-admin/management-zone/CDnop-admin.id -- tag: nop-admin +- mzName: CD_nop-admin/management-zone/CDnewComponentTag.name +- mzId: CD_nop-admin/management-zone/CDnewComponentTag.id - env: E2E - skipDeployment: "false" #INT dashboards for EMEA/NA/CN PreProd -CDnop-admin-INT: +CDnewComponentTag-INT: - name: CD_nop-admin INT -- mzName: CD_nop-admin/management-zone/CDnop-admin.name -- mzId: CD_nop-admin/management-zone/CDnop-admin.id -- tag: nop-admin +- mzName: CD_nop-admin/management-zone/CDnewComponentTag.name +- mzId: CD_nop-admin/management-zone/CDnewComponentTag.id - env: INT - skipDeployment: "true" -CDnop-admin-INT.EMEA-PreProd: +CDnewComponentTag-INT.EMEA-PreProd: - name: CD_nop-admin INT -- mzName: CD_nop-admin/management-zone/CDnop-admin.name -- mzId: CD_nop-admin/management-zone/CDnop-admin.id -- tag: nop-admin +- mzName: CD_nop-admin/management-zone/CDnewComponentTag.name +- mzId: CD_nop-admin/management-zone/CDnewComponentTag.id - env: INT - skipDeployment: "false" -CDnop-admin-INT.NA-PreProd: +CDnewComponentTag-INT.NA-PreProd: - name: CD_nop-admin INT -- mzName: CD_nop-admin/management-zone/CDnop-admin.name -- mzId: CD_nop-admin/management-zone/CDnop-admin.id -- tag: nop-admin +- mzName: CD_nop-admin/management-zone/CDnewComponentTag.name +- mzId: CD_nop-admin/management-zone/CDnewComponentTag.id - env: INT - skipDeployment: "false" -CDnop-admin-INT.CN-PreProd: +CDnewComponentTag-INT.CN-PreProd: - name: CD_nop-admin INT -- mzName: CD_nop-admin/management-zone/CDnop-admin.name -- mzId: CD_nop-admin/management-zone/CDnop-admin.id -- tag: nop-admin +- mzName: CD_nop-admin/management-zone/CDnewComponentTag.name +- mzId: CD_nop-admin/management-zone/CDnewComponentTag.id - env: INT - skipDeployment: "false" #TEST dashboards for EMEA/NA/CN PreProd -CDnop-admin-TEST: +CDnewComponentTag-TEST: - name: CD_nop-admin TEST -- mzName: CD_nop-admin/management-zone/CDnop-admin.name -- mzId: CD_nop-admin/management-zone/CDnop-admin.id -- tag: nop-admin +- mzName: CD_nop-admin/management-zone/CDnewComponentTag.name +- mzId: CD_nop-admin/management-zone/CDnewComponentTag.id - env: TEST - skipDeployment: "true" -CDnop-admin-TEST.EMEA-PreProd: +CDnewComponentTag-TEST.EMEA-PreProd: - name: CD_nop-admin TEST -- mzName: CD_nop-admin/management-zone/CDnop-admin.name -- mzId: CD_nop-admin/management-zone/CDnop-admin.id -- tag: nop-admin +- mzName: CD_nop-admin/management-zone/CDnewComponentTag.name +- mzId: CD_nop-admin/management-zone/CDnewComponentTag.id - env: TEST - skipDeployment: "false" -CDnop-admin-TEST.NA-PreProd: +CDnewComponentTag-TEST.NA-PreProd: - name: CD_nop-admin TEST -- mzName: CD_nop-admin/management-zone/CDnop-admin.name -- mzId: CD_nop-admin/management-zone/CDnop-admin.id -- tag: nop-admin +- mzName: CD_nop-admin/management-zone/CDnewComponentTag.name +- mzId: CD_nop-admin/management-zone/CDnewComponentTag.id - env: TEST - skipDeployment: "false" -CDnop-admin-TEST.CN-PreProd: +CDnewComponentTag-TEST.CN-PreProd: - name: CD_nop-admin TEST -- mzName: CD_nop-admin/management-zone/CDnop-admin.name -- mzId: CD_nop-admin/management-zone/CDnop-admin.id -- tag: nop-admin +- mzName: CD_nop-admin/management-zone/CDnewComponentTag.name +- mzId: CD_nop-admin/management-zone/CDnewComponentTag.id - env: TEST - skipDeployment: "false" \ No newline at end of file diff --git a/BMW-Dynatrace-config/CD_nop-admin/dashboard/default.json b/BMW-Dynatrace-config/CD_nop-admin/dashboard/default.json index 6c685810..189767ed 100644 --- a/BMW-Dynatrace-config/CD_nop-admin/dashboard/default.json +++ b/BMW-Dynatrace-config/CD_nop-admin/dashboard/default.json @@ -13,8 +13,9 @@ "timeframe": "-24h to now" }, "tags": [ - "{{.tag}}" - ] + "{{.mzName}}" + ], + "preset": true }, "tiles": [ { @@ -27,7 +28,12 @@ "width": 1064, "height": 304 }, - "tileFilter": {}, + "tileFilter": { + "managementZone": { + "id": "{{.mzId}}", + "name": "{{.mzName}}" + } + }, "filterConfig": { "type": "MIXED", "customName": "Failure rate (HTTP 4xx/5xx errors)", @@ -71,8 +77,7 @@ "filtersPerEntityType": { "SERVICE": { "AUTO_TAGS": [ - "Environment:{{.env}}", - "Component:{{.tag}}" + "Environment:{{.env}}" ] } } @@ -105,7 +110,12 @@ "width": 1064, "height": 38 }, - "tileFilter": {} + "tileFilter": { + "managementZone": { + "id": "{{.mzId}}", + "name": "{{.mzName}}" + } + } }, { "name": "Markdown", @@ -130,7 +140,12 @@ "width": 1064, "height": 304 }, - "tileFilter": {}, + "tileFilter": { + "managementZone": { + "id": "{{.mzId}}", + "name": "{{.mzName}}" + } + }, "filterConfig": { "type": "MIXED", "customName": "Response time, Request Count and Number of Errors", @@ -188,8 +203,7 @@ "filtersPerEntityType": { "SERVICE": { "AUTO_TAGS": [ - "Environment:{{.env}}", - "Component:{{.tag}}" + "Environment:{{.env}}" ] } } @@ -218,7 +232,12 @@ "width": 190, "height": 152 }, - "tileFilter": {}, + "tileFilter": { + "managementZone": { + "id": "{{.mzId}}", + "name": "{{.mzName}}" + } + }, "filterConfig": { "type": "DATABASE", "customName": "Databases", @@ -232,8 +251,7 @@ "filtersPerEntityType": { "DATABASE": { "AUTO_TAGS": [ - "Environment:{{.env}}", - "Component:{{.tag}}" + "Environment:{{.env}}" ] } } @@ -250,7 +268,12 @@ "width": 190, "height": 152 }, - "tileFilter": {}, + "tileFilter": { + "managementZone": { + "id": "{{.mzId}}", + "name": "{{.mzName}}" + } + }, "filterConfig": { "type": "SERVICE", "customName": "Services", @@ -264,8 +287,7 @@ "filtersPerEntityType": { "SERVICE": { "AUTO_TAGS": [ - "Environment:{{.env}}", - "Component:{{.tag}}" + "Environment:{{.env}}" ] } } @@ -282,7 +304,12 @@ "width": 190, "height": 152 }, - "tileFilter": {}, + "tileFilter": { + "managementZone": { + "id": "{{.mzId}}", + "name": "{{.mzName}}" + } + }, "filterConfig": { "type": "HOST", "customName": "Hosts", @@ -296,8 +323,7 @@ "filtersPerEntityType": { "HOST": { "AUTO_TAGS": [ - "Environment:{{.env}}", - "Component:{{.tag}}" + "Environment:{{.env}}" ] } } diff --git a/BMW-Dynatrace-config/CD_nop-admin/management-zone/default.json b/BMW-Dynatrace-config/CD_nop-admin/management-zone/default.json index bffa0c3b..fc96de39 100644 --- a/BMW-Dynatrace-config/CD_nop-admin/management-zone/default.json +++ b/BMW-Dynatrace-config/CD_nop-admin/management-zone/default.json @@ -1,114 +1,23 @@ { "dimensionalRules": [], "name": "{{.name}}", - "rules": [ - { - "conditions": [ + "entitySelectorBasedRules": [ { - "comparisonInfo": { - "negate": false, - "operator": "EQUALS", - "type": "TAG", - "value": { - "context": "CONTEXTLESS", - "key": "Component", - "value": "{{.tag}}" - } - }, - "key": { - "attribute": "SERVICE_TAGS" - } - } - ], - "enabled": true, - "propagationTypes": [ - "SERVICE_TO_PROCESS_GROUP_LIKE", - "SERVICE_TO_HOST_LIKE" - ], - "type": "SERVICE" - }, - { - "conditions": [ + "enabled": true, + "entitySelector": "type(Service),tag({{.compassIDs}})" + }, { - "comparisonInfo": { - "negate": false, - "operator": "EQUALS", - "type": "TAG", - "value": { - "context": "CONTEXTLESS", - "key": "Component", - "value": "{{.tag}}" - } - }, - "key": { - "attribute": "PROCESS_GROUP_TAGS" - } - } - ], - "enabled": true, - "propagationTypes": [ - "PROCESS_GROUP_TO_HOST" - ], - "type": "PROCESS_GROUP" - }, - { - "conditions": [ + "enabled": true, + "entitySelector": "type(SERVICE),databaseName.exists(),toRelationship.calls(type(SERVICE),tag({{.compassIDs}}))" + }, { - "comparisonInfo": { - "negate": false, - "operator": "EQUALS", - "type": "TAG", - "value": { - "context": "CONTEXTLESS", - "key": "Component", - "value": "{{.tag}}" - } - }, - "key": { - "attribute": "HOST_TAGS" - } - } + "enabled": true, + "entitySelector": "type(PROCESS_GROUP_INSTANCE),tag({{.compassIDs}})" + }, + { + "enabled": true, + "entitySelector": "type(HOST),tag({{.compassIDs}})" + } ], - "enabled": true, - "type": "HOST" - }, - { - "conditions": [ - { - "comparisonInfo": { - "caseSensitive": true, - "negate": false, - "operator": "CONTAINS", - "type": "STRING", - "value": "{{.tag}}" - }, - "key": { - "attribute": "CLOUD_APPLICATION_NAMESPACE_NAME" - } - } - ], - "enabled": true, - "propagationTypes": [], - "type": "CLOUD_APPLICATION_NAMESPACE" - }, - { - "conditions": [ - { - "comparisonInfo": { - "caseSensitive": true, - "negate": false, - "operator": "CONTAINS", - "type": "STRING", - "value": "{{.tag}}" - }, - "key": { - "attribute": "CLOUD_APPLICATION_NAME" - } - } - ], - "enabled": true, - "propagationTypes": [], - "type": "CLOUD_APPLICATION" - } - ] + "rules": [] } \ No newline at end of file diff --git a/BMW-Dynatrace-config/CD_nop-admin/management-zone/management-zone.yaml b/BMW-Dynatrace-config/CD_nop-admin/management-zone/management-zone.yaml index f64fc2b1..06fe8f2c 100644 --- a/BMW-Dynatrace-config/CD_nop-admin/management-zone/management-zone.yaml +++ b/BMW-Dynatrace-config/CD_nop-admin/management-zone/management-zone.yaml @@ -1,6 +1,6 @@ config: -- CDnop-admin: default.json +- CDnewComponentTag: default.json -CDnop-admin: +CDnewComponentTag: - name: CD_nop-admin -- tag: nop-admin +- compassIDs: \"compass-id:NOP-Admin\" diff --git a/BMW-Dynatrace-config/CD_nop-admin/notification/README.md b/BMW-Dynatrace-config/CD_nop-admin/notification/README.md new file mode 100644 index 00000000..5ba3825a --- /dev/null +++ b/BMW-Dynatrace-config/CD_nop-admin/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_nop-admin/notification/email.json b/BMW-Dynatrace-config/CD_nop-admin/notification/email.json new file mode 100644 index 00000000..486642a7 --- /dev/null +++ b/BMW-Dynatrace-config/CD_nop-admin/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_nop-admin/notification/itsm.json b/BMW-Dynatrace-config/CD_nop-admin/notification/itsm.json new file mode 100644 index 00000000..677ef0ea --- /dev/null +++ b/BMW-Dynatrace-config/CD_nop-admin/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_nop-admin/notification/msTeams.json b/BMW-Dynatrace-config/CD_nop-admin/notification/msTeams.json new file mode 100644 index 00000000..33e92cf6 --- /dev/null +++ b/BMW-Dynatrace-config/CD_nop-admin/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_nop-admin/notification/notification.yaml b/BMW-Dynatrace-config/CD_nop-admin/notification/notification.yaml new file mode 100644 index 00000000..26ca3e72 --- /dev/null +++ b/BMW-Dynatrace-config/CD_nop-admin/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_nop-admin PROD +- alertingProfile: CD_nop-admin/alerting-profile/CDnewComponentTag.id +- webhook: https://empty +- skipDeployment: "true" +CDnewComponentTag.NA-Prod: +- name: CD_nop-admin PROD +- alertingProfile: CD_nop-admin/alerting-profile/CDnewComponentTag.id +- webhook: https://empty +- skipDeployment: "true" +CDnewComponentTag.CN-Prod: +- name: CD_nop-admin PROD +- alertingProfile: CD_nop-admin/alerting-profile/CDnewComponentTag.id +- webhook: https://empty +- skipDeployment: "true" + +# Notification System for EMEA/NA/CN PreProd msTeams +CDnewComponentTag.EMEA-PreProd: +- name: CD_nop-admin INT +- alertingProfile: CD_nop-admin/alerting-profile/CDnewComponentTag.id +- webhook: https://empty +- skipDeployment: "true" +CDnewComponentTag.NA-PreProd: +- name: CD_nop-admin INT +- alertingProfile: CD_nop-admin/alerting-profile/CDnewComponentTag.id +- webhook: https://empty +- skipDeployment: "true" +CDnewComponentTag.CN-PreProd: +- name: CD_nop-admin INT +- alertingProfile: CD_nop-admin/alerting-profile/CDnewComponentTag.id +- webhook: https://empty +- skipDeployment: "true" + + +# Notification System for EMEA/NA/CN Prod ITSM +CDnewComponentTagITSM.EMEA-Prod: +- name: CD_nop-admin ITSM PROD +- alertingProfile: CD_nop-admin/alerting-profile/CDnewComponentTag.id +- webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1 +- contractid: "10APP11906401" +- appdid: "TEST123" +- mzName: CD_nop-admin/management-zone/CDnewComponentTag.id +- DTEnvironment: https://xxu26128.live.dynatrace.com +- skipDeployment: "true" + +CDnewComponentTagITSM.NA-Prod: +- name: CD_nop-admin ITSM PROD +- alertingProfile: CD_nop-admin/alerting-profile/CDnewComponentTag.id +- webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1 +- contractid: "10APP11906401" +- appdid: "TEST123" +- mzName: CD_nop-admin/management-zone/CDnewComponentTag.id +- DTEnvironment: https://xxu26128.live.dynatrace.com +- skipDeployment: "true" + + +CDnewComponentTagITSM.CN-Prod: +- name: CD_nop-admin ITSM PROD +- alertingProfile: CD_nop-admin/alerting-profile/CDnewComponentTag.id +- webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1 +- contractid: "10APP11906401" +- appdid: "TEST123" +- mzName: CD_nop-admin/management-zone/CDnewComponentTag.id +- DTEnvironment: https://xxu26128.live.dynatrace.com +- skipDeployment: "true" + +CDnewComponentTagITSM.EMEA-PreProd: +- name: CD_nop-admin ITSM INT +- alertingProfile: CD_nop-admin/alerting-profile/CDnewComponentTag.id +- webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1 +- contractid: "10APP11906401" +- appdid: "TEST123" +- mzName: CD_nop-admin/management-zone/CDnewComponentTag.id +- DTEnvironment: https://xxu26128.live.dynatrace.com +- skipDeployment: "true" + +CDnewComponentTagITSM.NA-PreProd: +- name: CD_nop-admin ITSM INT +- alertingProfile: CD_nop-admin/alerting-profile/CDnewComponentTag.id +- webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1 +- contractid: "10APP11906401" +- appdid: "TEST123" +- mzName: CD_nop-admin/management-zone/CDnewComponentTag.id +- DTEnvironment: https://xxu26128.live.dynatrace.com +- skipDeployment: "true" + + +CDnewComponentTagITSM.CN-PreProd: +- name: CD_nop-admin ITSM INT +- alertingProfile: CD_nop-admin/alerting-profile/CDnewComponentTag.id +- webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1 +- contractid: "10APP11906401" +- appdid: "TEST123" +- mzName: CD_nop-admin/management-zone/CDnewComponentTag.id +- DTEnvironment: https://xxu26128.live.dynatrace.com +- skipDeployment: "true" + diff --git a/BMW-Dynatrace-config/CD_nop-admin/synthetic-monitor/README.md b/BMW-Dynatrace-config/CD_nop-admin/synthetic-monitor/README.md new file mode 100644 index 00000000..04d7949f --- /dev/null +++ b/BMW-Dynatrace-config/CD_nop-admin/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_nop-admin/synthetic-monitor/default.json b/BMW-Dynatrace-config/CD_nop-admin/synthetic-monitor/default.json new file mode 100644 index 00000000..cf83039b --- /dev/null +++ b/BMW-Dynatrace-config/CD_nop-admin/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_nop-admin/synthetic-monitor/synthetic-monitor.yaml b/BMW-Dynatrace-config/CD_nop-admin/synthetic-monitor/synthetic-monitor.yaml new file mode 100644 index 00000000..10299aa4 --- /dev/null +++ b/BMW-Dynatrace-config/CD_nop-admin/synthetic-monitor/synthetic-monitor.yaml @@ -0,0 +1,10 @@ +config: +- newComponentTag: default.json + +newComponentTag: +- name: CD_nop-admin - +- mzName: CD_nop-admin/management-zone/CDnewComponentTag.name +- mzId: CD_nop-admin/management-zone/CDnewComponentTag.id +- endpoint: +- location: +- skipDeployment: "true" \ No newline at end of file diff --git a/BMW-Dynatrace-config/CD_nop-archive/alerting-profile/alerting-profile.yaml b/BMW-Dynatrace-config/CD_nop-archive/alerting-profile/alerting-profile.yaml new file mode 100644 index 00000000..429fd7c6 --- /dev/null +++ b/BMW-Dynatrace-config/CD_nop-archive/alerting-profile/alerting-profile.yaml @@ -0,0 +1,37 @@ +config: +- CDnewComponentTag: default.json + + +#Prod alerting profiles for EMEA/NA/CN +CDnewComponentTag.EMEA-Prod: +- name: CD_nop-archive PROD +- mzId: CD_nop-archive/management-zone/CDnewComponentTag.id +- env: PROD +- skipDeployment: "false" +CDnewComponentTag.NA-Prod: +- name: CD_nop-archive PROD +- mzId: CD_nop-archive/management-zone/CDnewComponentTag.id +- env: PROD +- skipDeployment: "false" +CDnewComponentTag.CN-Prod: +- name: CD_nop-archive PROD +- mzId: CD_nop-archive/management-zone/CDnewComponentTag.id +- env: PROD +- skipDeployment: "false" + +#INT alerting profiles for EMEA/NA/CN +CDnewComponentTag.EMEA-PreProd: +- name: CD_nop-archive INT +- mzId: CD_nop-archive/management-zone/CDnewComponentTag.id +- env: INT +- skipDeployment: "false" +CDnewComponentTag.NA-PreProd: +- name: CD_nop-archive INT +- mzId: CD_nop-archive/management-zone/CDnewComponentTag.id +- env: INT +- skipDeployment: "false" +CDnewComponentTag.CN-PreProd: +- name: CD_nop-archive INT +- mzId: CD_nop-archive/management-zone/CDnewComponentTag.id +- env: INT +- skipDeployment: "false" \ No newline at end of file diff --git a/BMW-Dynatrace-config/CD_nop-archive/alerting-profile/default.json b/BMW-Dynatrace-config/CD_nop-archive/alerting-profile/default.json new file mode 100644 index 00000000..bb81115c --- /dev/null +++ b/BMW-Dynatrace-config/CD_nop-archive/alerting-profile/default.json @@ -0,0 +1,78 @@ +{ + "displayName": "{{.name}}", + "eventTypeFilters": [], + "managementZoneId": "{{.mzId}}", + "mzId": "{{.mzId}}", + "rules": [ + { + "delayInMinutes": 0, + "severityLevel": "AVAILABILITY", + "tagFilter": { + "includeMode": "INCLUDE_ALL", + "tagFilters": [ + { + "context": "CONTEXTLESS", + "key": "Environment", + "value": "{{.env}}" + } + ] + } + }, + { + "delayInMinutes": 10, + "severityLevel": "ERROR", + "tagFilter": { + "includeMode": "INCLUDE_ALL", + "tagFilters": [ + { + "context": "CONTEXTLESS", + "key": "Environment", + "value": "{{.env}}" + } + ] + } + }, + { + "delayInMinutes": 30, + "severityLevel": "PERFORMANCE", + "tagFilter": { + "includeMode": "INCLUDE_ALL", + "tagFilters": [ + { + "context": "CONTEXTLESS", + "key": "Environment", + "value": "{{.env}}" + } + ] + } + }, + { + "delayInMinutes": 30, + "severityLevel": "RESOURCE_CONTENTION", + "tagFilter": { + "includeMode": "INCLUDE_ALL", + "tagFilters": [ + { + "context": "CONTEXTLESS", + "key": "Environment", + "value": "{{.env}}" + } + ] + } + }, + { + "delayInMinutes": 10, + "severityLevel": "CUSTOM_ALERT", + "tagFilter": { + "includeMode": "INCLUDE_ALL", + "tagFilters": [ + { + "context": "CONTEXTLESS", + "key": "Environment", + "value": "{{.env}}" + } + ] + } + } + ] +} \ No newline at end of file diff --git a/BMW-Dynatrace-config/CD_nop-archive/calculated-metrics-service/README.md b/BMW-Dynatrace-config/CD_nop-archive/calculated-metrics-service/README.md new file mode 100644 index 00000000..f958f929 --- /dev/null +++ b/BMW-Dynatrace-config/CD_nop-archive/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_nop-archive/conditional-naming-processgroup/README.md b/BMW-Dynatrace-config/CD_nop-archive/conditional-naming-processgroup/README.md new file mode 100644 index 00000000..8c10d2b4 --- /dev/null +++ b/BMW-Dynatrace-config/CD_nop-archive/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_nop-archive/conditional-naming-processgroup/conditional-naming-processgroup.yaml b/BMW-Dynatrace-config/CD_nop-archive/conditional-naming-processgroup/conditional-naming-processgroup.yaml new file mode 100644 index 00000000..fb9502e8 --- /dev/null +++ b/BMW-Dynatrace-config/CD_nop-archive/conditional-naming-processgroup/conditional-naming-processgroup.yaml @@ -0,0 +1,7 @@ +config: +- CDnewComponentTag: template.json + +CDnewComponentTag: +- name: MyProcessNamingRule +- nameFormat: "{ProcessGroup:KubernetesNamespace/regex-example}" +- skipDeployment: "true" diff --git a/BMW-Dynatrace-config/CD_nop-archive/conditional-naming-processgroup/template.json b/BMW-Dynatrace-config/CD_nop-archive/conditional-naming-processgroup/template.json new file mode 100644 index 00000000..7c039808 --- /dev/null +++ b/BMW-Dynatrace-config/CD_nop-archive/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_nop-archive/conditional-naming-service/README.md b/BMW-Dynatrace-config/CD_nop-archive/conditional-naming-service/README.md new file mode 100644 index 00000000..93dc620b --- /dev/null +++ b/BMW-Dynatrace-config/CD_nop-archive/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_nop-archive/conditional-naming-service/conditional-naming-service.yaml b/BMW-Dynatrace-config/CD_nop-archive/conditional-naming-service/conditional-naming-service.yaml new file mode 100644 index 00000000..fb9502e8 --- /dev/null +++ b/BMW-Dynatrace-config/CD_nop-archive/conditional-naming-service/conditional-naming-service.yaml @@ -0,0 +1,7 @@ +config: +- CDnewComponentTag: template.json + +CDnewComponentTag: +- name: MyProcessNamingRule +- nameFormat: "{ProcessGroup:KubernetesNamespace/regex-example}" +- skipDeployment: "true" diff --git a/BMW-Dynatrace-config/CD_nop-archive/conditional-naming-service/template.json b/BMW-Dynatrace-config/CD_nop-archive/conditional-naming-service/template.json new file mode 100644 index 00000000..5d4fac56 --- /dev/null +++ b/BMW-Dynatrace-config/CD_nop-archive/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_nop-archive/custom-service-java/README.md b/BMW-Dynatrace-config/CD_nop-archive/custom-service-java/README.md new file mode 100644 index 00000000..a467a6f8 --- /dev/null +++ b/BMW-Dynatrace-config/CD_nop-archive/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_nop-archive/custom-service-java/custom-service-java.yaml b/BMW-Dynatrace-config/CD_nop-archive/custom-service-java/custom-service-java.yaml new file mode 100644 index 00000000..25f8a028 --- /dev/null +++ b/BMW-Dynatrace-config/CD_nop-archive/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_nop-archive/custom-service-java/template-1-1.json b/BMW-Dynatrace-config/CD_nop-archive/custom-service-java/template-1-1.json new file mode 100644 index 00000000..b3003515 --- /dev/null +++ b/BMW-Dynatrace-config/CD_nop-archive/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_nop-archive/dashboard/dashboard.yaml b/BMW-Dynatrace-config/CD_nop-archive/dashboard/dashboard.yaml index f8eba017..b595a5d6 100644 --- a/BMW-Dynatrace-config/CD_nop-archive/dashboard/dashboard.yaml +++ b/BMW-Dynatrace-config/CD_nop-archive/dashboard/dashboard.yaml @@ -1,125 +1,109 @@ config: -- CDnop-archive-PROD: default.json -- CDnop-archive-E2E: default.json -- CDnop-archive-INT: default.json -- CDnop-archive-TEST: default.json +- CDnewComponentTag-PROD: default.json +- CDnewComponentTag-E2E: default.json +- CDnewComponentTag-INT: default.json +- CDnewComponentTag-TEST: default.json #PROD dashboards for EMEA/NA/CN Prod -CDnop-archive-PROD: +CDnewComponentTag-PROD: - name: CD_nop-archive PROD -- mzName: CD_nop-archive/management-zone/CDnop-archive.name -- mzId: CD_nop-archive/management-zone/CDnop-archive.id -- tag: nop-archive +- mzName: CD_nop-archive/management-zone/CDnewComponentTag.name +- mzId: CD_nop-archive/management-zone/CDnewComponentTag.id - env: PROD - skipDeployment: "true" -CDnop-archive-PROD.EMEA-Prod: +CDnewComponentTag-PROD.EMEA-Prod: - name: CD_nop-archive PROD -- mzName: CD_nop-archive/management-zone/CDnop-archive.name -- mzId: CD_nop-archive/management-zone/CDnop-archive.id -- tag: nop-archive +- mzName: CD_nop-archive/management-zone/CDnewComponentTag.name +- mzId: CD_nop-archive/management-zone/CDnewComponentTag.id - env: PROD - skipDeployment: "false" -CDnop-archive-PROD.NA-Prod: +CDnewComponentTag-PROD.NA-Prod: - name: CD_nop-archive PROD -- mzName: CD_nop-archive/management-zone/CDnop-archive.name -- mzId: CD_nop-archive/management-zone/CDnop-archive.id -- tag: nop-archive +- mzName: CD_nop-archive/management-zone/CDnewComponentTag.name +- mzId: CD_nop-archive/management-zone/CDnewComponentTag.id - env: PROD - skipDeployment: "false" -CDnop-archive-PROD.CN-Prod: +CDnewComponentTag-PROD.CN-Prod: - name: CD_nop-archive PROD -- mzName: CD_nop-archive/management-zone/CDnop-archive.name -- mzId: CD_nop-archive/management-zone/CDnop-archive.id -- tag: nop-archive +- mzName: CD_nop-archive/management-zone/CDnewComponentTag.name +- mzId: CD_nop-archive/management-zone/CDnewComponentTag.id - env: PROD - skipDeployment: "false" #E2E dashboards for EMEA/NA/CN Prod -CDnop-archive-E2E: +CDnewComponentTag-E2E: - name: CD_nop-archive E2E -- mzName: CD_nop-archive/management-zone/CDnop-archive.name -- mzId: CD_nop-archive/management-zone/CDnop-archive.id -- tag: nop-archive +- mzName: CD_nop-archive/management-zone/CDnewComponentTag.name +- mzId: CD_nop-archive/management-zone/CDnewComponentTag.id - env: E2E - skipDeployment: "true" -CDnop-archive-E2E.EMEA-Prod: +CDnewComponentTag-E2E.EMEA-Prod: - name: CD_nop-archive E2E -- mzName: CD_nop-archive/management-zone/CDnop-archive.name -- mzId: CD_nop-archive/management-zone/CDnop-archive.id -- tag: nop-archive +- mzName: CD_nop-archive/management-zone/CDnewComponentTag.name +- mzId: CD_nop-archive/management-zone/CDnewComponentTag.id - env: E2E - skipDeployment: "false" -CDnop-archive-E2E.NA-Prod: +CDnewComponentTag-E2E.NA-Prod: - name: CD_nop-archive E2E -- mzName: CD_nop-archive/management-zone/CDnop-archive.name -- mzId: CD_nop-archive/management-zone/CDnop-archive.id -- tag: nop-archive +- mzName: CD_nop-archive/management-zone/CDnewComponentTag.name +- mzId: CD_nop-archive/management-zone/CDnewComponentTag.id - env: E2E - skipDeployment: "false" -CDnop-archive-E2E.CN-Prod: +CDnewComponentTag-E2E.CN-Prod: - name: CD_nop-archive E2E -- mzName: CD_nop-archive/management-zone/CDnop-archive.name -- mzId: CD_nop-archive/management-zone/CDnop-archive.id -- tag: nop-archive +- mzName: CD_nop-archive/management-zone/CDnewComponentTag.name +- mzId: CD_nop-archive/management-zone/CDnewComponentTag.id - env: E2E - skipDeployment: "false" #INT dashboards for EMEA/NA/CN PreProd -CDnop-archive-INT: +CDnewComponentTag-INT: - name: CD_nop-archive INT -- mzName: CD_nop-archive/management-zone/CDnop-archive.name -- mzId: CD_nop-archive/management-zone/CDnop-archive.id -- tag: nop-archive +- mzName: CD_nop-archive/management-zone/CDnewComponentTag.name +- mzId: CD_nop-archive/management-zone/CDnewComponentTag.id - env: INT - skipDeployment: "true" -CDnop-archive-INT.EMEA-PreProd: +CDnewComponentTag-INT.EMEA-PreProd: - name: CD_nop-archive INT -- mzName: CD_nop-archive/management-zone/CDnop-archive.name -- mzId: CD_nop-archive/management-zone/CDnop-archive.id -- tag: nop-archive +- mzName: CD_nop-archive/management-zone/CDnewComponentTag.name +- mzId: CD_nop-archive/management-zone/CDnewComponentTag.id - env: INT - skipDeployment: "false" -CDnop-archive-INT.NA-PreProd: +CDnewComponentTag-INT.NA-PreProd: - name: CD_nop-archive INT -- mzName: CD_nop-archive/management-zone/CDnop-archive.name -- mzId: CD_nop-archive/management-zone/CDnop-archive.id -- tag: nop-archive +- mzName: CD_nop-archive/management-zone/CDnewComponentTag.name +- mzId: CD_nop-archive/management-zone/CDnewComponentTag.id - env: INT - skipDeployment: "false" -CDnop-archive-INT.CN-PreProd: +CDnewComponentTag-INT.CN-PreProd: - name: CD_nop-archive INT -- mzName: CD_nop-archive/management-zone/CDnop-archive.name -- mzId: CD_nop-archive/management-zone/CDnop-archive.id -- tag: nop-archive +- mzName: CD_nop-archive/management-zone/CDnewComponentTag.name +- mzId: CD_nop-archive/management-zone/CDnewComponentTag.id - env: INT - skipDeployment: "false" #TEST dashboards for EMEA/NA/CN PreProd -CDnop-archive-TEST: +CDnewComponentTag-TEST: - name: CD_nop-archive TEST -- mzName: CD_nop-archive/management-zone/CDnop-archive.name -- mzId: CD_nop-archive/management-zone/CDnop-archive.id -- tag: nop-archive +- mzName: CD_nop-archive/management-zone/CDnewComponentTag.name +- mzId: CD_nop-archive/management-zone/CDnewComponentTag.id - env: TEST - skipDeployment: "true" -CDnop-archive-TEST.EMEA-PreProd: +CDnewComponentTag-TEST.EMEA-PreProd: - name: CD_nop-archive TEST -- mzName: CD_nop-archive/management-zone/CDnop-archive.name -- mzId: CD_nop-archive/management-zone/CDnop-archive.id -- tag: nop-archive +- mzName: CD_nop-archive/management-zone/CDnewComponentTag.name +- mzId: CD_nop-archive/management-zone/CDnewComponentTag.id - env: TEST - skipDeployment: "false" -CDnop-archive-TEST.NA-PreProd: +CDnewComponentTag-TEST.NA-PreProd: - name: CD_nop-archive TEST -- mzName: CD_nop-archive/management-zone/CDnop-archive.name -- mzId: CD_nop-archive/management-zone/CDnop-archive.id -- tag: nop-archive +- mzName: CD_nop-archive/management-zone/CDnewComponentTag.name +- mzId: CD_nop-archive/management-zone/CDnewComponentTag.id - env: TEST - skipDeployment: "false" -CDnop-archive-TEST.CN-PreProd: +CDnewComponentTag-TEST.CN-PreProd: - name: CD_nop-archive TEST -- mzName: CD_nop-archive/management-zone/CDnop-archive.name -- mzId: CD_nop-archive/management-zone/CDnop-archive.id -- tag: nop-archive +- mzName: CD_nop-archive/management-zone/CDnewComponentTag.name +- mzId: CD_nop-archive/management-zone/CDnewComponentTag.id - env: TEST - skipDeployment: "false" \ No newline at end of file diff --git a/BMW-Dynatrace-config/CD_nop-archive/dashboard/default.json b/BMW-Dynatrace-config/CD_nop-archive/dashboard/default.json index 6c685810..189767ed 100644 --- a/BMW-Dynatrace-config/CD_nop-archive/dashboard/default.json +++ b/BMW-Dynatrace-config/CD_nop-archive/dashboard/default.json @@ -13,8 +13,9 @@ "timeframe": "-24h to now" }, "tags": [ - "{{.tag}}" - ] + "{{.mzName}}" + ], + "preset": true }, "tiles": [ { @@ -27,7 +28,12 @@ "width": 1064, "height": 304 }, - "tileFilter": {}, + "tileFilter": { + "managementZone": { + "id": "{{.mzId}}", + "name": "{{.mzName}}" + } + }, "filterConfig": { "type": "MIXED", "customName": "Failure rate (HTTP 4xx/5xx errors)", @@ -71,8 +77,7 @@ "filtersPerEntityType": { "SERVICE": { "AUTO_TAGS": [ - "Environment:{{.env}}", - "Component:{{.tag}}" + "Environment:{{.env}}" ] } } @@ -105,7 +110,12 @@ "width": 1064, "height": 38 }, - "tileFilter": {} + "tileFilter": { + "managementZone": { + "id": "{{.mzId}}", + "name": "{{.mzName}}" + } + } }, { "name": "Markdown", @@ -130,7 +140,12 @@ "width": 1064, "height": 304 }, - "tileFilter": {}, + "tileFilter": { + "managementZone": { + "id": "{{.mzId}}", + "name": "{{.mzName}}" + } + }, "filterConfig": { "type": "MIXED", "customName": "Response time, Request Count and Number of Errors", @@ -188,8 +203,7 @@ "filtersPerEntityType": { "SERVICE": { "AUTO_TAGS": [ - "Environment:{{.env}}", - "Component:{{.tag}}" + "Environment:{{.env}}" ] } } @@ -218,7 +232,12 @@ "width": 190, "height": 152 }, - "tileFilter": {}, + "tileFilter": { + "managementZone": { + "id": "{{.mzId}}", + "name": "{{.mzName}}" + } + }, "filterConfig": { "type": "DATABASE", "customName": "Databases", @@ -232,8 +251,7 @@ "filtersPerEntityType": { "DATABASE": { "AUTO_TAGS": [ - "Environment:{{.env}}", - "Component:{{.tag}}" + "Environment:{{.env}}" ] } } @@ -250,7 +268,12 @@ "width": 190, "height": 152 }, - "tileFilter": {}, + "tileFilter": { + "managementZone": { + "id": "{{.mzId}}", + "name": "{{.mzName}}" + } + }, "filterConfig": { "type": "SERVICE", "customName": "Services", @@ -264,8 +287,7 @@ "filtersPerEntityType": { "SERVICE": { "AUTO_TAGS": [ - "Environment:{{.env}}", - "Component:{{.tag}}" + "Environment:{{.env}}" ] } } @@ -282,7 +304,12 @@ "width": 190, "height": 152 }, - "tileFilter": {}, + "tileFilter": { + "managementZone": { + "id": "{{.mzId}}", + "name": "{{.mzName}}" + } + }, "filterConfig": { "type": "HOST", "customName": "Hosts", @@ -296,8 +323,7 @@ "filtersPerEntityType": { "HOST": { "AUTO_TAGS": [ - "Environment:{{.env}}", - "Component:{{.tag}}" + "Environment:{{.env}}" ] } } diff --git a/BMW-Dynatrace-config/CD_nop-archive/management-zone/default.json b/BMW-Dynatrace-config/CD_nop-archive/management-zone/default.json index bffa0c3b..fc96de39 100644 --- a/BMW-Dynatrace-config/CD_nop-archive/management-zone/default.json +++ b/BMW-Dynatrace-config/CD_nop-archive/management-zone/default.json @@ -1,114 +1,23 @@ { "dimensionalRules": [], "name": "{{.name}}", - "rules": [ - { - "conditions": [ + "entitySelectorBasedRules": [ { - "comparisonInfo": { - "negate": false, - "operator": "EQUALS", - "type": "TAG", - "value": { - "context": "CONTEXTLESS", - "key": "Component", - "value": "{{.tag}}" - } - }, - "key": { - "attribute": "SERVICE_TAGS" - } - } - ], - "enabled": true, - "propagationTypes": [ - "SERVICE_TO_PROCESS_GROUP_LIKE", - "SERVICE_TO_HOST_LIKE" - ], - "type": "SERVICE" - }, - { - "conditions": [ + "enabled": true, + "entitySelector": "type(Service),tag({{.compassIDs}})" + }, { - "comparisonInfo": { - "negate": false, - "operator": "EQUALS", - "type": "TAG", - "value": { - "context": "CONTEXTLESS", - "key": "Component", - "value": "{{.tag}}" - } - }, - "key": { - "attribute": "PROCESS_GROUP_TAGS" - } - } - ], - "enabled": true, - "propagationTypes": [ - "PROCESS_GROUP_TO_HOST" - ], - "type": "PROCESS_GROUP" - }, - { - "conditions": [ + "enabled": true, + "entitySelector": "type(SERVICE),databaseName.exists(),toRelationship.calls(type(SERVICE),tag({{.compassIDs}}))" + }, { - "comparisonInfo": { - "negate": false, - "operator": "EQUALS", - "type": "TAG", - "value": { - "context": "CONTEXTLESS", - "key": "Component", - "value": "{{.tag}}" - } - }, - "key": { - "attribute": "HOST_TAGS" - } - } + "enabled": true, + "entitySelector": "type(PROCESS_GROUP_INSTANCE),tag({{.compassIDs}})" + }, + { + "enabled": true, + "entitySelector": "type(HOST),tag({{.compassIDs}})" + } ], - "enabled": true, - "type": "HOST" - }, - { - "conditions": [ - { - "comparisonInfo": { - "caseSensitive": true, - "negate": false, - "operator": "CONTAINS", - "type": "STRING", - "value": "{{.tag}}" - }, - "key": { - "attribute": "CLOUD_APPLICATION_NAMESPACE_NAME" - } - } - ], - "enabled": true, - "propagationTypes": [], - "type": "CLOUD_APPLICATION_NAMESPACE" - }, - { - "conditions": [ - { - "comparisonInfo": { - "caseSensitive": true, - "negate": false, - "operator": "CONTAINS", - "type": "STRING", - "value": "{{.tag}}" - }, - "key": { - "attribute": "CLOUD_APPLICATION_NAME" - } - } - ], - "enabled": true, - "propagationTypes": [], - "type": "CLOUD_APPLICATION" - } - ] + "rules": [] } \ No newline at end of file diff --git a/BMW-Dynatrace-config/CD_nop-archive/management-zone/management-zone.yaml b/BMW-Dynatrace-config/CD_nop-archive/management-zone/management-zone.yaml index 12f62b04..c6298995 100644 --- a/BMW-Dynatrace-config/CD_nop-archive/management-zone/management-zone.yaml +++ b/BMW-Dynatrace-config/CD_nop-archive/management-zone/management-zone.yaml @@ -1,6 +1,6 @@ config: -- CDnop-archive: default.json +- CDnewComponentTag: default.json -CDnop-archive: +CDnewComponentTag: - name: CD_nop-archive -- tag: nop-archive +- compassIDs: \"compass-id:NOP-Archive\" diff --git a/BMW-Dynatrace-config/CD_nop-archive/notification/README.md b/BMW-Dynatrace-config/CD_nop-archive/notification/README.md new file mode 100644 index 00000000..5ba3825a --- /dev/null +++ b/BMW-Dynatrace-config/CD_nop-archive/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_nop-archive/notification/email.json b/BMW-Dynatrace-config/CD_nop-archive/notification/email.json new file mode 100644 index 00000000..486642a7 --- /dev/null +++ b/BMW-Dynatrace-config/CD_nop-archive/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_nop-archive/notification/itsm.json b/BMW-Dynatrace-config/CD_nop-archive/notification/itsm.json new file mode 100644 index 00000000..677ef0ea --- /dev/null +++ b/BMW-Dynatrace-config/CD_nop-archive/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_nop-archive/notification/msTeams.json b/BMW-Dynatrace-config/CD_nop-archive/notification/msTeams.json new file mode 100644 index 00000000..33e92cf6 --- /dev/null +++ b/BMW-Dynatrace-config/CD_nop-archive/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_nop-archive/notification/notification.yaml b/BMW-Dynatrace-config/CD_nop-archive/notification/notification.yaml new file mode 100644 index 00000000..6084faf4 --- /dev/null +++ b/BMW-Dynatrace-config/CD_nop-archive/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_nop-archive PROD +- alertingProfile: CD_nop-archive/alerting-profile/CDnewComponentTag.id +- webhook: https://empty +- skipDeployment: "true" +CDnewComponentTag.NA-Prod: +- name: CD_nop-archive PROD +- alertingProfile: CD_nop-archive/alerting-profile/CDnewComponentTag.id +- webhook: https://empty +- skipDeployment: "true" +CDnewComponentTag.CN-Prod: +- name: CD_nop-archive PROD +- alertingProfile: CD_nop-archive/alerting-profile/CDnewComponentTag.id +- webhook: https://empty +- skipDeployment: "true" + +# Notification System for EMEA/NA/CN PreProd msTeams +CDnewComponentTag.EMEA-PreProd: +- name: CD_nop-archive INT +- alertingProfile: CD_nop-archive/alerting-profile/CDnewComponentTag.id +- webhook: https://empty +- skipDeployment: "true" +CDnewComponentTag.NA-PreProd: +- name: CD_nop-archive INT +- alertingProfile: CD_nop-archive/alerting-profile/CDnewComponentTag.id +- webhook: https://empty +- skipDeployment: "true" +CDnewComponentTag.CN-PreProd: +- name: CD_nop-archive INT +- alertingProfile: CD_nop-archive/alerting-profile/CDnewComponentTag.id +- webhook: https://empty +- skipDeployment: "true" + + +# Notification System for EMEA/NA/CN Prod ITSM +CDnewComponentTagITSM.EMEA-Prod: +- name: CD_nop-archive ITSM PROD +- alertingProfile: CD_nop-archive/alerting-profile/CDnewComponentTag.id +- webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1 +- contractid: "10APP11906401" +- appdid: "TEST123" +- mzName: CD_nop-archive/management-zone/CDnewComponentTag.id +- DTEnvironment: https://xxu26128.live.dynatrace.com +- skipDeployment: "true" + +CDnewComponentTagITSM.NA-Prod: +- name: CD_nop-archive ITSM PROD +- alertingProfile: CD_nop-archive/alerting-profile/CDnewComponentTag.id +- webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1 +- contractid: "10APP11906401" +- appdid: "TEST123" +- mzName: CD_nop-archive/management-zone/CDnewComponentTag.id +- DTEnvironment: https://xxu26128.live.dynatrace.com +- skipDeployment: "true" + + +CDnewComponentTagITSM.CN-Prod: +- name: CD_nop-archive ITSM PROD +- alertingProfile: CD_nop-archive/alerting-profile/CDnewComponentTag.id +- webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1 +- contractid: "10APP11906401" +- appdid: "TEST123" +- mzName: CD_nop-archive/management-zone/CDnewComponentTag.id +- DTEnvironment: https://xxu26128.live.dynatrace.com +- skipDeployment: "true" + +CDnewComponentTagITSM.EMEA-PreProd: +- name: CD_nop-archive ITSM INT +- alertingProfile: CD_nop-archive/alerting-profile/CDnewComponentTag.id +- webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1 +- contractid: "10APP11906401" +- appdid: "TEST123" +- mzName: CD_nop-archive/management-zone/CDnewComponentTag.id +- DTEnvironment: https://xxu26128.live.dynatrace.com +- skipDeployment: "true" + +CDnewComponentTagITSM.NA-PreProd: +- name: CD_nop-archive ITSM INT +- alertingProfile: CD_nop-archive/alerting-profile/CDnewComponentTag.id +- webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1 +- contractid: "10APP11906401" +- appdid: "TEST123" +- mzName: CD_nop-archive/management-zone/CDnewComponentTag.id +- DTEnvironment: https://xxu26128.live.dynatrace.com +- skipDeployment: "true" + + +CDnewComponentTagITSM.CN-PreProd: +- name: CD_nop-archive ITSM INT +- alertingProfile: CD_nop-archive/alerting-profile/CDnewComponentTag.id +- webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1 +- contractid: "10APP11906401" +- appdid: "TEST123" +- mzName: CD_nop-archive/management-zone/CDnewComponentTag.id +- DTEnvironment: https://xxu26128.live.dynatrace.com +- skipDeployment: "true" + diff --git a/BMW-Dynatrace-config/CD_nop-archive/synthetic-monitor/README.md b/BMW-Dynatrace-config/CD_nop-archive/synthetic-monitor/README.md new file mode 100644 index 00000000..04d7949f --- /dev/null +++ b/BMW-Dynatrace-config/CD_nop-archive/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_nop-archive/synthetic-monitor/default.json b/BMW-Dynatrace-config/CD_nop-archive/synthetic-monitor/default.json new file mode 100644 index 00000000..cf83039b --- /dev/null +++ b/BMW-Dynatrace-config/CD_nop-archive/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_nop-archive/synthetic-monitor/synthetic-monitor.yaml b/BMW-Dynatrace-config/CD_nop-archive/synthetic-monitor/synthetic-monitor.yaml new file mode 100644 index 00000000..70fd8d22 --- /dev/null +++ b/BMW-Dynatrace-config/CD_nop-archive/synthetic-monitor/synthetic-monitor.yaml @@ -0,0 +1,10 @@ +config: +- newComponentTag: default.json + +newComponentTag: +- name: CD_nop-archive - +- mzName: CD_nop-archive/management-zone/CDnewComponentTag.name +- mzId: CD_nop-archive/management-zone/CDnewComponentTag.id +- endpoint: +- location: +- skipDeployment: "true" \ No newline at end of file diff --git a/BMW-Dynatrace-config/CD_nop-trigger/alerting-profile/alerting-profile.yaml b/BMW-Dynatrace-config/CD_nop-trigger/alerting-profile/alerting-profile.yaml new file mode 100644 index 00000000..71576049 --- /dev/null +++ b/BMW-Dynatrace-config/CD_nop-trigger/alerting-profile/alerting-profile.yaml @@ -0,0 +1,37 @@ +config: +- CDnewComponentTag: default.json + + +#Prod alerting profiles for EMEA/NA/CN +CDnewComponentTag.EMEA-Prod: +- name: CD_nop-trigger PROD +- mzId: CD_nop-trigger/management-zone/CDnewComponentTag.id +- env: PROD +- skipDeployment: "false" +CDnewComponentTag.NA-Prod: +- name: CD_nop-trigger PROD +- mzId: CD_nop-trigger/management-zone/CDnewComponentTag.id +- env: PROD +- skipDeployment: "false" +CDnewComponentTag.CN-Prod: +- name: CD_nop-trigger PROD +- mzId: CD_nop-trigger/management-zone/CDnewComponentTag.id +- env: PROD +- skipDeployment: "false" + +#INT alerting profiles for EMEA/NA/CN +CDnewComponentTag.EMEA-PreProd: +- name: CD_nop-trigger INT +- mzId: CD_nop-trigger/management-zone/CDnewComponentTag.id +- env: INT +- skipDeployment: "false" +CDnewComponentTag.NA-PreProd: +- name: CD_nop-trigger INT +- mzId: CD_nop-trigger/management-zone/CDnewComponentTag.id +- env: INT +- skipDeployment: "false" +CDnewComponentTag.CN-PreProd: +- name: CD_nop-trigger INT +- mzId: CD_nop-trigger/management-zone/CDnewComponentTag.id +- env: INT +- skipDeployment: "false" \ No newline at end of file diff --git a/BMW-Dynatrace-config/CD_nop-trigger/alerting-profile/default.json b/BMW-Dynatrace-config/CD_nop-trigger/alerting-profile/default.json new file mode 100644 index 00000000..bb81115c --- /dev/null +++ b/BMW-Dynatrace-config/CD_nop-trigger/alerting-profile/default.json @@ -0,0 +1,78 @@ +{ + "displayName": "{{.name}}", + "eventTypeFilters": [], + "managementZoneId": "{{.mzId}}", + "mzId": "{{.mzId}}", + "rules": [ + { + "delayInMinutes": 0, + "severityLevel": "AVAILABILITY", + "tagFilter": { + "includeMode": "INCLUDE_ALL", + "tagFilters": [ + { + "context": "CONTEXTLESS", + "key": "Environment", + "value": "{{.env}}" + } + ] + } + }, + { + "delayInMinutes": 10, + "severityLevel": "ERROR", + "tagFilter": { + "includeMode": "INCLUDE_ALL", + "tagFilters": [ + { + "context": "CONTEXTLESS", + "key": "Environment", + "value": "{{.env}}" + } + ] + } + }, + { + "delayInMinutes": 30, + "severityLevel": "PERFORMANCE", + "tagFilter": { + "includeMode": "INCLUDE_ALL", + "tagFilters": [ + { + "context": "CONTEXTLESS", + "key": "Environment", + "value": "{{.env}}" + } + ] + } + }, + { + "delayInMinutes": 30, + "severityLevel": "RESOURCE_CONTENTION", + "tagFilter": { + "includeMode": "INCLUDE_ALL", + "tagFilters": [ + { + "context": "CONTEXTLESS", + "key": "Environment", + "value": "{{.env}}" + } + ] + } + }, + { + "delayInMinutes": 10, + "severityLevel": "CUSTOM_ALERT", + "tagFilter": { + "includeMode": "INCLUDE_ALL", + "tagFilters": [ + { + "context": "CONTEXTLESS", + "key": "Environment", + "value": "{{.env}}" + } + ] + } + } + ] +} \ No newline at end of file diff --git a/BMW-Dynatrace-config/CD_nop-trigger/calculated-metrics-service/README.md b/BMW-Dynatrace-config/CD_nop-trigger/calculated-metrics-service/README.md new file mode 100644 index 00000000..f958f929 --- /dev/null +++ b/BMW-Dynatrace-config/CD_nop-trigger/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_nop-trigger/conditional-naming-processgroup/README.md b/BMW-Dynatrace-config/CD_nop-trigger/conditional-naming-processgroup/README.md new file mode 100644 index 00000000..8c10d2b4 --- /dev/null +++ b/BMW-Dynatrace-config/CD_nop-trigger/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_nop-trigger/conditional-naming-processgroup/conditional-naming-processgroup.yaml b/BMW-Dynatrace-config/CD_nop-trigger/conditional-naming-processgroup/conditional-naming-processgroup.yaml new file mode 100644 index 00000000..fb9502e8 --- /dev/null +++ b/BMW-Dynatrace-config/CD_nop-trigger/conditional-naming-processgroup/conditional-naming-processgroup.yaml @@ -0,0 +1,7 @@ +config: +- CDnewComponentTag: template.json + +CDnewComponentTag: +- name: MyProcessNamingRule +- nameFormat: "{ProcessGroup:KubernetesNamespace/regex-example}" +- skipDeployment: "true" diff --git a/BMW-Dynatrace-config/CD_nop-trigger/conditional-naming-processgroup/template.json b/BMW-Dynatrace-config/CD_nop-trigger/conditional-naming-processgroup/template.json new file mode 100644 index 00000000..7c039808 --- /dev/null +++ b/BMW-Dynatrace-config/CD_nop-trigger/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_nop-trigger/conditional-naming-service/README.md b/BMW-Dynatrace-config/CD_nop-trigger/conditional-naming-service/README.md new file mode 100644 index 00000000..93dc620b --- /dev/null +++ b/BMW-Dynatrace-config/CD_nop-trigger/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_nop-trigger/conditional-naming-service/conditional-naming-service.yaml b/BMW-Dynatrace-config/CD_nop-trigger/conditional-naming-service/conditional-naming-service.yaml new file mode 100644 index 00000000..fb9502e8 --- /dev/null +++ b/BMW-Dynatrace-config/CD_nop-trigger/conditional-naming-service/conditional-naming-service.yaml @@ -0,0 +1,7 @@ +config: +- CDnewComponentTag: template.json + +CDnewComponentTag: +- name: MyProcessNamingRule +- nameFormat: "{ProcessGroup:KubernetesNamespace/regex-example}" +- skipDeployment: "true" diff --git a/BMW-Dynatrace-config/CD_nop-trigger/conditional-naming-service/template.json b/BMW-Dynatrace-config/CD_nop-trigger/conditional-naming-service/template.json new file mode 100644 index 00000000..5d4fac56 --- /dev/null +++ b/BMW-Dynatrace-config/CD_nop-trigger/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_nop-trigger/custom-service-java/README.md b/BMW-Dynatrace-config/CD_nop-trigger/custom-service-java/README.md new file mode 100644 index 00000000..a467a6f8 --- /dev/null +++ b/BMW-Dynatrace-config/CD_nop-trigger/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_nop-trigger/custom-service-java/custom-service-java.yaml b/BMW-Dynatrace-config/CD_nop-trigger/custom-service-java/custom-service-java.yaml new file mode 100644 index 00000000..25f8a028 --- /dev/null +++ b/BMW-Dynatrace-config/CD_nop-trigger/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_nop-trigger/custom-service-java/template-1-1.json b/BMW-Dynatrace-config/CD_nop-trigger/custom-service-java/template-1-1.json new file mode 100644 index 00000000..b3003515 --- /dev/null +++ b/BMW-Dynatrace-config/CD_nop-trigger/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_nop-trigger/dashboard/dashboard.yaml b/BMW-Dynatrace-config/CD_nop-trigger/dashboard/dashboard.yaml index a1e73acb..845c1aff 100644 --- a/BMW-Dynatrace-config/CD_nop-trigger/dashboard/dashboard.yaml +++ b/BMW-Dynatrace-config/CD_nop-trigger/dashboard/dashboard.yaml @@ -1,125 +1,109 @@ config: -- CDnop-trigger-PROD: default.json -- CDnop-trigger-E2E: default.json -- CDnop-trigger-INT: default.json -- CDnop-trigger-TEST: default.json +- CDnewComponentTag-PROD: default.json +- CDnewComponentTag-E2E: default.json +- CDnewComponentTag-INT: default.json +- CDnewComponentTag-TEST: default.json #PROD dashboards for EMEA/NA/CN Prod -CDnop-trigger-PROD: +CDnewComponentTag-PROD: - name: CD_nop-trigger PROD -- mzName: CD_nop-trigger/management-zone/CDnop-trigger.name -- mzId: CD_nop-trigger/management-zone/CDnop-trigger.id -- tag: nop-trigger +- mzName: CD_nop-trigger/management-zone/CDnewComponentTag.name +- mzId: CD_nop-trigger/management-zone/CDnewComponentTag.id - env: PROD - skipDeployment: "true" -CDnop-trigger-PROD.EMEA-Prod: +CDnewComponentTag-PROD.EMEA-Prod: - name: CD_nop-trigger PROD -- mzName: CD_nop-trigger/management-zone/CDnop-trigger.name -- mzId: CD_nop-trigger/management-zone/CDnop-trigger.id -- tag: nop-trigger +- mzName: CD_nop-trigger/management-zone/CDnewComponentTag.name +- mzId: CD_nop-trigger/management-zone/CDnewComponentTag.id - env: PROD - skipDeployment: "false" -CDnop-trigger-PROD.NA-Prod: +CDnewComponentTag-PROD.NA-Prod: - name: CD_nop-trigger PROD -- mzName: CD_nop-trigger/management-zone/CDnop-trigger.name -- mzId: CD_nop-trigger/management-zone/CDnop-trigger.id -- tag: nop-trigger +- mzName: CD_nop-trigger/management-zone/CDnewComponentTag.name +- mzId: CD_nop-trigger/management-zone/CDnewComponentTag.id - env: PROD - skipDeployment: "false" -CDnop-trigger-PROD.CN-Prod: +CDnewComponentTag-PROD.CN-Prod: - name: CD_nop-trigger PROD -- mzName: CD_nop-trigger/management-zone/CDnop-trigger.name -- mzId: CD_nop-trigger/management-zone/CDnop-trigger.id -- tag: nop-trigger +- mzName: CD_nop-trigger/management-zone/CDnewComponentTag.name +- mzId: CD_nop-trigger/management-zone/CDnewComponentTag.id - env: PROD - skipDeployment: "false" #E2E dashboards for EMEA/NA/CN Prod -CDnop-trigger-E2E: +CDnewComponentTag-E2E: - name: CD_nop-trigger E2E -- mzName: CD_nop-trigger/management-zone/CDnop-trigger.name -- mzId: CD_nop-trigger/management-zone/CDnop-trigger.id -- tag: nop-trigger +- mzName: CD_nop-trigger/management-zone/CDnewComponentTag.name +- mzId: CD_nop-trigger/management-zone/CDnewComponentTag.id - env: E2E - skipDeployment: "true" -CDnop-trigger-E2E.EMEA-Prod: +CDnewComponentTag-E2E.EMEA-Prod: - name: CD_nop-trigger E2E -- mzName: CD_nop-trigger/management-zone/CDnop-trigger.name -- mzId: CD_nop-trigger/management-zone/CDnop-trigger.id -- tag: nop-trigger +- mzName: CD_nop-trigger/management-zone/CDnewComponentTag.name +- mzId: CD_nop-trigger/management-zone/CDnewComponentTag.id - env: E2E - skipDeployment: "false" -CDnop-trigger-E2E.NA-Prod: +CDnewComponentTag-E2E.NA-Prod: - name: CD_nop-trigger E2E -- mzName: CD_nop-trigger/management-zone/CDnop-trigger.name -- mzId: CD_nop-trigger/management-zone/CDnop-trigger.id -- tag: nop-trigger +- mzName: CD_nop-trigger/management-zone/CDnewComponentTag.name +- mzId: CD_nop-trigger/management-zone/CDnewComponentTag.id - env: E2E - skipDeployment: "false" -CDnop-trigger-E2E.CN-Prod: +CDnewComponentTag-E2E.CN-Prod: - name: CD_nop-trigger E2E -- mzName: CD_nop-trigger/management-zone/CDnop-trigger.name -- mzId: CD_nop-trigger/management-zone/CDnop-trigger.id -- tag: nop-trigger +- mzName: CD_nop-trigger/management-zone/CDnewComponentTag.name +- mzId: CD_nop-trigger/management-zone/CDnewComponentTag.id - env: E2E - skipDeployment: "false" #INT dashboards for EMEA/NA/CN PreProd -CDnop-trigger-INT: +CDnewComponentTag-INT: - name: CD_nop-trigger INT -- mzName: CD_nop-trigger/management-zone/CDnop-trigger.name -- mzId: CD_nop-trigger/management-zone/CDnop-trigger.id -- tag: nop-trigger +- mzName: CD_nop-trigger/management-zone/CDnewComponentTag.name +- mzId: CD_nop-trigger/management-zone/CDnewComponentTag.id - env: INT - skipDeployment: "true" -CDnop-trigger-INT.EMEA-PreProd: +CDnewComponentTag-INT.EMEA-PreProd: - name: CD_nop-trigger INT -- mzName: CD_nop-trigger/management-zone/CDnop-trigger.name -- mzId: CD_nop-trigger/management-zone/CDnop-trigger.id -- tag: nop-trigger +- mzName: CD_nop-trigger/management-zone/CDnewComponentTag.name +- mzId: CD_nop-trigger/management-zone/CDnewComponentTag.id - env: INT - skipDeployment: "false" -CDnop-trigger-INT.NA-PreProd: +CDnewComponentTag-INT.NA-PreProd: - name: CD_nop-trigger INT -- mzName: CD_nop-trigger/management-zone/CDnop-trigger.name -- mzId: CD_nop-trigger/management-zone/CDnop-trigger.id -- tag: nop-trigger +- mzName: CD_nop-trigger/management-zone/CDnewComponentTag.name +- mzId: CD_nop-trigger/management-zone/CDnewComponentTag.id - env: INT - skipDeployment: "false" -CDnop-trigger-INT.CN-PreProd: +CDnewComponentTag-INT.CN-PreProd: - name: CD_nop-trigger INT -- mzName: CD_nop-trigger/management-zone/CDnop-trigger.name -- mzId: CD_nop-trigger/management-zone/CDnop-trigger.id -- tag: nop-trigger +- mzName: CD_nop-trigger/management-zone/CDnewComponentTag.name +- mzId: CD_nop-trigger/management-zone/CDnewComponentTag.id - env: INT - skipDeployment: "false" #TEST dashboards for EMEA/NA/CN PreProd -CDnop-trigger-TEST: +CDnewComponentTag-TEST: - name: CD_nop-trigger TEST -- mzName: CD_nop-trigger/management-zone/CDnop-trigger.name -- mzId: CD_nop-trigger/management-zone/CDnop-trigger.id -- tag: nop-trigger +- mzName: CD_nop-trigger/management-zone/CDnewComponentTag.name +- mzId: CD_nop-trigger/management-zone/CDnewComponentTag.id - env: TEST - skipDeployment: "true" -CDnop-trigger-TEST.EMEA-PreProd: +CDnewComponentTag-TEST.EMEA-PreProd: - name: CD_nop-trigger TEST -- mzName: CD_nop-trigger/management-zone/CDnop-trigger.name -- mzId: CD_nop-trigger/management-zone/CDnop-trigger.id -- tag: nop-trigger +- mzName: CD_nop-trigger/management-zone/CDnewComponentTag.name +- mzId: CD_nop-trigger/management-zone/CDnewComponentTag.id - env: TEST - skipDeployment: "false" -CDnop-trigger-TEST.NA-PreProd: +CDnewComponentTag-TEST.NA-PreProd: - name: CD_nop-trigger TEST -- mzName: CD_nop-trigger/management-zone/CDnop-trigger.name -- mzId: CD_nop-trigger/management-zone/CDnop-trigger.id -- tag: nop-trigger +- mzName: CD_nop-trigger/management-zone/CDnewComponentTag.name +- mzId: CD_nop-trigger/management-zone/CDnewComponentTag.id - env: TEST - skipDeployment: "false" -CDnop-trigger-TEST.CN-PreProd: +CDnewComponentTag-TEST.CN-PreProd: - name: CD_nop-trigger TEST -- mzName: CD_nop-trigger/management-zone/CDnop-trigger.name -- mzId: CD_nop-trigger/management-zone/CDnop-trigger.id -- tag: nop-trigger +- mzName: CD_nop-trigger/management-zone/CDnewComponentTag.name +- mzId: CD_nop-trigger/management-zone/CDnewComponentTag.id - env: TEST - skipDeployment: "false" \ No newline at end of file diff --git a/BMW-Dynatrace-config/CD_nop-trigger/dashboard/default.json b/BMW-Dynatrace-config/CD_nop-trigger/dashboard/default.json index 6c685810..189767ed 100644 --- a/BMW-Dynatrace-config/CD_nop-trigger/dashboard/default.json +++ b/BMW-Dynatrace-config/CD_nop-trigger/dashboard/default.json @@ -13,8 +13,9 @@ "timeframe": "-24h to now" }, "tags": [ - "{{.tag}}" - ] + "{{.mzName}}" + ], + "preset": true }, "tiles": [ { @@ -27,7 +28,12 @@ "width": 1064, "height": 304 }, - "tileFilter": {}, + "tileFilter": { + "managementZone": { + "id": "{{.mzId}}", + "name": "{{.mzName}}" + } + }, "filterConfig": { "type": "MIXED", "customName": "Failure rate (HTTP 4xx/5xx errors)", @@ -71,8 +77,7 @@ "filtersPerEntityType": { "SERVICE": { "AUTO_TAGS": [ - "Environment:{{.env}}", - "Component:{{.tag}}" + "Environment:{{.env}}" ] } } @@ -105,7 +110,12 @@ "width": 1064, "height": 38 }, - "tileFilter": {} + "tileFilter": { + "managementZone": { + "id": "{{.mzId}}", + "name": "{{.mzName}}" + } + } }, { "name": "Markdown", @@ -130,7 +140,12 @@ "width": 1064, "height": 304 }, - "tileFilter": {}, + "tileFilter": { + "managementZone": { + "id": "{{.mzId}}", + "name": "{{.mzName}}" + } + }, "filterConfig": { "type": "MIXED", "customName": "Response time, Request Count and Number of Errors", @@ -188,8 +203,7 @@ "filtersPerEntityType": { "SERVICE": { "AUTO_TAGS": [ - "Environment:{{.env}}", - "Component:{{.tag}}" + "Environment:{{.env}}" ] } } @@ -218,7 +232,12 @@ "width": 190, "height": 152 }, - "tileFilter": {}, + "tileFilter": { + "managementZone": { + "id": "{{.mzId}}", + "name": "{{.mzName}}" + } + }, "filterConfig": { "type": "DATABASE", "customName": "Databases", @@ -232,8 +251,7 @@ "filtersPerEntityType": { "DATABASE": { "AUTO_TAGS": [ - "Environment:{{.env}}", - "Component:{{.tag}}" + "Environment:{{.env}}" ] } } @@ -250,7 +268,12 @@ "width": 190, "height": 152 }, - "tileFilter": {}, + "tileFilter": { + "managementZone": { + "id": "{{.mzId}}", + "name": "{{.mzName}}" + } + }, "filterConfig": { "type": "SERVICE", "customName": "Services", @@ -264,8 +287,7 @@ "filtersPerEntityType": { "SERVICE": { "AUTO_TAGS": [ - "Environment:{{.env}}", - "Component:{{.tag}}" + "Environment:{{.env}}" ] } } @@ -282,7 +304,12 @@ "width": 190, "height": 152 }, - "tileFilter": {}, + "tileFilter": { + "managementZone": { + "id": "{{.mzId}}", + "name": "{{.mzName}}" + } + }, "filterConfig": { "type": "HOST", "customName": "Hosts", @@ -296,8 +323,7 @@ "filtersPerEntityType": { "HOST": { "AUTO_TAGS": [ - "Environment:{{.env}}", - "Component:{{.tag}}" + "Environment:{{.env}}" ] } } diff --git a/BMW-Dynatrace-config/CD_nop-trigger/management-zone/default.json b/BMW-Dynatrace-config/CD_nop-trigger/management-zone/default.json index bffa0c3b..fc96de39 100644 --- a/BMW-Dynatrace-config/CD_nop-trigger/management-zone/default.json +++ b/BMW-Dynatrace-config/CD_nop-trigger/management-zone/default.json @@ -1,114 +1,23 @@ { "dimensionalRules": [], "name": "{{.name}}", - "rules": [ - { - "conditions": [ + "entitySelectorBasedRules": [ { - "comparisonInfo": { - "negate": false, - "operator": "EQUALS", - "type": "TAG", - "value": { - "context": "CONTEXTLESS", - "key": "Component", - "value": "{{.tag}}" - } - }, - "key": { - "attribute": "SERVICE_TAGS" - } - } - ], - "enabled": true, - "propagationTypes": [ - "SERVICE_TO_PROCESS_GROUP_LIKE", - "SERVICE_TO_HOST_LIKE" - ], - "type": "SERVICE" - }, - { - "conditions": [ + "enabled": true, + "entitySelector": "type(Service),tag({{.compassIDs}})" + }, { - "comparisonInfo": { - "negate": false, - "operator": "EQUALS", - "type": "TAG", - "value": { - "context": "CONTEXTLESS", - "key": "Component", - "value": "{{.tag}}" - } - }, - "key": { - "attribute": "PROCESS_GROUP_TAGS" - } - } - ], - "enabled": true, - "propagationTypes": [ - "PROCESS_GROUP_TO_HOST" - ], - "type": "PROCESS_GROUP" - }, - { - "conditions": [ + "enabled": true, + "entitySelector": "type(SERVICE),databaseName.exists(),toRelationship.calls(type(SERVICE),tag({{.compassIDs}}))" + }, { - "comparisonInfo": { - "negate": false, - "operator": "EQUALS", - "type": "TAG", - "value": { - "context": "CONTEXTLESS", - "key": "Component", - "value": "{{.tag}}" - } - }, - "key": { - "attribute": "HOST_TAGS" - } - } + "enabled": true, + "entitySelector": "type(PROCESS_GROUP_INSTANCE),tag({{.compassIDs}})" + }, + { + "enabled": true, + "entitySelector": "type(HOST),tag({{.compassIDs}})" + } ], - "enabled": true, - "type": "HOST" - }, - { - "conditions": [ - { - "comparisonInfo": { - "caseSensitive": true, - "negate": false, - "operator": "CONTAINS", - "type": "STRING", - "value": "{{.tag}}" - }, - "key": { - "attribute": "CLOUD_APPLICATION_NAMESPACE_NAME" - } - } - ], - "enabled": true, - "propagationTypes": [], - "type": "CLOUD_APPLICATION_NAMESPACE" - }, - { - "conditions": [ - { - "comparisonInfo": { - "caseSensitive": true, - "negate": false, - "operator": "CONTAINS", - "type": "STRING", - "value": "{{.tag}}" - }, - "key": { - "attribute": "CLOUD_APPLICATION_NAME" - } - } - ], - "enabled": true, - "propagationTypes": [], - "type": "CLOUD_APPLICATION" - } - ] + "rules": [] } \ No newline at end of file diff --git a/BMW-Dynatrace-config/CD_nop-trigger/management-zone/management-zone.yaml b/BMW-Dynatrace-config/CD_nop-trigger/management-zone/management-zone.yaml index fee33172..83616616 100644 --- a/BMW-Dynatrace-config/CD_nop-trigger/management-zone/management-zone.yaml +++ b/BMW-Dynatrace-config/CD_nop-trigger/management-zone/management-zone.yaml @@ -1,6 +1,6 @@ config: -- CDnop-trigger: default.json +- CDnewComponentTag: default.json -CDnop-trigger: +CDnewComponentTag: - name: CD_nop-trigger -- tag: nop-trigger +- compassIDs: \"compass-id:NOP-Trigger\" diff --git a/BMW-Dynatrace-config/CD_nop-trigger/notification/README.md b/BMW-Dynatrace-config/CD_nop-trigger/notification/README.md new file mode 100644 index 00000000..5ba3825a --- /dev/null +++ b/BMW-Dynatrace-config/CD_nop-trigger/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_nop-trigger/notification/email.json b/BMW-Dynatrace-config/CD_nop-trigger/notification/email.json new file mode 100644 index 00000000..486642a7 --- /dev/null +++ b/BMW-Dynatrace-config/CD_nop-trigger/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_nop-trigger/notification/itsm.json b/BMW-Dynatrace-config/CD_nop-trigger/notification/itsm.json new file mode 100644 index 00000000..677ef0ea --- /dev/null +++ b/BMW-Dynatrace-config/CD_nop-trigger/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_nop-trigger/notification/msTeams.json b/BMW-Dynatrace-config/CD_nop-trigger/notification/msTeams.json new file mode 100644 index 00000000..33e92cf6 --- /dev/null +++ b/BMW-Dynatrace-config/CD_nop-trigger/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_nop-trigger/notification/notification.yaml b/BMW-Dynatrace-config/CD_nop-trigger/notification/notification.yaml new file mode 100644 index 00000000..539429d9 --- /dev/null +++ b/BMW-Dynatrace-config/CD_nop-trigger/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_nop-trigger PROD +- alertingProfile: CD_nop-trigger/alerting-profile/CDnewComponentTag.id +- webhook: https://empty +- skipDeployment: "true" +CDnewComponentTag.NA-Prod: +- name: CD_nop-trigger PROD +- alertingProfile: CD_nop-trigger/alerting-profile/CDnewComponentTag.id +- webhook: https://empty +- skipDeployment: "true" +CDnewComponentTag.CN-Prod: +- name: CD_nop-trigger PROD +- alertingProfile: CD_nop-trigger/alerting-profile/CDnewComponentTag.id +- webhook: https://empty +- skipDeployment: "true" + +# Notification System for EMEA/NA/CN PreProd msTeams +CDnewComponentTag.EMEA-PreProd: +- name: CD_nop-trigger INT +- alertingProfile: CD_nop-trigger/alerting-profile/CDnewComponentTag.id +- webhook: https://empty +- skipDeployment: "true" +CDnewComponentTag.NA-PreProd: +- name: CD_nop-trigger INT +- alertingProfile: CD_nop-trigger/alerting-profile/CDnewComponentTag.id +- webhook: https://empty +- skipDeployment: "true" +CDnewComponentTag.CN-PreProd: +- name: CD_nop-trigger INT +- alertingProfile: CD_nop-trigger/alerting-profile/CDnewComponentTag.id +- webhook: https://empty +- skipDeployment: "true" + + +# Notification System for EMEA/NA/CN Prod ITSM +CDnewComponentTagITSM.EMEA-Prod: +- name: CD_nop-trigger ITSM PROD +- alertingProfile: CD_nop-trigger/alerting-profile/CDnewComponentTag.id +- webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1 +- contractid: "10APP11906401" +- appdid: "TEST123" +- mzName: CD_nop-trigger/management-zone/CDnewComponentTag.id +- DTEnvironment: https://xxu26128.live.dynatrace.com +- skipDeployment: "true" + +CDnewComponentTagITSM.NA-Prod: +- name: CD_nop-trigger ITSM PROD +- alertingProfile: CD_nop-trigger/alerting-profile/CDnewComponentTag.id +- webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1 +- contractid: "10APP11906401" +- appdid: "TEST123" +- mzName: CD_nop-trigger/management-zone/CDnewComponentTag.id +- DTEnvironment: https://xxu26128.live.dynatrace.com +- skipDeployment: "true" + + +CDnewComponentTagITSM.CN-Prod: +- name: CD_nop-trigger ITSM PROD +- alertingProfile: CD_nop-trigger/alerting-profile/CDnewComponentTag.id +- webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1 +- contractid: "10APP11906401" +- appdid: "TEST123" +- mzName: CD_nop-trigger/management-zone/CDnewComponentTag.id +- DTEnvironment: https://xxu26128.live.dynatrace.com +- skipDeployment: "true" + +CDnewComponentTagITSM.EMEA-PreProd: +- name: CD_nop-trigger ITSM INT +- alertingProfile: CD_nop-trigger/alerting-profile/CDnewComponentTag.id +- webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1 +- contractid: "10APP11906401" +- appdid: "TEST123" +- mzName: CD_nop-trigger/management-zone/CDnewComponentTag.id +- DTEnvironment: https://xxu26128.live.dynatrace.com +- skipDeployment: "true" + +CDnewComponentTagITSM.NA-PreProd: +- name: CD_nop-trigger ITSM INT +- alertingProfile: CD_nop-trigger/alerting-profile/CDnewComponentTag.id +- webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1 +- contractid: "10APP11906401" +- appdid: "TEST123" +- mzName: CD_nop-trigger/management-zone/CDnewComponentTag.id +- DTEnvironment: https://xxu26128.live.dynatrace.com +- skipDeployment: "true" + + +CDnewComponentTagITSM.CN-PreProd: +- name: CD_nop-trigger ITSM INT +- alertingProfile: CD_nop-trigger/alerting-profile/CDnewComponentTag.id +- webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1 +- contractid: "10APP11906401" +- appdid: "TEST123" +- mzName: CD_nop-trigger/management-zone/CDnewComponentTag.id +- DTEnvironment: https://xxu26128.live.dynatrace.com +- skipDeployment: "true" + diff --git a/BMW-Dynatrace-config/CD_nop-trigger/synthetic-monitor/README.md b/BMW-Dynatrace-config/CD_nop-trigger/synthetic-monitor/README.md new file mode 100644 index 00000000..04d7949f --- /dev/null +++ b/BMW-Dynatrace-config/CD_nop-trigger/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_nop-trigger/synthetic-monitor/default.json b/BMW-Dynatrace-config/CD_nop-trigger/synthetic-monitor/default.json new file mode 100644 index 00000000..cf83039b --- /dev/null +++ b/BMW-Dynatrace-config/CD_nop-trigger/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_nop-trigger/synthetic-monitor/synthetic-monitor.yaml b/BMW-Dynatrace-config/CD_nop-trigger/synthetic-monitor/synthetic-monitor.yaml new file mode 100644 index 00000000..0e4f42f1 --- /dev/null +++ b/BMW-Dynatrace-config/CD_nop-trigger/synthetic-monitor/synthetic-monitor.yaml @@ -0,0 +1,10 @@ +config: +- newComponentTag: default.json + +newComponentTag: +- name: CD_nop-trigger - +- mzName: CD_nop-trigger/management-zone/CDnewComponentTag.name +- mzId: CD_nop-trigger/management-zone/CDnewComponentTag.id +- endpoint: +- location: +- skipDeployment: "true" \ No newline at end of file