From 9a53cae65972c323a656408b8d7c31af3bc5a2f1 Mon Sep 17 00:00:00 2001 From: qxz0kv3 Date: Wed, 3 Nov 2021 10:58:47 +0100 Subject: [PATCH] Added pais, psr to CD_Perseus --- .../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 +++++++ .../CD_Perseus/custom-service-java/README.md | 4 + .../custom-service-java.yaml | 9 ++ .../custom-service-java/template-1-1.json | 23 ++++++ .../CD_Perseus/synthetic-monitor/README.md | 4 + .../CD_Perseus/synthetic-monitor/default.json | 82 +++++++++++++++++++ .../synthetic-monitor/synthetic-monitor.yaml | 10 +++ 13 files changed, 216 insertions(+) create mode 100644 BMW-Dynatrace-config/CD_Perseus/calculated-metrics-service/README.md create mode 100644 BMW-Dynatrace-config/CD_Perseus/conditional-naming-processgroup/README.md create mode 100644 BMW-Dynatrace-config/CD_Perseus/conditional-naming-processgroup/conditional-naming-processgroup.yaml create mode 100644 BMW-Dynatrace-config/CD_Perseus/conditional-naming-processgroup/template.json create mode 100644 BMW-Dynatrace-config/CD_Perseus/conditional-naming-service/README.md create mode 100644 BMW-Dynatrace-config/CD_Perseus/conditional-naming-service/conditional-naming-service.yaml create mode 100644 BMW-Dynatrace-config/CD_Perseus/conditional-naming-service/template.json create mode 100644 BMW-Dynatrace-config/CD_Perseus/custom-service-java/README.md create mode 100644 BMW-Dynatrace-config/CD_Perseus/custom-service-java/custom-service-java.yaml create mode 100644 BMW-Dynatrace-config/CD_Perseus/custom-service-java/template-1-1.json create mode 100644 BMW-Dynatrace-config/CD_Perseus/synthetic-monitor/README.md create mode 100644 BMW-Dynatrace-config/CD_Perseus/synthetic-monitor/default.json create mode 100644 BMW-Dynatrace-config/CD_Perseus/synthetic-monitor/synthetic-monitor.yaml diff --git a/BMW-Dynatrace-config/CD_Perseus/calculated-metrics-service/README.md b/BMW-Dynatrace-config/CD_Perseus/calculated-metrics-service/README.md new file mode 100644 index 00000000..f958f929 --- /dev/null +++ b/BMW-Dynatrace-config/CD_Perseus/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_Perseus/conditional-naming-processgroup/README.md b/BMW-Dynatrace-config/CD_Perseus/conditional-naming-processgroup/README.md new file mode 100644 index 00000000..8c10d2b4 --- /dev/null +++ b/BMW-Dynatrace-config/CD_Perseus/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_Perseus/conditional-naming-processgroup/conditional-naming-processgroup.yaml b/BMW-Dynatrace-config/CD_Perseus/conditional-naming-processgroup/conditional-naming-processgroup.yaml new file mode 100644 index 00000000..fb9502e8 --- /dev/null +++ b/BMW-Dynatrace-config/CD_Perseus/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_Perseus/conditional-naming-processgroup/template.json b/BMW-Dynatrace-config/CD_Perseus/conditional-naming-processgroup/template.json new file mode 100644 index 00000000..7c039808 --- /dev/null +++ b/BMW-Dynatrace-config/CD_Perseus/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_Perseus/conditional-naming-service/README.md b/BMW-Dynatrace-config/CD_Perseus/conditional-naming-service/README.md new file mode 100644 index 00000000..93dc620b --- /dev/null +++ b/BMW-Dynatrace-config/CD_Perseus/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_Perseus/conditional-naming-service/conditional-naming-service.yaml b/BMW-Dynatrace-config/CD_Perseus/conditional-naming-service/conditional-naming-service.yaml new file mode 100644 index 00000000..fb9502e8 --- /dev/null +++ b/BMW-Dynatrace-config/CD_Perseus/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_Perseus/conditional-naming-service/template.json b/BMW-Dynatrace-config/CD_Perseus/conditional-naming-service/template.json new file mode 100644 index 00000000..5d4fac56 --- /dev/null +++ b/BMW-Dynatrace-config/CD_Perseus/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_Perseus/custom-service-java/README.md b/BMW-Dynatrace-config/CD_Perseus/custom-service-java/README.md new file mode 100644 index 00000000..a467a6f8 --- /dev/null +++ b/BMW-Dynatrace-config/CD_Perseus/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_Perseus/custom-service-java/custom-service-java.yaml b/BMW-Dynatrace-config/CD_Perseus/custom-service-java/custom-service-java.yaml new file mode 100644 index 00000000..25f8a028 --- /dev/null +++ b/BMW-Dynatrace-config/CD_Perseus/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_Perseus/custom-service-java/template-1-1.json b/BMW-Dynatrace-config/CD_Perseus/custom-service-java/template-1-1.json new file mode 100644 index 00000000..b3003515 --- /dev/null +++ b/BMW-Dynatrace-config/CD_Perseus/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_Perseus/synthetic-monitor/README.md b/BMW-Dynatrace-config/CD_Perseus/synthetic-monitor/README.md new file mode 100644 index 00000000..04d7949f --- /dev/null +++ b/BMW-Dynatrace-config/CD_Perseus/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_Perseus/synthetic-monitor/default.json b/BMW-Dynatrace-config/CD_Perseus/synthetic-monitor/default.json new file mode 100644 index 00000000..cf83039b --- /dev/null +++ b/BMW-Dynatrace-config/CD_Perseus/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_Perseus/synthetic-monitor/synthetic-monitor.yaml b/BMW-Dynatrace-config/CD_Perseus/synthetic-monitor/synthetic-monitor.yaml new file mode 100644 index 00000000..adda2487 --- /dev/null +++ b/BMW-Dynatrace-config/CD_Perseus/synthetic-monitor/synthetic-monitor.yaml @@ -0,0 +1,10 @@ +config: +- newComponentTag: default.json + +newComponentTag: +- name: CD_Perseus - +- mzName: CD_Perseus/management-zone/CDnewComponentTag.name +- mzId: CD_Perseus/management-zone/CDnewComponentTag.id +- endpoint: +- location: +- skipDeployment: "true" \ No newline at end of file