From 2908a3fb79b276182b11a6fa65867a46d620d810 Mon Sep 17 00:00:00 2001 From: Pop Emilia Date: Fri, 30 Jul 2021 12:31:33 +0300 Subject: [PATCH] Add initial configuration of application sfa-ts to Dynatrace --- .../00_Global-Config/auto-tag/Component.json | 35 +- .../CD_sfa-ts/dashboard/README.md | 4 + .../CD_sfa-ts/dashboard/dashboard.yaml | 69 ++++ .../CD_sfa-ts/dashboard/default.json | 308 ++++++++++++++++++ .../CD_sfa-ts/management-zone/README.md | 4 + .../CD_sfa-ts/management-zone/default.json | 114 +++++++ .../management-zone/management-zone.yaml | 6 + 7 files changed, 539 insertions(+), 1 deletion(-) create mode 100644 BMW-Dynatrace-config/CD_sfa-ts/dashboard/README.md create mode 100644 BMW-Dynatrace-config/CD_sfa-ts/dashboard/dashboard.yaml create mode 100644 BMW-Dynatrace-config/CD_sfa-ts/dashboard/default.json create mode 100644 BMW-Dynatrace-config/CD_sfa-ts/management-zone/README.md create mode 100644 BMW-Dynatrace-config/CD_sfa-ts/management-zone/default.json create mode 100644 BMW-Dynatrace-config/CD_sfa-ts/management-zone/management-zone.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 e30346ca..c29638d7 100644 --- a/BMW-Dynatrace-config/00_Global-Config/auto-tag/Component.json +++ b/BMW-Dynatrace-config/00_Global-Config/auto-tag/Component.json @@ -3925,6 +3925,39 @@ "propagationTypes": [], "type": "SERVICE", "valueFormat": "sfa" + }, + { + "conditions": [ + { + "comparisonInfo": { + "negate": false, + "operator": "EQUALS", + "type": "SERVICE_TYPE", + "value": "DATABASE_SERVICE" + }, + "key": { + "attribute": "SERVICE_TYPE", + "type": "STATIC" + } + }, + { + "comparisonInfo": { + "caseSensitive": true, + "negate": false, + "operator": "CONTAINS", + "type": "STRING", + "value": "sfa_ts" + }, + "key": { + "attribute": "SERVICE_DATABASE_NAME", + "type": "STATIC" + } + } + ], + "enabled": true, + "propagationTypes": [], + "type": "SERVICE", + "valueFormat": "sfa-ts" } ] - } \ No newline at end of file + } diff --git a/BMW-Dynatrace-config/CD_sfa-ts/dashboard/README.md b/BMW-Dynatrace-config/CD_sfa-ts/dashboard/README.md new file mode 100644 index 00000000..2b6d5717 --- /dev/null +++ b/BMW-Dynatrace-config/CD_sfa-ts/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_sfa-ts/dashboard/dashboard.yaml b/BMW-Dynatrace-config/CD_sfa-ts/dashboard/dashboard.yaml new file mode 100644 index 00000000..640f7533 --- /dev/null +++ b/BMW-Dynatrace-config/CD_sfa-ts/dashboard/dashboard.yaml @@ -0,0 +1,69 @@ +config: +- CDsfa-ts-PROD: default.json +- CDsfa-ts-E2E: default.json +- CDsfa-ts-INT: default.json +- CDsfa-ts-TEST: default.json + +#PROD dashboards for EMEA Prod +CDsfa-ts-PROD: +- name: CD_sfa-ts PROD +- mzName: CD_sfa-ts/management-zone/CDsfa-ts.name +- mzId: CD_sfa-ts/management-zone/CDsfa-ts.id +- tag: sfa-ts +- env: PROD +- skipDeployment: "true" +CDsfa-ts-PROD.EMEA-Prod: +- name: CD_sfa-ts PROD +- mzName: CD_sfa-ts/management-zone/CDsfa-ts.name +- mzId: CD_sfa-ts/management-zone/CDsfa-ts.id +- tag: sfa-ts +- env: PROD +- skipDeployment: "false" + +#E2E dashboards for EMEA Prod +CDsfa-ts-E2E: +- name: CD_sfa-ts E2E +- mzName: CD_sfa-ts/management-zone/CDsfa-ts.name +- mzId: CD_sfa-ts/management-zone/CDsfa-ts.id +- tag: sfa-ts +- env: E2E +- skipDeployment: "true" +CDsfa-ts-E2E.EMEA-Prod: +- name: CD_sfa-ts E2E +- mzName: CD_sfa-ts/management-zone/CDsfa-ts.name +- mzId: CD_sfa-ts/management-zone/CDsfa-ts.id +- tag: sfa-ts +- env: E2E +- skipDeployment: "false" + +#INT dashboards for EMEA PreProd +CDsfa-ts-INT: +- name: CD_sfa-ts INT +- mzName: CD_sfa-ts/management-zone/CDsfa-ts.name +- mzId: CD_sfa-ts/management-zone/CDsfa-ts.id +- tag: sfa-ts +- env: INT +- skipDeployment: "true" +CDsfa-ts-INT.EMEA-PreProd: +- name: CD_sfa-ts INT +- mzName: CD_sfa-ts/management-zone/CDsfa-ts.name +- mzId: CD_sfa-ts/management-zone/CDsfa-ts.id +- tag: sfa-ts +- env: INT +- skipDeployment: "false" + +#TEST dashboards for EMEA PreProd +CDsfa-ts-TEST: +- name: CD_sfa-ts TEST +- mzName: CD_sfa-ts/management-zone/CDsfa-ts.name +- mzId: CD_sfa-ts/management-zone/CDsfa-ts.id +- tag: sfa-ts +- env: TEST +- skipDeployment: "true" +CDsfa-ts-TEST.EMEA-PreProd: +- name: CD_sfa-ts TEST +- mzName: CD_sfa-ts/management-zone/CDsfa-ts.name +- mzId: CD_sfa-ts/management-zone/CDsfa-ts.id +- tag: sfa-ts +- env: TEST +- skipDeployment: "false" diff --git a/BMW-Dynatrace-config/CD_sfa-ts/dashboard/default.json b/BMW-Dynatrace-config/CD_sfa-ts/dashboard/default.json new file mode 100644 index 00000000..6c685810 --- /dev/null +++ b/BMW-Dynatrace-config/CD_sfa-ts/dashboard/default.json @@ -0,0 +1,308 @@ +{ + "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": [ + "{{.tag}}" + ] + }, + "tiles": [ + { + "name": "Custom chart", + "tileType": "CUSTOM_CHARTING", + "configured": true, + "bounds": { + "top": 228, + "left": 38, + "width": 1064, + "height": 304 + }, + "tileFilter": {}, + "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}}", + "Component:{{.tag}}" + ] + } + } + } + }, + { + "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": {} + }, + { + "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": {}, + "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}}", + "Component:{{.tag}}" + ] + } + } + } + }, + { + "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": {}, + "filterConfig": { + "type": "DATABASE", + "customName": "Databases", + "defaultName": "Databases", + "chartConfig": { + "legendShown": true, + "type": "TIMESERIES", + "series": [], + "resultMetadata": {} + }, + "filtersPerEntityType": { + "DATABASE": { + "AUTO_TAGS": [ + "Environment:{{.env}}", + "Component:{{.tag}}" + ] + } + } + }, + "chartVisible": true + }, + { + "name": "", + "tileType": "SERVICES", + "configured": true, + "bounds": { + "top": 38, + "left": 342, + "width": 190, + "height": 152 + }, + "tileFilter": {}, + "filterConfig": { + "type": "SERVICE", + "customName": "Services", + "defaultName": "Services", + "chartConfig": { + "legendShown": true, + "type": "TIMESERIES", + "series": [], + "resultMetadata": {} + }, + "filtersPerEntityType": { + "SERVICE": { + "AUTO_TAGS": [ + "Environment:{{.env}}", + "Component:{{.tag}}" + ] + } + } + }, + "chartVisible": true + }, + { + "name": "", + "tileType": "HOSTS", + "configured": true, + "bounds": { + "top": 38, + "left": 38, + "width": 190, + "height": 152 + }, + "tileFilter": {}, + "filterConfig": { + "type": "HOST", + "customName": "Hosts", + "defaultName": "Hosts", + "chartConfig": { + "legendShown": true, + "type": "TIMESERIES", + "series": [], + "resultMetadata": {} + }, + "filtersPerEntityType": { + "HOST": { + "AUTO_TAGS": [ + "Environment:{{.env}}", + "Component:{{.tag}}" + ] + } + } + }, + "chartVisible": true + } + ] +} \ No newline at end of file diff --git a/BMW-Dynatrace-config/CD_sfa-ts/management-zone/README.md b/BMW-Dynatrace-config/CD_sfa-ts/management-zone/README.md new file mode 100644 index 00000000..ffe9d6e3 --- /dev/null +++ b/BMW-Dynatrace-config/CD_sfa-ts/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_sfa-ts/management-zone/default.json b/BMW-Dynatrace-config/CD_sfa-ts/management-zone/default.json new file mode 100644 index 00000000..bffa0c3b --- /dev/null +++ b/BMW-Dynatrace-config/CD_sfa-ts/management-zone/default.json @@ -0,0 +1,114 @@ +{ + "dimensionalRules": [], + "name": "{{.name}}", + "rules": [ + { + "conditions": [ + { + "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": [ + { + "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": [ + { + "comparisonInfo": { + "negate": false, + "operator": "EQUALS", + "type": "TAG", + "value": { + "context": "CONTEXTLESS", + "key": "Component", + "value": "{{.tag}}" + } + }, + "key": { + "attribute": "HOST_TAGS" + } + } + ], + "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" + } + ] +} \ No newline at end of file diff --git a/BMW-Dynatrace-config/CD_sfa-ts/management-zone/management-zone.yaml b/BMW-Dynatrace-config/CD_sfa-ts/management-zone/management-zone.yaml new file mode 100644 index 00000000..c8fa5f02 --- /dev/null +++ b/BMW-Dynatrace-config/CD_sfa-ts/management-zone/management-zone.yaml @@ -0,0 +1,6 @@ +config: +- CDsfa-ts: default.json + +CDsfa-ts: +- name: CD_sfa-ts +- tag: sfa-ts