diff --git a/BMW-Dynatrace-config/CD_VDLM_rtchandler/conditional-naming-service/conditional-naming-service.yaml b/BMW-Dynatrace-config/CD_VDLM_rtchandler/conditional-naming-service/conditional-naming-service.yaml index 72c7ef15..dda050cf 100644 --- a/BMW-Dynatrace-config/CD_VDLM_rtchandler/conditional-naming-service/conditional-naming-service.yaml +++ b/BMW-Dynatrace-config/CD_VDLM_rtchandler/conditional-naming-service/conditional-naming-service.yaml @@ -3,6 +3,6 @@ config: CDnewComponentTag: - name: MyProcessNamingRule -- nameFormat: "{ProcessGroup:Kubernetes:app-name} - {Service:DetectedName} - {ProcessGroup:KubernetesNamespace}" +- nameFormat: "{ProcessGroup:Kubernetes:app-name} - {Service:DetectedName} - {ProcessGroup:Kubernetes:environment}" - skipDeployment: "false" -- tag: "vdlm" \ No newline at end of file +- tag: "vdlm" diff --git a/BMW-Dynatrace-config/CD_VDLM_rtchandler/custom-service-java/custom-service-java.yaml b/BMW-Dynatrace-config/CD_VDLM_rtchandler/custom-service-java/custom-service-java.yaml index 763e84a5..57576014 100644 --- a/BMW-Dynatrace-config/CD_VDLM_rtchandler/custom-service-java/custom-service-java.yaml +++ b/BMW-Dynatrace-config/CD_VDLM_rtchandler/custom-service-java/custom-service-java.yaml @@ -1,10 +1,10 @@ config: -- customService1: template-2-1.json -- customService2: template-2-1.json -- customService3: template-1-1.json -- customService4: template-1-1.json -- customService5: template-1-1.json -- customService6: template-1-1.json +- customService1: template-2-1a.json +- customService2: template-2-1b.json +- customService3: template-1-1a.json +- customService4: template-1-1b.json +- customService5: template-1-1c.json +- customService6: template-1-1d.json customService1: - name: "VDLM_rtchandler - ifs-010 (SQS) RtcTeleXIn/Out - IN/OUT" @@ -34,22 +34,22 @@ customService3: - skipDeployment: "false" customService4: - - name: "VDLM_rtchandler - (Timer) timeout" - - className: com.bmw.cc.ts.rtchandler.bm.common.timer.CallTimeoutTimerService - - methodName: handleTimer - - returnType: void - - skipDeployment: "false" +- name: "VDLM_rtchandler - (Timer) timeout" +- className: com.bmw.cc.ts.rtchandler.bm.common.timer.CallTimeoutTimerService +- methodName: handleTimer +- returnType: void +- skipDeployment: "false" customService5: - - name: "VDLM_rtchandler - (Timer) deletion" - - className: com.bmw.cc.ts.rtchandler.bm.common.control.cleanup.DbCleanUpBA - - methodName: cleanUp - - returnType: void - - skipDeployment: "false" +- name: "VDLM_rtchandler - (Timer) deletion" +- className: com.bmw.cc.ts.rtchandler.bm.common.control.cleanup.DbCleanUpBA +- methodName: cleanUp +- returnType: void +- skipDeployment: "false" customService6: - - name: "VDLM_rtchandler - ifs-007 (REST) /rtchandler/rest/diag/v2 (/trigger)" - - className: com.bmw.cc.ts.rtchandler.api.diag.v2.boundary.DiagRequestResponseV2 - - methodName: trigger - - returnType: void - - skipDeployment: "false" \ No newline at end of file +- name: "VDLM_rtchandler - ifs-007 (REST) /rtchandler/rest/diag/v2 (/trigger)" +- className: com.bmw.cc.ts.rtchandler.api.diag.v2.boundary.DiagRequestResponseV2 +- methodName: trigger +- returnType: void +- skipDeployment: "false" \ No newline at end of file diff --git a/BMW-Dynatrace-config/CD_VDLM_rtchandler/custom-service-java/template-1-1a.json b/BMW-Dynatrace-config/CD_VDLM_rtchandler/custom-service-java/template-1-1a.json new file mode 100644 index 00000000..fb870862 --- /dev/null +++ b/BMW-Dynatrace-config/CD_VDLM_rtchandler/custom-service-java/template-1-1a.json @@ -0,0 +1,25 @@ +{ + "enabled": true, + "name": "{{.name}}", + "processGroups": [], + "queueEntryPoint": false, + "queueEntryPointType": null, + "rules": [ + { + "annotations": [], + "className": "{{.className}}", + "enabled": true, + "fileName": "", + "matcher": "EQUALS", + "methodRules": [ + { + "argumentTypes": [ + "com.bmw.cc.ts.rtchandler.bm.common.model.classificationrequest.ClassificationRequest" + ], + "methodName": "{{.methodName}}", + "returnType": "{{.returnType}}" + } + ] + } + ] +} \ No newline at end of file diff --git a/BMW-Dynatrace-config/CD_VDLM_rtchandler/custom-service-java/template-1-1b.json b/BMW-Dynatrace-config/CD_VDLM_rtchandler/custom-service-java/template-1-1b.json new file mode 100644 index 00000000..1fd760ba --- /dev/null +++ b/BMW-Dynatrace-config/CD_VDLM_rtchandler/custom-service-java/template-1-1b.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_VDLM_rtchandler/custom-service-java/template-1-1c.json b/BMW-Dynatrace-config/CD_VDLM_rtchandler/custom-service-java/template-1-1c.json new file mode 100644 index 00000000..1fd760ba --- /dev/null +++ b/BMW-Dynatrace-config/CD_VDLM_rtchandler/custom-service-java/template-1-1c.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_VDLM_rtchandler/custom-service-java/template-1-1d.json b/BMW-Dynatrace-config/CD_VDLM_rtchandler/custom-service-java/template-1-1d.json new file mode 100644 index 00000000..c817d637 --- /dev/null +++ b/BMW-Dynatrace-config/CD_VDLM_rtchandler/custom-service-java/template-1-1d.json @@ -0,0 +1,25 @@ +{ + "enabled": true, + "name": "{{.name}}", + "processGroups": [], + "queueEntryPoint": false, + "queueEntryPointType": null, + "rules": [ + { + "annotations": [], + "className": "{{.className}}", + "enabled": true, + "fileName": "", + "matcher": "EQUALS", + "methodRules": [ + { + "argumentTypes": [ + "com.bmw.cc.ts.rtchandler.api.diag.v2.entity.RTCTriggerRequest" + ], + "methodName": "{{.methodName}}", + "returnType": "{{.returnType}}" + } + ] + } + ] +} \ No newline at end of file diff --git a/BMW-Dynatrace-config/CD_VDLM_rtchandler/custom-service-java/template-2-1a.json b/BMW-Dynatrace-config/CD_VDLM_rtchandler/custom-service-java/template-2-1a.json new file mode 100644 index 00000000..62c8d7a4 --- /dev/null +++ b/BMW-Dynatrace-config/CD_VDLM_rtchandler/custom-service-java/template-2-1a.json @@ -0,0 +1,44 @@ +{ + "enabled": true, + "name": "{{.name}}", + "processGroups": [], + "queueEntryPoint": false, + "queueEntryPointType": null, + "rules": [ + { + "annotations": [], + "className": "{{.className1}}", + "enabled": true, + "fileName": "", + "matcher": "EQUALS", + "methodRules": [ + { + "argumentTypes": [ + "java.lang.String", + "java.util.Map", + "com.bmw.cc.ts.rtchandler.bm.common.util.RequestContext" + ], + "methodName": "{{.methodName1}}", + "returnType": "{{.returnType1}}" + }] + }, + { + "annotations": [], + "className": "{{.className2}}", + "enabled": true, + "fileName": "", + "matcher": "EQUALS", + "methodRules": [ + { + "argumentTypes": [ + "java.lang.String", + "java.util.Map", + "com.bmw.cc.ts.rtchandler.bm.common.util.RequestContext" + ], + "methodName": "{{.methodName2}}", + "returnType": "{{.returnType2}}" + } + ] + } + ] +} \ No newline at end of file diff --git a/BMW-Dynatrace-config/CD_VDLM_rtchandler/custom-service-java/template-2-1.json b/BMW-Dynatrace-config/CD_VDLM_rtchandler/custom-service-java/template-2-1b.json similarity index 67% rename from BMW-Dynatrace-config/CD_VDLM_rtchandler/custom-service-java/template-2-1.json rename to BMW-Dynatrace-config/CD_VDLM_rtchandler/custom-service-java/template-2-1b.json index 9c3c9300..f6873db3 100644 --- a/BMW-Dynatrace-config/CD_VDLM_rtchandler/custom-service-java/template-2-1.json +++ b/BMW-Dynatrace-config/CD_VDLM_rtchandler/custom-service-java/template-2-1b.json @@ -13,7 +13,10 @@ "matcher": "EQUALS", "methodRules": [ { - "argumentTypes": [], + "argumentTypes": [ + "com.bmw.cd.logging.CdllLoggingContext", + "software.amazon.awssdk.services.sqs.model.Message" + ], "methodName": "{{.methodName1}}", "returnType": "{{.returnType1}}" }] @@ -26,7 +29,11 @@ "matcher": "EQUALS", "methodRules": [ { - "argumentTypes": [], + "argumentTypes": [ + "java.lang.String", + "java.lang.String", + "com.bmw.cc.ts.rtchandler.bm.diag.entity.RTCTriggerType" + ], "methodName": "{{.methodName2}}", "returnType": "{{.returnType2}}" } diff --git a/BMW-Dynatrace-config/CD_VDLM_scallservice/conditional-naming-service/conditional-naming-service.yaml b/BMW-Dynatrace-config/CD_VDLM_scallservice/conditional-naming-service/conditional-naming-service.yaml index fb9502e8..dda050cf 100644 --- a/BMW-Dynatrace-config/CD_VDLM_scallservice/conditional-naming-service/conditional-naming-service.yaml +++ b/BMW-Dynatrace-config/CD_VDLM_scallservice/conditional-naming-service/conditional-naming-service.yaml @@ -3,5 +3,6 @@ config: CDnewComponentTag: - name: MyProcessNamingRule -- nameFormat: "{ProcessGroup:KubernetesNamespace/regex-example}" -- skipDeployment: "true" +- nameFormat: "{ProcessGroup:Kubernetes:app-name} - {Service:DetectedName} - {ProcessGroup:Kubernetes:environment}" +- skipDeployment: "false" +- tag: "vdlm" diff --git a/BMW-Dynatrace-config/CD_VDLM_scallservice/custom-service-java/custom-service-java.yaml b/BMW-Dynatrace-config/CD_VDLM_scallservice/custom-service-java/custom-service-java.yaml index 200ac4c3..f19e7fbe 100644 --- a/BMW-Dynatrace-config/CD_VDLM_scallservice/custom-service-java/custom-service-java.yaml +++ b/BMW-Dynatrace-config/CD_VDLM_scallservice/custom-service-java/custom-service-java.yaml @@ -1,9 +1,21 @@ config: -- customService1: template-1-1.json +- customService1: template-1-2.json +- customService2: template-1-1.json customService1: -- name: "VDLM_scallservice - ifs-002 (JOYNR) notifyMaintenanceStatus - IN" -- className: com.bmw.cc.ts.scallservice.bm.maintenance.boundary.MaintenanceConfirmBF -- methodName: notifyMaintenanceStatus -- returnType: void +- name: "VDLM_scallservice - ifs-002 (JOYNR) requestMaintenanceStatus/confirmMaintenanceStatus - OUT" +- className: com.bmw.cc.ts.scallservice.joynr.consumer.boundary.SCallServiceV1Consumer +- methodName1: confirmMaintenanceStatus +- returnType1: void +- methodName2: requestMaintenanceStatus +- returnType2: void - skipDeployment: "false" + + +customService2: + - name: "VDLM_scallservice - ifs-002 (JOYNR) notifyMaintenanceStatus - IN" + - className: com.bmw.cc.ts.scallservice.bm.maintenance.boundary.MaintenanceConfirmBF + - methodName: notifyMaintenanceStatus + - returnType: void + - skipDeployment: "false" + diff --git a/BMW-Dynatrace-config/CD_VDLM_scallservice/custom-service-java/template-1-1.json b/BMW-Dynatrace-config/CD_VDLM_scallservice/custom-service-java/template-1-1.json index b3003515..4ab1ee81 100644 --- a/BMW-Dynatrace-config/CD_VDLM_scallservice/custom-service-java/template-1-1.json +++ b/BMW-Dynatrace-config/CD_VDLM_scallservice/custom-service-java/template-1-1.json @@ -13,7 +13,7 @@ "matcher": "EQUALS", "methodRules": [ { - "argumentTypes": [], + "argumentTypes": ["com.bmw.cc.ts.joynr.consumer.entity.NotifyMaintenanceVehicleResponse"], "methodName": "{{.methodName}}", "returnType": "{{.returnType}}" } diff --git a/BMW-Dynatrace-config/CD_VDLM_rtchandler/custom-service-java/template-1-2.json b/BMW-Dynatrace-config/CD_VDLM_scallservice/custom-service-java/template-1-2.json similarity index 72% rename from BMW-Dynatrace-config/CD_VDLM_rtchandler/custom-service-java/template-1-2.json rename to BMW-Dynatrace-config/CD_VDLM_scallservice/custom-service-java/template-1-2.json index b45f6b11..b3b7224f 100644 --- a/BMW-Dynatrace-config/CD_VDLM_rtchandler/custom-service-java/template-1-2.json +++ b/BMW-Dynatrace-config/CD_VDLM_scallservice/custom-service-java/template-1-2.json @@ -13,7 +13,7 @@ "matcher": "EQUALS", "methodRules": [ { - "argumentTypes": [], + "argumentTypes": ["joynr.de.bmw.infotainment.telematic.common.CommonTypes.RequestId","joynr.de.bmw.infotainment.telematic.common.CommonTypes.ResultCode"], "methodName": "{{.methodName1}}", "returnType": "{{.returnType1}}" }] @@ -26,7 +26,7 @@ "matcher": "EQUALS", "methodRules": [ { - "argumentTypes": [], + "argumentTypes": [ "joynr.de.bmw.infotainment.telematic.common.CommonTypes.RequestId" ], "methodName": "{{.methodName2}}", "returnType": "{{.returnType2}}" } diff --git a/BMW-Dynatrace-config/CD_VDLM_seam/conditional-naming-service/conditional-naming-service.yaml b/BMW-Dynatrace-config/CD_VDLM_seam/conditional-naming-service/conditional-naming-service.yaml index fb9502e8..dda050cf 100644 --- a/BMW-Dynatrace-config/CD_VDLM_seam/conditional-naming-service/conditional-naming-service.yaml +++ b/BMW-Dynatrace-config/CD_VDLM_seam/conditional-naming-service/conditional-naming-service.yaml @@ -3,5 +3,6 @@ config: CDnewComponentTag: - name: MyProcessNamingRule -- nameFormat: "{ProcessGroup:KubernetesNamespace/regex-example}" -- skipDeployment: "true" +- nameFormat: "{ProcessGroup:Kubernetes:app-name} - {Service:DetectedName} - {ProcessGroup:Kubernetes:environment}" +- skipDeployment: "false" +- tag: "vdlm" diff --git a/BMW-Dynatrace-config/CD_VDLM_ts-asc/conditional-naming-service/conditional-naming-service.yaml b/BMW-Dynatrace-config/CD_VDLM_ts-asc/conditional-naming-service/conditional-naming-service.yaml index f3d95308..554e8e6e 100644 --- a/BMW-Dynatrace-config/CD_VDLM_ts-asc/conditional-naming-service/conditional-naming-service.yaml +++ b/BMW-Dynatrace-config/CD_VDLM_ts-asc/conditional-naming-service/conditional-naming-service.yaml @@ -3,6 +3,6 @@ config: CDnewComponentTag: - name: MyProcessNamingRule - - nameFormat: "{ProcessGroup:Kubernetes:app-name} - {Service:DetectedName} - {ProcessGroup:KubernetesNamespace}" + - nameFormat: "{ProcessGroup:Kubernetes:app-name} - {Service:DetectedName} - {ProcessGroup:Kubernetes:environment}" - skipDeployment: "false" - - tag: "vdlm" \ No newline at end of file + - tag: "vdlm" diff --git a/BMW-Dynatrace-config/CD_VDLM_ts-asc/custom-service-java/custom-service-java.yaml b/BMW-Dynatrace-config/CD_VDLM_ts-asc/custom-service-java/custom-service-java.yaml index e96108bc..ea6ff47c 100644 --- a/BMW-Dynatrace-config/CD_VDLM_ts-asc/custom-service-java/custom-service-java.yaml +++ b/BMW-Dynatrace-config/CD_VDLM_ts-asc/custom-service-java/custom-service-java.yaml @@ -13,18 +13,18 @@ customService1: - skipDeployment: "false" customService2: - - name: VDLM_ts-asc - ifs-001 (SQS) AscIn/AscOut - IN/OUT - - className1: com.bmw.cc.asc.bm.boundary.TeleXBF - - methodName1: handleTeleXMessage - - returnType1: void - - className2: com.bmw.cc.asc.integration.sqs.boundary.TeleXSqsESI$Proxy$_$$_Weld$EnterpriseProxy$ - - methodName2: send - - returnType2: void - - skipDeployment: "false" +- name: VDLM_ts-asc - ifs-001 (SQS) AscIn/AscOut - IN/OUT +- className1: com.bmw.cc.asc.bm.boundary.TeleXBF +- methodName1: handleTeleXMessage +- returnType1: void +- className2: com.bmw.cc.asc.integration.sqs.boundary.TeleXSqsESI +- methodName2: send +- returnType2: void +- skipDeployment: "false" customService3: - - name: VDLM_ts-asc - (MQS) CallTopic - OUT - - className: com.bmw.cc.asc.integration.jms.boundry.CallTopicJmsESI$Proxy$_$$_Weld$EnterpriseProxy$ - - methodName: send - - returnType: void - - skipDeployment: "false" +- name: VDLM_ts-asc - (MQS) CallTopic - OUT +- className: com.bmw.cc.asc.integration.jms.boundry.CallTopicJmsESI +- methodName: send +- returnType: void +- skipDeployment: "false" diff --git a/BMW-Dynatrace-config/CD_VDLM_ts-asc/custom-service-java/template-1-1.json b/BMW-Dynatrace-config/CD_VDLM_ts-asc/custom-service-java/template-1-1.json index b3003515..055ec8eb 100644 --- a/BMW-Dynatrace-config/CD_VDLM_ts-asc/custom-service-java/template-1-1.json +++ b/BMW-Dynatrace-config/CD_VDLM_ts-asc/custom-service-java/template-1-1.json @@ -13,7 +13,10 @@ "matcher": "EQUALS", "methodRules": [ { - "argumentTypes": [], + "argumentTypes": [ + "java.lang.String", + "java.util.Map" + ], "methodName": "{{.methodName}}", "returnType": "{{.returnType}}" } diff --git a/BMW-Dynatrace-config/CD_VDLM_ts-asc/custom-service-java/template-1-2.json b/BMW-Dynatrace-config/CD_VDLM_ts-asc/custom-service-java/template-1-2.json index b45f6b11..3e2277c3 100644 --- a/BMW-Dynatrace-config/CD_VDLM_ts-asc/custom-service-java/template-1-2.json +++ b/BMW-Dynatrace-config/CD_VDLM_ts-asc/custom-service-java/template-1-2.json @@ -13,7 +13,10 @@ "matcher": "EQUALS", "methodRules": [ { - "argumentTypes": [], + "argumentTypes": [ + "java.lang.String", + "java.util.Map" + ], "methodName": "{{.methodName1}}", "returnType": "{{.returnType1}}" }] @@ -26,7 +29,10 @@ "matcher": "EQUALS", "methodRules": [ { - "argumentTypes": [], + "argumentTypes": [ + "java.lang.String", + "java.util.Map" + ], "methodName": "{{.methodName2}}", "returnType": "{{.returnType2}}" } diff --git a/BMW-Dynatrace-config/CD_VDLM_ts-asc/custom-service-java/template-2-1.json b/BMW-Dynatrace-config/CD_VDLM_ts-asc/custom-service-java/template-2-1.json index 9c3c9300..8adf3cee 100644 --- a/BMW-Dynatrace-config/CD_VDLM_ts-asc/custom-service-java/template-2-1.json +++ b/BMW-Dynatrace-config/CD_VDLM_ts-asc/custom-service-java/template-2-1.json @@ -13,7 +13,10 @@ "matcher": "EQUALS", "methodRules": [ { - "argumentTypes": [], + "argumentTypes": [ + "java.lang.String", + "java.util.Map" + ], "methodName": "{{.methodName1}}", "returnType": "{{.returnType1}}" }] @@ -26,7 +29,10 @@ "matcher": "EQUALS", "methodRules": [ { - "argumentTypes": [], + "argumentTypes": [ + "java.lang.String", + "java.util.Map" + ], "methodName": "{{.methodName2}}", "returnType": "{{.returnType2}}" } diff --git a/BMW-Dynatrace-config/CD_vs-cmdb/alerting-profile/alerting-profile.yaml b/BMW-Dynatrace-config/CD_vs-cmdb/alerting-profile/alerting-profile.yaml new file mode 100644 index 00000000..fd78ddb1 --- /dev/null +++ b/BMW-Dynatrace-config/CD_vs-cmdb/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_vs-cmdb PROD +- mzId: CD_vs-cmdb/management-zone/CDnewComponentTag.id +- env: PROD +- skipDeployment: "false" +CDnewComponentTag.NA-Prod: +- name: CD_vs-cmdb PROD +- mzId: CD_vs-cmdb/management-zone/CDnewComponentTag.id +- env: PROD +- skipDeployment: "false" +CDnewComponentTag.CN-Prod: +- name: CD_vs-cmdb PROD +- mzId: CD_vs-cmdb/management-zone/CDnewComponentTag.id +- env: PROD +- skipDeployment: "false" + +#INT alerting profiles for EMEA/NA/CN +CDnewComponentTag.EMEA-PreProd: +- name: CD_vs-cmdb INT +- mzId: CD_vs-cmdb/management-zone/CDnewComponentTag.id +- env: INT +- skipDeployment: "false" +CDnewComponentTag.NA-PreProd: +- name: CD_vs-cmdb INT +- mzId: CD_vs-cmdb/management-zone/CDnewComponentTag.id +- env: INT +- skipDeployment: "false" +CDnewComponentTag.CN-PreProd: +- name: CD_vs-cmdb INT +- mzId: CD_vs-cmdb/management-zone/CDnewComponentTag.id +- env: INT +- skipDeployment: "false" \ No newline at end of file diff --git a/BMW-Dynatrace-config/CD_vs-cmdb/alerting-profile/default.json b/BMW-Dynatrace-config/CD_vs-cmdb/alerting-profile/default.json new file mode 100644 index 00000000..bb81115c --- /dev/null +++ b/BMW-Dynatrace-config/CD_vs-cmdb/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_vs-cmdb/calculated-metrics-service/README.md b/BMW-Dynatrace-config/CD_vs-cmdb/calculated-metrics-service/README.md new file mode 100644 index 00000000..f958f929 --- /dev/null +++ b/BMW-Dynatrace-config/CD_vs-cmdb/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_vs-cmdb/conditional-naming-processgroup/README.md b/BMW-Dynatrace-config/CD_vs-cmdb/conditional-naming-processgroup/README.md new file mode 100644 index 00000000..8c10d2b4 --- /dev/null +++ b/BMW-Dynatrace-config/CD_vs-cmdb/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_vs-cmdb/conditional-naming-processgroup/conditional-naming-processgroup.yaml b/BMW-Dynatrace-config/CD_vs-cmdb/conditional-naming-processgroup/conditional-naming-processgroup.yaml new file mode 100644 index 00000000..fb9502e8 --- /dev/null +++ b/BMW-Dynatrace-config/CD_vs-cmdb/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_vs-cmdb/conditional-naming-processgroup/template.json b/BMW-Dynatrace-config/CD_vs-cmdb/conditional-naming-processgroup/template.json new file mode 100644 index 00000000..7c039808 --- /dev/null +++ b/BMW-Dynatrace-config/CD_vs-cmdb/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_vs-cmdb/conditional-naming-service/README.md b/BMW-Dynatrace-config/CD_vs-cmdb/conditional-naming-service/README.md new file mode 100644 index 00000000..93dc620b --- /dev/null +++ b/BMW-Dynatrace-config/CD_vs-cmdb/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_vs-cmdb/conditional-naming-service/conditional-naming-service.yaml b/BMW-Dynatrace-config/CD_vs-cmdb/conditional-naming-service/conditional-naming-service.yaml new file mode 100644 index 00000000..fb9502e8 --- /dev/null +++ b/BMW-Dynatrace-config/CD_vs-cmdb/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_vs-cmdb/conditional-naming-service/template.json b/BMW-Dynatrace-config/CD_vs-cmdb/conditional-naming-service/template.json new file mode 100644 index 00000000..5d4fac56 --- /dev/null +++ b/BMW-Dynatrace-config/CD_vs-cmdb/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_vs-cmdb/custom-service-java/README.md b/BMW-Dynatrace-config/CD_vs-cmdb/custom-service-java/README.md new file mode 100644 index 00000000..a467a6f8 --- /dev/null +++ b/BMW-Dynatrace-config/CD_vs-cmdb/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_vs-cmdb/custom-service-java/custom-service-java.yaml b/BMW-Dynatrace-config/CD_vs-cmdb/custom-service-java/custom-service-java.yaml new file mode 100644 index 00000000..25f8a028 --- /dev/null +++ b/BMW-Dynatrace-config/CD_vs-cmdb/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_VDLM_rtchandler/custom-service-java/template-1-1.json b/BMW-Dynatrace-config/CD_vs-cmdb/custom-service-java/template-1-1.json similarity index 100% rename from BMW-Dynatrace-config/CD_VDLM_rtchandler/custom-service-java/template-1-1.json rename to BMW-Dynatrace-config/CD_vs-cmdb/custom-service-java/template-1-1.json diff --git a/BMW-Dynatrace-config/CD_vs-cmdb/dashboard/README.md b/BMW-Dynatrace-config/CD_vs-cmdb/dashboard/README.md new file mode 100644 index 00000000..2b6d5717 --- /dev/null +++ b/BMW-Dynatrace-config/CD_vs-cmdb/dashboard/README.md @@ -0,0 +1,4 @@ + +### How to configure dashboards? + +Please refer to [this](https://atc.bmwgroup.net/confluence/display/OPMAAS/Documentation+%7C+Dashboards) page to configure your dashboards. \ No newline at end of file diff --git a/BMW-Dynatrace-config/CD_vs-cmdb/dashboard/dashboard.yaml b/BMW-Dynatrace-config/CD_vs-cmdb/dashboard/dashboard.yaml new file mode 100644 index 00000000..59194d5e --- /dev/null +++ b/BMW-Dynatrace-config/CD_vs-cmdb/dashboard/dashboard.yaml @@ -0,0 +1,109 @@ +config: +- CDnewComponentTag-PROD: default.json +- CDnewComponentTag-E2E: default.json +- CDnewComponentTag-INT: default.json +- CDnewComponentTag-TEST: default.json + +#PROD dashboards for EMEA/NA/CN Prod +CDnewComponentTag-PROD: +- name: CD_vs-cmdb PROD +- mzName: CD_vs-cmdb/management-zone/CDnewComponentTag.name +- mzId: CD_vs-cmdb/management-zone/CDnewComponentTag.id +- env: PROD +- skipDeployment: "true" +CDnewComponentTag-PROD.EMEA-Prod: +- name: CD_vs-cmdb PROD +- mzName: CD_vs-cmdb/management-zone/CDnewComponentTag.name +- mzId: CD_vs-cmdb/management-zone/CDnewComponentTag.id +- env: PROD +- skipDeployment: "false" +CDnewComponentTag-PROD.NA-Prod: +- name: CD_vs-cmdb PROD +- mzName: CD_vs-cmdb/management-zone/CDnewComponentTag.name +- mzId: CD_vs-cmdb/management-zone/CDnewComponentTag.id +- env: PROD +- skipDeployment: "false" +CDnewComponentTag-PROD.CN-Prod: +- name: CD_vs-cmdb PROD +- mzName: CD_vs-cmdb/management-zone/CDnewComponentTag.name +- mzId: CD_vs-cmdb/management-zone/CDnewComponentTag.id +- env: PROD +- skipDeployment: "false" + +#E2E dashboards for EMEA/NA/CN Prod +CDnewComponentTag-E2E: +- name: CD_vs-cmdb E2E +- mzName: CD_vs-cmdb/management-zone/CDnewComponentTag.name +- mzId: CD_vs-cmdb/management-zone/CDnewComponentTag.id +- env: E2E +- skipDeployment: "true" +CDnewComponentTag-E2E.EMEA-Prod: +- name: CD_vs-cmdb E2E +- mzName: CD_vs-cmdb/management-zone/CDnewComponentTag.name +- mzId: CD_vs-cmdb/management-zone/CDnewComponentTag.id +- env: E2E +- skipDeployment: "false" +CDnewComponentTag-E2E.NA-Prod: +- name: CD_vs-cmdb E2E +- mzName: CD_vs-cmdb/management-zone/CDnewComponentTag.name +- mzId: CD_vs-cmdb/management-zone/CDnewComponentTag.id +- env: E2E +- skipDeployment: "false" +CDnewComponentTag-E2E.CN-Prod: +- name: CD_vs-cmdb E2E +- mzName: CD_vs-cmdb/management-zone/CDnewComponentTag.name +- mzId: CD_vs-cmdb/management-zone/CDnewComponentTag.id +- env: E2E +- skipDeployment: "false" + +#INT dashboards for EMEA/NA/CN PreProd +CDnewComponentTag-INT: +- name: CD_vs-cmdb INT +- mzName: CD_vs-cmdb/management-zone/CDnewComponentTag.name +- mzId: CD_vs-cmdb/management-zone/CDnewComponentTag.id +- env: INT +- skipDeployment: "true" +CDnewComponentTag-INT.EMEA-PreProd: +- name: CD_vs-cmdb INT +- mzName: CD_vs-cmdb/management-zone/CDnewComponentTag.name +- mzId: CD_vs-cmdb/management-zone/CDnewComponentTag.id +- env: INT +- skipDeployment: "false" +CDnewComponentTag-INT.NA-PreProd: +- name: CD_vs-cmdb INT +- mzName: CD_vs-cmdb/management-zone/CDnewComponentTag.name +- mzId: CD_vs-cmdb/management-zone/CDnewComponentTag.id +- env: INT +- skipDeployment: "false" +CDnewComponentTag-INT.CN-PreProd: +- name: CD_vs-cmdb INT +- mzName: CD_vs-cmdb/management-zone/CDnewComponentTag.name +- mzId: CD_vs-cmdb/management-zone/CDnewComponentTag.id +- env: INT +- skipDeployment: "false" + +#TEST dashboards for EMEA/NA/CN PreProd +CDnewComponentTag-TEST: +- name: CD_vs-cmdb TEST +- mzName: CD_vs-cmdb/management-zone/CDnewComponentTag.name +- mzId: CD_vs-cmdb/management-zone/CDnewComponentTag.id +- env: TEST +- skipDeployment: "true" +CDnewComponentTag-TEST.EMEA-PreProd: +- name: CD_vs-cmdb TEST +- mzName: CD_vs-cmdb/management-zone/CDnewComponentTag.name +- mzId: CD_vs-cmdb/management-zone/CDnewComponentTag.id +- env: TEST +- skipDeployment: "false" +CDnewComponentTag-TEST.NA-PreProd: +- name: CD_vs-cmdb TEST +- mzName: CD_vs-cmdb/management-zone/CDnewComponentTag.name +- mzId: CD_vs-cmdb/management-zone/CDnewComponentTag.id +- env: TEST +- skipDeployment: "false" +CDnewComponentTag-TEST.CN-PreProd: +- name: CD_vs-cmdb TEST +- mzName: CD_vs-cmdb/management-zone/CDnewComponentTag.name +- mzId: CD_vs-cmdb/management-zone/CDnewComponentTag.id +- env: TEST +- skipDeployment: "false" \ No newline at end of file diff --git a/BMW-Dynatrace-config/CD_vs-cmdb/dashboard/default.json b/BMW-Dynatrace-config/CD_vs-cmdb/dashboard/default.json new file mode 100644 index 00000000..189767ed --- /dev/null +++ b/BMW-Dynatrace-config/CD_vs-cmdb/dashboard/default.json @@ -0,0 +1,334 @@ +{ + "metadata": { + "configurationVersions": [ + 3 + ], + "clusterVersion": "1.214.107.20210407-223952" + }, + "dashboardMetadata": { + "name": "{{.name}}", + "shared": true, + "owner": "Ignacio.Goldman@partner.bmwgroup.com", + "dashboardFilter": { + "timeframe": "-24h to now" + }, + "tags": [ + "{{.mzName}}" + ], + "preset": true + }, + "tiles": [ + { + "name": "Custom chart", + "tileType": "CUSTOM_CHARTING", + "configured": true, + "bounds": { + "top": 228, + "left": 38, + "width": 1064, + "height": 304 + }, + "tileFilter": { + "managementZone": { + "id": "{{.mzId}}", + "name": "{{.mzName}}" + } + }, + "filterConfig": { + "type": "MIXED", + "customName": "Failure rate (HTTP 4xx/5xx errors)", + "defaultName": "Custom chart", + "chartConfig": { + "legendShown": true, + "type": "TIMESERIES", + "series": [ + { + "metric": "builtin:service.errors.fourxx.rate", + "aggregation": "AVG", + "type": "BAR", + "entityType": "SERVICE", + "dimensions": [], + "sortAscending": false, + "sortColumn": false, + "aggregationRate": "TOTAL" + }, + { + "metric": "builtin:service.errors.fivexx.rate", + "aggregation": "AVG", + "type": "BAR", + "entityType": "SERVICE", + "dimensions": [], + "sortAscending": false, + "sortColumn": true, + "aggregationRate": "TOTAL" + } + ], + "resultMetadata": { + "nullbuiltin:service.errors.fivexx.rate|AVG|TOTAL|BAR|SERVICE": { + "lastModified": 1617956393463, + "customColor": "#ff0000" + }, + "nullbuiltin:service.errors.fourxx.rate|AVG|TOTAL|BAR|SERVICE": { + "lastModified": 1617956441725, + "customColor": "#fff29a" + } + } + }, + "filtersPerEntityType": { + "SERVICE": { + "AUTO_TAGS": [ + "Environment:{{.env}}" + ] + } + } + } + }, + { + "name": "Problems", + "tileType": "OPEN_PROBLEMS", + "configured": true, + "bounds": { + "top": 38, + "left": 950, + "width": 152, + "height": 152 + }, + "tileFilter": { + "managementZone": { + "id": "{{.mzId}}", + "name": "{{.mzName}}" + } + } + }, + { + "name": "Overall Health", + "tileType": "HEADER", + "configured": true, + "bounds": { + "top": 0, + "left": 38, + "width": 1064, + "height": 38 + }, + "tileFilter": { + "managementZone": { + "id": "{{.mzId}}", + "name": "{{.mzName}}" + } + } + }, + { + "name": "Markdown", + "tileType": "MARKDOWN", + "configured": true, + "bounds": { + "top": 532, + "left": 38, + "width": 1064, + "height": 38 + }, + "tileFilter": {}, + "markdown": "---\n" + }, + { + "name": "Custom chart", + "tileType": "CUSTOM_CHARTING", + "configured": true, + "bounds": { + "top": 570, + "left": 38, + "width": 1064, + "height": 304 + }, + "tileFilter": { + "managementZone": { + "id": "{{.mzId}}", + "name": "{{.mzName}}" + } + }, + "filterConfig": { + "type": "MIXED", + "customName": "Response time, Request Count and Number of Errors", + "defaultName": "Custom chart", + "chartConfig": { + "legendShown": true, + "type": "TIMESERIES", + "series": [ + { + "metric": "builtin:service.response.time", + "aggregation": "AVG", + "type": "LINE", + "entityType": "SERVICE", + "dimensions": [], + "sortAscending": false, + "sortColumn": false, + "aggregationRate": "TOTAL" + }, + { + "metric": "builtin:service.requestCount.total", + "aggregation": "NONE", + "type": "BAR", + "entityType": "SERVICE", + "dimensions": [], + "sortAscending": false, + "sortColumn": false, + "aggregationRate": "TOTAL" + }, + { + "metric": "builtin:service.errors.total.count", + "aggregation": "NONE", + "type": "BAR", + "entityType": "SERVICE", + "dimensions": [], + "sortAscending": false, + "sortColumn": true, + "aggregationRate": "TOTAL" + } + ], + "resultMetadata": { + "nullbuiltin:service.requestCount.total|NONE|TOTAL|BAR|SERVICE": { + "lastModified": 1595275720776, + "customColor": "#008cdb" + }, + "nullbuiltin:service.errors.total.count|NONE|TOTAL|BAR|SERVICE": { + "lastModified": 1595275955999, + "customColor": "#ef651f" + }, + "nullbuiltin:service.response.time|AVG|TOTAL|LINE|SERVICE": { + "lastModified": 1595275686773, + "customColor": "#b4e5f9" + } + } + }, + "filtersPerEntityType": { + "SERVICE": { + "AUTO_TAGS": [ + "Environment:{{.env}}" + ] + } + } + } + }, + { + "name": "Markdown", + "tileType": "MARKDOWN", + "configured": true, + "bounds": { + "top": 190, + "left": 38, + "width": 1064, + "height": 38 + }, + "tileFilter": {}, + "markdown": "---\n" + }, + { + "name": "", + "tileType": "DATABASES_OVERVIEW", + "configured": true, + "bounds": { + "top": 38, + "left": 646, + "width": 190, + "height": 152 + }, + "tileFilter": { + "managementZone": { + "id": "{{.mzId}}", + "name": "{{.mzName}}" + } + }, + "filterConfig": { + "type": "DATABASE", + "customName": "Databases", + "defaultName": "Databases", + "chartConfig": { + "legendShown": true, + "type": "TIMESERIES", + "series": [], + "resultMetadata": {} + }, + "filtersPerEntityType": { + "DATABASE": { + "AUTO_TAGS": [ + "Environment:{{.env}}" + ] + } + } + }, + "chartVisible": true + }, + { + "name": "", + "tileType": "SERVICES", + "configured": true, + "bounds": { + "top": 38, + "left": 342, + "width": 190, + "height": 152 + }, + "tileFilter": { + "managementZone": { + "id": "{{.mzId}}", + "name": "{{.mzName}}" + } + }, + "filterConfig": { + "type": "SERVICE", + "customName": "Services", + "defaultName": "Services", + "chartConfig": { + "legendShown": true, + "type": "TIMESERIES", + "series": [], + "resultMetadata": {} + }, + "filtersPerEntityType": { + "SERVICE": { + "AUTO_TAGS": [ + "Environment:{{.env}}" + ] + } + } + }, + "chartVisible": true + }, + { + "name": "", + "tileType": "HOSTS", + "configured": true, + "bounds": { + "top": 38, + "left": 38, + "width": 190, + "height": 152 + }, + "tileFilter": { + "managementZone": { + "id": "{{.mzId}}", + "name": "{{.mzName}}" + } + }, + "filterConfig": { + "type": "HOST", + "customName": "Hosts", + "defaultName": "Hosts", + "chartConfig": { + "legendShown": true, + "type": "TIMESERIES", + "series": [], + "resultMetadata": {} + }, + "filtersPerEntityType": { + "HOST": { + "AUTO_TAGS": [ + "Environment:{{.env}}" + ] + } + } + }, + "chartVisible": true + } + ] +} \ No newline at end of file diff --git a/BMW-Dynatrace-config/CD_vs-cmdb/management-zone/README.md b/BMW-Dynatrace-config/CD_vs-cmdb/management-zone/README.md new file mode 100644 index 00000000..ffe9d6e3 --- /dev/null +++ b/BMW-Dynatrace-config/CD_vs-cmdb/management-zone/README.md @@ -0,0 +1,4 @@ + +### How to configure management zones? + +Please refer to [this](https://atc.bmwgroup.net/confluence/display/OPMAAS/Documentation+%7C+Management+Zones) page to configure your management zones. \ No newline at end of file diff --git a/BMW-Dynatrace-config/CD_vs-cmdb/management-zone/default.json b/BMW-Dynatrace-config/CD_vs-cmdb/management-zone/default.json new file mode 100644 index 00000000..fc96de39 --- /dev/null +++ b/BMW-Dynatrace-config/CD_vs-cmdb/management-zone/default.json @@ -0,0 +1,23 @@ +{ + "dimensionalRules": [], + "name": "{{.name}}", + "entitySelectorBasedRules": [ + { + "enabled": true, + "entitySelector": "type(Service),tag({{.compassIDs}})" + }, + { + "enabled": true, + "entitySelector": "type(SERVICE),databaseName.exists(),toRelationship.calls(type(SERVICE),tag({{.compassIDs}}))" + }, + { + "enabled": true, + "entitySelector": "type(PROCESS_GROUP_INSTANCE),tag({{.compassIDs}})" + }, + { + "enabled": true, + "entitySelector": "type(HOST),tag({{.compassIDs}})" + } + ], + "rules": [] +} \ No newline at end of file diff --git a/BMW-Dynatrace-config/CD_vs-cmdb/management-zone/management-zone.yaml b/BMW-Dynatrace-config/CD_vs-cmdb/management-zone/management-zone.yaml new file mode 100644 index 00000000..353ca2b1 --- /dev/null +++ b/BMW-Dynatrace-config/CD_vs-cmdb/management-zone/management-zone.yaml @@ -0,0 +1,6 @@ +config: +- CDnewComponentTag: default.json + +CDnewComponentTag: +- name: CD_vs-cmdb +- compassIDs: \"compass-id:vs-cmdb\" diff --git a/BMW-Dynatrace-config/CD_vs-cmdb/notification/README.md b/BMW-Dynatrace-config/CD_vs-cmdb/notification/README.md new file mode 100644 index 00000000..5ba3825a --- /dev/null +++ b/BMW-Dynatrace-config/CD_vs-cmdb/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_vs-cmdb/notification/email.json b/BMW-Dynatrace-config/CD_vs-cmdb/notification/email.json new file mode 100644 index 00000000..486642a7 --- /dev/null +++ b/BMW-Dynatrace-config/CD_vs-cmdb/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_vs-cmdb/notification/itsm.json b/BMW-Dynatrace-config/CD_vs-cmdb/notification/itsm.json new file mode 100644 index 00000000..677ef0ea --- /dev/null +++ b/BMW-Dynatrace-config/CD_vs-cmdb/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_vs-cmdb/notification/msTeams.json b/BMW-Dynatrace-config/CD_vs-cmdb/notification/msTeams.json new file mode 100644 index 00000000..33e92cf6 --- /dev/null +++ b/BMW-Dynatrace-config/CD_vs-cmdb/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_vs-cmdb/notification/notification.yaml b/BMW-Dynatrace-config/CD_vs-cmdb/notification/notification.yaml new file mode 100644 index 00000000..554a7624 --- /dev/null +++ b/BMW-Dynatrace-config/CD_vs-cmdb/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_vs-cmdb PROD +- alertingProfile: CD_vs-cmdb/alerting-profile/CDnewComponentTag.id +- webhook: https://empty +- skipDeployment: "true" +CDnewComponentTag.NA-Prod: +- name: CD_vs-cmdb PROD +- alertingProfile: CD_vs-cmdb/alerting-profile/CDnewComponentTag.id +- webhook: https://empty +- skipDeployment: "true" +CDnewComponentTag.CN-Prod: +- name: CD_vs-cmdb PROD +- alertingProfile: CD_vs-cmdb/alerting-profile/CDnewComponentTag.id +- webhook: https://empty +- skipDeployment: "true" + +# Notification System for EMEA/NA/CN PreProd msTeams +CDnewComponentTag.EMEA-PreProd: +- name: CD_vs-cmdb INT +- alertingProfile: CD_vs-cmdb/alerting-profile/CDnewComponentTag.id +- webhook: https://empty +- skipDeployment: "true" +CDnewComponentTag.NA-PreProd: +- name: CD_vs-cmdb INT +- alertingProfile: CD_vs-cmdb/alerting-profile/CDnewComponentTag.id +- webhook: https://empty +- skipDeployment: "true" +CDnewComponentTag.CN-PreProd: +- name: CD_vs-cmdb INT +- alertingProfile: CD_vs-cmdb/alerting-profile/CDnewComponentTag.id +- webhook: https://empty +- skipDeployment: "true" + + +# Notification System for EMEA/NA/CN Prod ITSM +CDnewComponentTagITSM.EMEA-Prod: +- name: CD_vs-cmdb ITSM PROD +- alertingProfile: CD_vs-cmdb/alerting-profile/CDnewComponentTag.id +- webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1 +- contractid: "10APP11906401" +- appdid: "TEST123" +- mzName: CD_vs-cmdb/management-zone/CDnewComponentTag.id +- DTEnvironment: https://xxu26128.live.dynatrace.com +- skipDeployment: "true" + +CDnewComponentTagITSM.NA-Prod: +- name: CD_vs-cmdb ITSM PROD +- alertingProfile: CD_vs-cmdb/alerting-profile/CDnewComponentTag.id +- webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1 +- contractid: "10APP11906401" +- appdid: "TEST123" +- mzName: CD_vs-cmdb/management-zone/CDnewComponentTag.id +- DTEnvironment: https://xxu26128.live.dynatrace.com +- skipDeployment: "true" + + +CDnewComponentTagITSM.CN-Prod: +- name: CD_vs-cmdb ITSM PROD +- alertingProfile: CD_vs-cmdb/alerting-profile/CDnewComponentTag.id +- webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1 +- contractid: "10APP11906401" +- appdid: "TEST123" +- mzName: CD_vs-cmdb/management-zone/CDnewComponentTag.id +- DTEnvironment: https://xxu26128.live.dynatrace.com +- skipDeployment: "true" + +CDnewComponentTagITSM.EMEA-PreProd: +- name: CD_vs-cmdb ITSM INT +- alertingProfile: CD_vs-cmdb/alerting-profile/CDnewComponentTag.id +- webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1 +- contractid: "10APP11906401" +- appdid: "TEST123" +- mzName: CD_vs-cmdb/management-zone/CDnewComponentTag.id +- DTEnvironment: https://xxu26128.live.dynatrace.com +- skipDeployment: "true" + +CDnewComponentTagITSM.NA-PreProd: +- name: CD_vs-cmdb ITSM INT +- alertingProfile: CD_vs-cmdb/alerting-profile/CDnewComponentTag.id +- webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1 +- contractid: "10APP11906401" +- appdid: "TEST123" +- mzName: CD_vs-cmdb/management-zone/CDnewComponentTag.id +- DTEnvironment: https://xxu26128.live.dynatrace.com +- skipDeployment: "true" + + +CDnewComponentTagITSM.CN-PreProd: +- name: CD_vs-cmdb ITSM INT +- alertingProfile: CD_vs-cmdb/alerting-profile/CDnewComponentTag.id +- webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1 +- contractid: "10APP11906401" +- appdid: "TEST123" +- mzName: CD_vs-cmdb/management-zone/CDnewComponentTag.id +- DTEnvironment: https://xxu26128.live.dynatrace.com +- skipDeployment: "true" + diff --git a/BMW-Dynatrace-config/CD_vs-cmdb/synthetic-monitor/README.md b/BMW-Dynatrace-config/CD_vs-cmdb/synthetic-monitor/README.md new file mode 100644 index 00000000..04d7949f --- /dev/null +++ b/BMW-Dynatrace-config/CD_vs-cmdb/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_vs-cmdb/synthetic-monitor/default.json b/BMW-Dynatrace-config/CD_vs-cmdb/synthetic-monitor/default.json new file mode 100644 index 00000000..cf83039b --- /dev/null +++ b/BMW-Dynatrace-config/CD_vs-cmdb/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_vs-cmdb/synthetic-monitor/synthetic-monitor.yaml b/BMW-Dynatrace-config/CD_vs-cmdb/synthetic-monitor/synthetic-monitor.yaml new file mode 100644 index 00000000..14611f09 --- /dev/null +++ b/BMW-Dynatrace-config/CD_vs-cmdb/synthetic-monitor/synthetic-monitor.yaml @@ -0,0 +1,10 @@ +config: +- newComponentTag: default.json + +newComponentTag: +- name: CD_vs-cmdb - +- mzName: CD_vs-cmdb/management-zone/CDnewComponentTag.name +- mzId: CD_vs-cmdb/management-zone/CDnewComponentTag.id +- endpoint: +- location: +- skipDeployment: "true" \ No newline at end of file