From c2292212c8ee8ce6a1d73fcea3af7179cbb24033 Mon Sep 17 00:00:00 2001 From: mosadak al salamat Date: Mon, 4 Oct 2021 14:31:42 +0200 Subject: [PATCH 1/4] CDVPS-5201 - Add initial configuration of application VPS-Archive to Dynatrace --- .../00_Global-Config/auto-tag/Component.json | 31 ++++++ .../alerting-profile/alerting-profile.yaml | 43 ++++++++ .../alerting-profile/default.json | 103 ++++++++++++++++++ .../calculated-metrics-service/README.md | 4 + .../conditional-naming-processgroup/README.md | 4 + .../conditional-naming-processgroup.yaml | 8 ++ .../template.json | 29 +++++ .../conditional-naming-service/README.md | 4 + .../conditional-naming-service.yaml | 8 ++ .../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_vps-archive/notification/README.md | 4 + .../CD_vps-archive/notification/email.json | 13 +++ .../CD_vps-archive/notification/itsm.json | 20 ++++ .../CD_vps-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 ++ 21 files changed, 545 insertions(+) create mode 100644 BMW-Dynatrace-config/CD_vps-archive/alerting-profile/alerting-profile.yaml create mode 100644 BMW-Dynatrace-config/CD_vps-archive/alerting-profile/default.json create mode 100644 BMW-Dynatrace-config/CD_vps-archive/calculated-metrics-service/README.md create mode 100644 BMW-Dynatrace-config/CD_vps-archive/conditional-naming-processgroup/README.md create mode 100644 BMW-Dynatrace-config/CD_vps-archive/conditional-naming-processgroup/conditional-naming-processgroup.yaml create mode 100644 BMW-Dynatrace-config/CD_vps-archive/conditional-naming-processgroup/template.json create mode 100644 BMW-Dynatrace-config/CD_vps-archive/conditional-naming-service/README.md create mode 100644 BMW-Dynatrace-config/CD_vps-archive/conditional-naming-service/conditional-naming-service.yaml create mode 100644 BMW-Dynatrace-config/CD_vps-archive/conditional-naming-service/template.json create mode 100644 BMW-Dynatrace-config/CD_vps-archive/custom-service-java/README.md create mode 100644 BMW-Dynatrace-config/CD_vps-archive/custom-service-java/custom-service-java.yaml create mode 100644 BMW-Dynatrace-config/CD_vps-archive/custom-service-java/template-1-1.json create mode 100644 BMW-Dynatrace-config/CD_vps-archive/notification/README.md create mode 100644 BMW-Dynatrace-config/CD_vps-archive/notification/email.json create mode 100644 BMW-Dynatrace-config/CD_vps-archive/notification/itsm.json create mode 100644 BMW-Dynatrace-config/CD_vps-archive/notification/msTeams.json create mode 100644 BMW-Dynatrace-config/CD_vps-archive/notification/notification.yaml create mode 100644 BMW-Dynatrace-config/CD_vps-archive/synthetic-monitor/README.md create mode 100644 BMW-Dynatrace-config/CD_vps-archive/synthetic-monitor/default.json create mode 100644 BMW-Dynatrace-config/CD_vps-archive/synthetic-monitor/synthetic-monitor.yaml diff --git a/BMW-Dynatrace-config/00_Global-Config/auto-tag/Component.json b/BMW-Dynatrace-config/00_Global-Config/auto-tag/Component.json index 4d6e1c36..397dd438 100644 --- a/BMW-Dynatrace-config/00_Global-Config/auto-tag/Component.json +++ b/BMW-Dynatrace-config/00_Global-Config/auto-tag/Component.json @@ -4240,6 +4240,37 @@ } } ] + }, + { + "type": "SERVICE", + "enabled": true, + "valueFormat": "VPS-Archive", + "propagationTypes": [], + "conditions": [ + { + "key": { + "attribute": "SERVICE_TYPE" + }, + "comparisonInfo": { + "type": "SERVICE_TYPE", + "operator": "EQUALS", + "value": "DATABASE_SERVICE", + "negate": false + } + }, + { + "key": { + "attribute": "SERVICE_DATABASE_NAME" + }, + "comparisonInfo": { + "type": "STRING", + "operator": "CONTAINS", + "value": "cc", + "negate": false, + "caseSensitive": true + } + } + ] } ] } \ No newline at end of file diff --git a/BMW-Dynatrace-config/CD_vps-archive/alerting-profile/alerting-profile.yaml b/BMW-Dynatrace-config/CD_vps-archive/alerting-profile/alerting-profile.yaml new file mode 100644 index 00000000..433d274b --- /dev/null +++ b/BMW-Dynatrace-config/CD_vps-archive/alerting-profile/alerting-profile.yaml @@ -0,0 +1,43 @@ +config: +- CDVPS-Archive: default.json + + +#Prod alerting profiles for EMEA/NA/CN +CDVPS-Archive.EMEA-Prod: +- name: CD_VPS-Archive PROD +- tag: VPS-Archive +- mzId: CD_vps-archive/management-zone/CDvps-archive.id +- env: PROD +- skipDeployment: "false" +CDVPS-Archive.NA-Prod: +- name: CD_VPS-Archive PROD +- tag: VPS-Archive +- mzId: CD_vps-archive/management-zone/CDvps-archive.id +- env: PROD +- skipDeployment: "false" +CDVPS-Archive.CN-Prod: +- name: CD_VPS-Archive PROD +- tag: VPS-Archive +- mzId: CD_vps-archive/management-zone/CDvps-archive.id +- env: PROD +- skipDeployment: "false" + +#INT alerting profiles for EMEA/NA/CN +CDVPS-Archive.EMEA-PreProd: +- name: CD_VPS-Archive INT +- tag: VPS-Archive +- mzId: CD_vps-archive/management-zone/CDvps-archive.id +- env: INT +- skipDeployment: "false" +CDVPS-Archive.NA-PreProd: +- name: CD_VPS-Archive INT +- tag: VPS-Archive +- mzId: CD_vps-archive/management-zone/CDvps-archive.id +- env: INT +- skipDeployment: "false" +CDVPS-Archive.CN-PreProd: +- name: CD_VPS-Archive INT +- tag: VPS-Archive +- mzId: CD_vps-archive/management-zone/CDvps-archive.id +- env: INT +- skipDeployment: "false" \ No newline at end of file diff --git a/BMW-Dynatrace-config/CD_vps-archive/alerting-profile/default.json b/BMW-Dynatrace-config/CD_vps-archive/alerting-profile/default.json new file mode 100644 index 00000000..681a4c64 --- /dev/null +++ b/BMW-Dynatrace-config/CD_vps-archive/alerting-profile/default.json @@ -0,0 +1,103 @@ +{ + "displayName": "{{.name}}", + "eventTypeFilters": [], + "managementZoneId": "{{.mzId}}", + "mzId": "{{.mzId}}", + "rules": [ + { + "delayInMinutes": 0, + "severityLevel": "AVAILABILITY", + "tagFilter": { + "includeMode": "INCLUDE_ALL", + "tagFilters": [ + { + "context": "CONTEXTLESS", + "key": "Component", + "value": "{{.tag}}" + }, + { + "context": "CONTEXTLESS", + "key": "Environment", + "value": "{{.env}}" + } + ] + } + }, + { + "delayInMinutes": 10, + "severityLevel": "ERROR", + "tagFilter": { + "includeMode": "INCLUDE_ALL", + "tagFilters": [ + { + "context": "CONTEXTLESS", + "key": "Component", + "value": "{{.tag}}" + }, + { + "context": "CONTEXTLESS", + "key": "Environment", + "value": "{{.env}}" + } + ] + } + }, + { + "delayInMinutes": 30, + "severityLevel": "PERFORMANCE", + "tagFilter": { + "includeMode": "INCLUDE_ALL", + "tagFilters": [ + { + "context": "CONTEXTLESS", + "key": "Component", + "value": "{{.tag}}" + }, + { + "context": "CONTEXTLESS", + "key": "Environment", + "value": "{{.env}}" + } + ] + } + }, + { + "delayInMinutes": 30, + "severityLevel": "RESOURCE_CONTENTION", + "tagFilter": { + "includeMode": "INCLUDE_ALL", + "tagFilters": [ + { + "context": "CONTEXTLESS", + "key": "Component", + "value": "{{.tag}}" + }, + { + "context": "CONTEXTLESS", + "key": "Environment", + "value": "{{.env}}" + } + ] + } + }, + { + "delayInMinutes": 10, + "severityLevel": "CUSTOM_ALERT", + "tagFilter": { + "includeMode": "INCLUDE_ALL", + "tagFilters": [ + { + "context": "CONTEXTLESS", + "key": "Component", + "value": "{{.tag}}" + }, + { + "context": "CONTEXTLESS", + "key": "Environment", + "value": "{{.env}}" + } + ] + } + } + ] +} \ No newline at end of file diff --git a/BMW-Dynatrace-config/CD_vps-archive/calculated-metrics-service/README.md b/BMW-Dynatrace-config/CD_vps-archive/calculated-metrics-service/README.md new file mode 100644 index 00000000..f958f929 --- /dev/null +++ b/BMW-Dynatrace-config/CD_vps-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_vps-archive/conditional-naming-processgroup/README.md b/BMW-Dynatrace-config/CD_vps-archive/conditional-naming-processgroup/README.md new file mode 100644 index 00000000..8c10d2b4 --- /dev/null +++ b/BMW-Dynatrace-config/CD_vps-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_vps-archive/conditional-naming-processgroup/conditional-naming-processgroup.yaml b/BMW-Dynatrace-config/CD_vps-archive/conditional-naming-processgroup/conditional-naming-processgroup.yaml new file mode 100644 index 00000000..a2e4029f --- /dev/null +++ b/BMW-Dynatrace-config/CD_vps-archive/conditional-naming-processgroup/conditional-naming-processgroup.yaml @@ -0,0 +1,8 @@ +config: +- CDVPS-Archive: template.json + +CDVPS-Archive: +- name: MyProcessNamingRule +- nameFormat: "{ProcessGroup:KubernetesNamespace/regex-example}" +- tag: VPS-Archive +- skipDeployment: "true" diff --git a/BMW-Dynatrace-config/CD_vps-archive/conditional-naming-processgroup/template.json b/BMW-Dynatrace-config/CD_vps-archive/conditional-naming-processgroup/template.json new file mode 100644 index 00000000..7c039808 --- /dev/null +++ b/BMW-Dynatrace-config/CD_vps-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_vps-archive/conditional-naming-service/README.md b/BMW-Dynatrace-config/CD_vps-archive/conditional-naming-service/README.md new file mode 100644 index 00000000..93dc620b --- /dev/null +++ b/BMW-Dynatrace-config/CD_vps-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_vps-archive/conditional-naming-service/conditional-naming-service.yaml b/BMW-Dynatrace-config/CD_vps-archive/conditional-naming-service/conditional-naming-service.yaml new file mode 100644 index 00000000..a2e4029f --- /dev/null +++ b/BMW-Dynatrace-config/CD_vps-archive/conditional-naming-service/conditional-naming-service.yaml @@ -0,0 +1,8 @@ +config: +- CDVPS-Archive: template.json + +CDVPS-Archive: +- name: MyProcessNamingRule +- nameFormat: "{ProcessGroup:KubernetesNamespace/regex-example}" +- tag: VPS-Archive +- skipDeployment: "true" diff --git a/BMW-Dynatrace-config/CD_vps-archive/conditional-naming-service/template.json b/BMW-Dynatrace-config/CD_vps-archive/conditional-naming-service/template.json new file mode 100644 index 00000000..5d4fac56 --- /dev/null +++ b/BMW-Dynatrace-config/CD_vps-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_vps-archive/custom-service-java/README.md b/BMW-Dynatrace-config/CD_vps-archive/custom-service-java/README.md new file mode 100644 index 00000000..a467a6f8 --- /dev/null +++ b/BMW-Dynatrace-config/CD_vps-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_vps-archive/custom-service-java/custom-service-java.yaml b/BMW-Dynatrace-config/CD_vps-archive/custom-service-java/custom-service-java.yaml new file mode 100644 index 00000000..25f8a028 --- /dev/null +++ b/BMW-Dynatrace-config/CD_vps-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_vps-archive/custom-service-java/template-1-1.json b/BMW-Dynatrace-config/CD_vps-archive/custom-service-java/template-1-1.json new file mode 100644 index 00000000..b3003515 --- /dev/null +++ b/BMW-Dynatrace-config/CD_vps-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_vps-archive/notification/README.md b/BMW-Dynatrace-config/CD_vps-archive/notification/README.md new file mode 100644 index 00000000..5ba3825a --- /dev/null +++ b/BMW-Dynatrace-config/CD_vps-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_vps-archive/notification/email.json b/BMW-Dynatrace-config/CD_vps-archive/notification/email.json new file mode 100644 index 00000000..486642a7 --- /dev/null +++ b/BMW-Dynatrace-config/CD_vps-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_vps-archive/notification/itsm.json b/BMW-Dynatrace-config/CD_vps-archive/notification/itsm.json new file mode 100644 index 00000000..677ef0ea --- /dev/null +++ b/BMW-Dynatrace-config/CD_vps-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_vps-archive/notification/msTeams.json b/BMW-Dynatrace-config/CD_vps-archive/notification/msTeams.json new file mode 100644 index 00000000..33e92cf6 --- /dev/null +++ b/BMW-Dynatrace-config/CD_vps-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_vps-archive/notification/notification.yaml b/BMW-Dynatrace-config/CD_vps-archive/notification/notification.yaml new file mode 100644 index 00000000..311299c0 --- /dev/null +++ b/BMW-Dynatrace-config/CD_vps-archive/notification/notification.yaml @@ -0,0 +1,102 @@ +config: +- CDVPS-Archive: msTeams.json +- CDVPS-ArchiveITSM: itsm.json + +# Notification System for EMEA/NA/CN Prod msTeams +CDVPS-Archive.EMEA-Prod: +- name: CD_VPS-Archive PROD +- alertingProfile: CD_VPS-Archive/alerting-profile/CDVPS-Archive.id +- webhook: https://empty +- skipDeployment: "true" +CDVPS-Archive.NA-Prod: +- name: CD_VPS-Archive PROD +- alertingProfile: CD_VPS-Archive/alerting-profile/CDVPS-Archive.id +- webhook: https://empty +- skipDeployment: "true" +CDVPS-Archive.CN-Prod: +- name: CD_VPS-Archive PROD +- alertingProfile: CD_VPS-Archive/alerting-profile/CDVPS-Archive.id +- webhook: https://empty +- skipDeployment: "true" + +# Notification System for EMEA/NA/CN PreProd msTeams +CDVPS-Archive.EMEA-PreProd: +- name: CD_VPS-Archive INT +- alertingProfile: CD_VPS-Archive/alerting-profile/CDVPS-Archive.id +- webhook: https://empty +- skipDeployment: "true" +CDVPS-Archive.NA-PreProd: +- name: CD_VPS-Archive INT +- alertingProfile: CD_VPS-Archive/alerting-profile/CDVPS-Archive.id +- webhook: https://empty +- skipDeployment: "true" +CDVPS-Archive.CN-PreProd: +- name: CD_VPS-Archive INT +- alertingProfile: CD_VPS-Archive/alerting-profile/CDVPS-Archive.id +- webhook: https://empty +- skipDeployment: "true" + + +# Notification System for EMEA/NA/CN Prod ITSM +CDVPS-ArchiveITSM.EMEA-Prod: +- name: CD_VPS-Archive ITSM PROD +- alertingProfile: CD_VPS-Archive/alerting-profile/CDVPS-Archive.id +- webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1 +- contractid: "10APP11906401" +- appdid: "TEST123" +- mzName: CD_VPS-Archive/management-zone/CDVPS-Archive.id +- DTEnvironment: https://xxu26128.live.dynatrace.com +- skipDeployment: "true" + +CDVPS-ArchiveITSM.NA-Prod: +- name: CD_VPS-Archive ITSM PROD +- alertingProfile: CD_VPS-Archive/alerting-profile/CDVPS-Archive.id +- webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1 +- contractid: "10APP11906401" +- appdid: "TEST123" +- mzName: CD_VPS-Archive/management-zone/CDVPS-Archive.id +- DTEnvironment: https://xxu26128.live.dynatrace.com +- skipDeployment: "true" + + +CDVPS-ArchiveITSM.CN-Prod: +- name: CD_VPS-Archive ITSM PROD +- alertingProfile: CD_VPS-Archive/alerting-profile/CDVPS-Archive.id +- webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1 +- contractid: "10APP11906401" +- appdid: "TEST123" +- mzName: CD_VPS-Archive/management-zone/CDVPS-Archive.id +- DTEnvironment: https://xxu26128.live.dynatrace.com +- skipDeployment: "true" + +CDVPS-ArchiveITSM.EMEA-PreProd: +- name: CD_VPS-Archive ITSM INT +- alertingProfile: CD_VPS-Archive/alerting-profile/CDVPS-Archive.id +- webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1 +- contractid: "10APP11906401" +- appdid: "TEST123" +- mzName: CD_VPS-Archive/management-zone/CDVPS-Archive.id +- DTEnvironment: https://xxu26128.live.dynatrace.com +- skipDeployment: "true" + +CDVPS-ArchiveITSM.NA-PreProd: +- name: CD_VPS-Archive ITSM INT +- alertingProfile: CD_VPS-Archive/alerting-profile/CDVPS-Archive.id +- webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1 +- contractid: "10APP11906401" +- appdid: "TEST123" +- mzName: CD_VPS-Archive/management-zone/CDVPS-Archive.id +- DTEnvironment: https://xxu26128.live.dynatrace.com +- skipDeployment: "true" + + +CDVPS-ArchiveITSM.CN-PreProd: +- name: CD_VPS-Archive ITSM INT +- alertingProfile: CD_VPS-Archive/alerting-profile/CDVPS-Archive.id +- webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1 +- contractid: "10APP11906401" +- appdid: "TEST123" +- mzName: CD_VPS-Archive/management-zone/CDVPS-Archive.id +- DTEnvironment: https://xxu26128.live.dynatrace.com +- skipDeployment: "true" + diff --git a/BMW-Dynatrace-config/CD_vps-archive/synthetic-monitor/README.md b/BMW-Dynatrace-config/CD_vps-archive/synthetic-monitor/README.md new file mode 100644 index 00000000..04d7949f --- /dev/null +++ b/BMW-Dynatrace-config/CD_vps-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_vps-archive/synthetic-monitor/default.json b/BMW-Dynatrace-config/CD_vps-archive/synthetic-monitor/default.json new file mode 100644 index 00000000..cf83039b --- /dev/null +++ b/BMW-Dynatrace-config/CD_vps-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_vps-archive/synthetic-monitor/synthetic-monitor.yaml b/BMW-Dynatrace-config/CD_vps-archive/synthetic-monitor/synthetic-monitor.yaml new file mode 100644 index 00000000..5bdfa4a8 --- /dev/null +++ b/BMW-Dynatrace-config/CD_vps-archive/synthetic-monitor/synthetic-monitor.yaml @@ -0,0 +1,10 @@ +config: +- VPS-Archive: default.json + +VPS-Archive: +- name: CD_VPS-Archive - +- mzName: CD_vps-archive/management-zone/CDvps-archive.name +- mzId: CD_vps-archive/management-zone/CDvps-archive.id +- endpoint: +- location: +- skipDeployment: "true" \ No newline at end of file From 9b8d03ef800951044d5c3126b4ed3a8f823cb938 Mon Sep 17 00:00:00 2001 From: mosadak al salamat Date: Wed, 6 Oct 2021 16:02:47 +0200 Subject: [PATCH 2/4] CDVPS-5200 - Add initial configuration of application VPS-Admin to Dynatrace - more specific criteria to Component.json added --- .../00_Global-Config/auto-tag/Component.json | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/BMW-Dynatrace-config/00_Global-Config/auto-tag/Component.json b/BMW-Dynatrace-config/00_Global-Config/auto-tag/Component.json index 397dd438..f9a40f62 100644 --- a/BMW-Dynatrace-config/00_Global-Config/auto-tag/Component.json +++ b/BMW-Dynatrace-config/00_Global-Config/auto-tag/Component.json @@ -4252,10 +4252,11 @@ "attribute": "SERVICE_TYPE" }, "comparisonInfo": { - "type": "SERVICE_TYPE", - "operator": "EQUALS", - "value": "DATABASE_SERVICE", - "negate": false + "caseSensitive": true, + "negate": false, + "operator": "REGEX_MATCHES", + "type": "STRING", + "value": "cc_.*vps.*config" } }, { From cf2201c651c8820a7a7ef7f9041a533895376e3a Mon Sep 17 00:00:00 2001 From: mosadak al salamat Date: Wed, 6 Oct 2021 16:12:04 +0200 Subject: [PATCH 3/4] CDVPS-5201 - Add initial configuration of application VPS-Archive to Dynatrace - more specific criteria to Component.json added --- BMW-Dynatrace-config/00_Global-Config/auto-tag/Component.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BMW-Dynatrace-config/00_Global-Config/auto-tag/Component.json b/BMW-Dynatrace-config/00_Global-Config/auto-tag/Component.json index f9a40f62..950fdff3 100644 --- a/BMW-Dynatrace-config/00_Global-Config/auto-tag/Component.json +++ b/BMW-Dynatrace-config/00_Global-Config/auto-tag/Component.json @@ -4256,7 +4256,7 @@ "negate": false, "operator": "REGEX_MATCHES", "type": "STRING", - "value": "cc_.*vps.*config" + "value": "cc_.*vps.*archive" } }, { From 8bad0a076c5a06893fb43afd85480a335b7e9cb3 Mon Sep 17 00:00:00 2001 From: ermisw Date: Thu, 7 Oct 2021 15:29:50 +0200 Subject: [PATCH 4/4] fix --- BMW-Dynatrace-config/00_Global-Config/auto-tag/Component.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BMW-Dynatrace-config/00_Global-Config/auto-tag/Component.json b/BMW-Dynatrace-config/00_Global-Config/auto-tag/Component.json index 950fdff3..7bc69023 100644 --- a/BMW-Dynatrace-config/00_Global-Config/auto-tag/Component.json +++ b/BMW-Dynatrace-config/00_Global-Config/auto-tag/Component.json @@ -4256,7 +4256,7 @@ "negate": false, "operator": "REGEX_MATCHES", "type": "STRING", - "value": "cc_.*vps.*archive" + "value": "cc_.*vps.*archiv" } }, {