recreated management zone

CD_CCIS_NN_SLO
ermisw 2022-03-16 10:43:12 +01:00
parent 3ecabe4bdc
commit 08bf3b1890
6 changed files with 71 additions and 197 deletions

View File

@ -1,13 +1,4 @@
## Update dashboard configuration
- Configuration changes (like in dashboards, alerting profiles) must be done via a pull request. Changing a dashboard just in the environment, will cause that it will be overwritten by Monaco. ### How to configure dashboards?
- How to generate changes in your dashboards?
1. Modify the dashboard within the Dynatrace UI with the intended changes. Please refer to [this](https://atc.bmwgroup.net/confluence/display/OPMAAS/Documentation+%7C+Dashboards) page to configure your dashboards.
2. Copy the JSON of the dashboards. (Can be found under the dashboard settings)
3. Paste the copied JSON under the Monaco JSON, overwrite it.
4. Commit and pull request to merge the branch to the master:
```
git add <changes>
git commit -m "<app_name> configuration changes"
git push -u origin <branch>
```

View File

@ -5,83 +5,69 @@ config:
- CDnewComponentTag-TEST: default.json - CDnewComponentTag-TEST: default.json
#PROD dashboards for EMEA/NA/CN Prod #PROD dashboards for EMEA/NA/CN Prod
#Dry-run needed for all hubs
CDnewComponentTag-PROD: CDnewComponentTag-PROD:
- name: CD_lsc-jr PROD - name: CD_lsc-jr PROD
- mzName: CD_lsc-jr/management-zone/CDnewComponentTag.name - mzName: CD_lsc-jr/management-zone/CDnewComponentTag.name
- mzId: CD_lsc-jr/management-zone/CDnewComponentTag.id - mzId: CD_lsc-jr/management-zone/CDnewComponentTag.id
- env: PROD - env: PROD
- skipDeployment: "true" - skipDeployment: "true"
#Configuration
CDnewComponentTag-PROD.EMEA-Prod: CDnewComponentTag-PROD.EMEA-Prod:
- name: CD_lsc-jr PROD - name: CD_lsc-jr PROD
- mzName: CD_lsc-jr/management-zone/CDnewComponentTag.name - mzName: CD_lsc-jr/management-zone/CDnewComponentTag.name
- mzId: CD_lsc-jr/management-zone/CDnewComponentTag.id - mzId: CD_lsc-jr/management-zone/CDnewComponentTag.id
- tag: newComponentTag
- env: PROD - env: PROD
- skipDeployment: "false" - skipDeployment: "false"
CDnewComponentTag-PROD.NA-Prod: CDnewComponentTag-PROD.NA-Prod:
- name: CD_lsc-jr PROD - name: CD_lsc-jr PROD
- mzName: CD_lsc-jr/management-zone/CDnewComponentTag.name - mzName: CD_lsc-jr/management-zone/CDnewComponentTag.name
- mzId: CD_lsc-jr/management-zone/CDnewComponentTag.id - mzId: CD_lsc-jr/management-zone/CDnewComponentTag.id
- tag: newComponentTag
- env: PROD - env: PROD
- skipDeployment: "false" - skipDeployment: "false"
CDnewComponentTag-PROD.CN-Prod: CDnewComponentTag-PROD.CN-Prod:
- name: CD_lsc-jr PROD - name: CD_lsc-jr PROD
- mzName: CD_lsc-jr/management-zone/CDnewComponentTag.name - mzName: CD_lsc-jr/management-zone/CDnewComponentTag.name
- mzId: CD_lsc-jr/management-zone/CDnewComponentTag.id - mzId: CD_lsc-jr/management-zone/CDnewComponentTag.id
- tag: newComponentTag
- env: PROD - env: PROD
- skipDeployment: "false" - skipDeployment: "false"
#E2E dashboards for EMEA/NA/CN E2E #E2E dashboards for EMEA/NA/CN Prod
#Dry-run needed for all hubs
CDnewComponentTag-E2E: CDnewComponentTag-E2E:
- name: CD_lsc-jr E2E - name: CD_lsc-jr E2E
- mzName: CD_lsc-jr/management-zone/CDnewComponentTag.name - mzName: CD_lsc-jr/management-zone/CDnewComponentTag.name
- mzId: CD_lsc-jr/management-zone/CDnewComponentTag.id - mzId: CD_lsc-jr/management-zone/CDnewComponentTag.id
- env: E2E - env: E2E
- skipDeployment: "true" - skipDeployment: "true"
#Configuration
CDnewComponentTag-E2E.EMEA-Prod: CDnewComponentTag-E2E.EMEA-Prod:
- name: CD_lsc-jr E2E - name: CD_lsc-jr E2E
- mzName: CD_lsc-jr/management-zone/CDnewComponentTag.name - mzName: CD_lsc-jr/management-zone/CDnewComponentTag.name
- mzId: CD_lsc-jr/management-zone/CDnewComponentTag.id - mzId: CD_lsc-jr/management-zone/CDnewComponentTag.id
- env: E2E - env: E2E
- tag: newComponentTag - skipDeployment: "false"
- skipDeployment: "true"
CDnewComponentTag-E2E.NA-Prod: CDnewComponentTag-E2E.NA-Prod:
- name: CD_lsc-jr E2E - name: CD_lsc-jr E2E
- mzName: CD_lsc-jr/management-zone/CDnewComponentTag.name - mzName: CD_lsc-jr/management-zone/CDnewComponentTag.name
- mzId: CD_lsc-jr/management-zone/CDnewComponentTag.id - mzId: CD_lsc-jr/management-zone/CDnewComponentTag.id
- env: E2E - env: E2E
- tag: newComponentTag - skipDeployment: "false"
- skipDeployment: "true"
CDnewComponentTag-E2E.CN-Prod: CDnewComponentTag-E2E.CN-Prod:
- name: CD_lsc-jr E2E - name: CD_lsc-jr E2E
- mzName: CD_lsc-jr/management-zone/CDnewComponentTag.name - mzName: CD_lsc-jr/management-zone/CDnewComponentTag.name
- mzId: CD_lsc-jr/management-zone/CDnewComponentTag.id - mzId: CD_lsc-jr/management-zone/CDnewComponentTag.id
- env: E2E - env: E2E
- tag: newComponentTag - skipDeployment: "false"
- skipDeployment: "true"
#INT dashboards for EMEA/NA/CN #INT dashboards for EMEA/NA/CN PreProd
#Dry-run needed for all hubs
CDnewComponentTag-INT: CDnewComponentTag-INT:
- name: CD_lsc-jr INT - name: CD_lsc-jr INT
- mzName: CD_lsc-jr/management-zone/CDnewComponentTag.name - mzName: CD_lsc-jr/management-zone/CDnewComponentTag.name
- mzId: CD_lsc-jr/management-zone/CDnewComponentTag.id - mzId: CD_lsc-jr/management-zone/CDnewComponentTag.id
- env: INT - env: INT
- tag: newComponentTag
- skipDeployment: "true" - skipDeployment: "true"
#Configuration
CDnewComponentTag-INT.EMEA-PreProd: CDnewComponentTag-INT.EMEA-PreProd:
- name: CD_lsc-jr INT - name: CD_lsc-jr INT
- mzName: CD_lsc-jr/management-zone/CDnewComponentTag.name - mzName: CD_lsc-jr/management-zone/CDnewComponentTag.name
- mzId: CD_lsc-jr/management-zone/CDnewComponentTag.id - mzId: CD_lsc-jr/management-zone/CDnewComponentTag.id
- env: INT - env: INT
- tag: newComponentTag
- skipDeployment: "false" - skipDeployment: "false"
CDnewComponentTag-INT.NA-PreProd: CDnewComponentTag-INT.NA-PreProd:
- name: CD_lsc-jr INT - name: CD_lsc-jr INT
@ -96,21 +82,17 @@ CDnewComponentTag-INT.CN-PreProd:
- env: INT - env: INT
- skipDeployment: "false" - skipDeployment: "false"
#TEST dashboards for EMEA/NA/CN #TEST dashboards for EMEA/NA/CN PreProd
#Dry-run needed for all hubs
CDnewComponentTag-TEST: CDnewComponentTag-TEST:
- name: CD_lsc-jr TEST - name: CD_lsc-jr TEST
- mzName: CD_lsc-jr/management-zone/CDnewComponentTag.name - mzName: CD_lsc-jr/management-zone/CDnewComponentTag.name
- mzId: CD_lsc-jr/management-zone/CDnewComponentTag.id - mzId: CD_lsc-jr/management-zone/CDnewComponentTag.id
- tag: newComponentTag
- env: TEST - env: TEST
- skipDeployment: "true" - skipDeployment: "true"
#Configuration
CDnewComponentTag-TEST.EMEA-PreProd: CDnewComponentTag-TEST.EMEA-PreProd:
- name: CD_lsc-jr TEST - name: CD_lsc-jr TEST
- mzName: CD_lsc-jr/management-zone/CDnewComponentTag.name - mzName: CD_lsc-jr/management-zone/CDnewComponentTag.name
- mzId: CD_lsc-jr/management-zone/CDnewComponentTag.id - mzId: CD_lsc-jr/management-zone/CDnewComponentTag.id
- tag: newComponentTag
- env: TEST - env: TEST
- skipDeployment: "false" - skipDeployment: "false"
CDnewComponentTag-TEST.NA-PreProd: CDnewComponentTag-TEST.NA-PreProd:

View File

@ -13,8 +13,9 @@
"timeframe": "-24h to now" "timeframe": "-24h to now"
}, },
"tags": [ "tags": [
"{{.tag}}" "{{.mzName}}"
] ],
"preset": true
}, },
"tiles": [ "tiles": [
{ {
@ -27,7 +28,12 @@
"width": 1064, "width": 1064,
"height": 304 "height": 304
}, },
"tileFilter": {}, "tileFilter": {
"managementZone": {
"id": "{{.mzId}}",
"name": "{{.mzName}}"
}
},
"filterConfig": { "filterConfig": {
"type": "MIXED", "type": "MIXED",
"customName": "Failure rate (HTTP 4xx/5xx errors)", "customName": "Failure rate (HTTP 4xx/5xx errors)",
@ -71,8 +77,7 @@
"filtersPerEntityType": { "filtersPerEntityType": {
"SERVICE": { "SERVICE": {
"AUTO_TAGS": [ "AUTO_TAGS": [
"Environment:{{.env}}", "Environment:{{.env}}"
"Component:{{.tag}}"
] ]
} }
} }
@ -105,7 +110,12 @@
"width": 1064, "width": 1064,
"height": 38 "height": 38
}, },
"tileFilter": {} "tileFilter": {
"managementZone": {
"id": "{{.mzId}}",
"name": "{{.mzName}}"
}
}
}, },
{ {
"name": "Markdown", "name": "Markdown",
@ -130,7 +140,12 @@
"width": 1064, "width": 1064,
"height": 304 "height": 304
}, },
"tileFilter": {}, "tileFilter": {
"managementZone": {
"id": "{{.mzId}}",
"name": "{{.mzName}}"
}
},
"filterConfig": { "filterConfig": {
"type": "MIXED", "type": "MIXED",
"customName": "Response time, Request Count and Number of Errors", "customName": "Response time, Request Count and Number of Errors",
@ -188,8 +203,7 @@
"filtersPerEntityType": { "filtersPerEntityType": {
"SERVICE": { "SERVICE": {
"AUTO_TAGS": [ "AUTO_TAGS": [
"Environment:{{.env}}", "Environment:{{.env}}"
"Component:{{.tag}}"
] ]
} }
} }
@ -218,7 +232,12 @@
"width": 190, "width": 190,
"height": 152 "height": 152
}, },
"tileFilter": {}, "tileFilter": {
"managementZone": {
"id": "{{.mzId}}",
"name": "{{.mzName}}"
}
},
"filterConfig": { "filterConfig": {
"type": "DATABASE", "type": "DATABASE",
"customName": "Databases", "customName": "Databases",
@ -232,8 +251,7 @@
"filtersPerEntityType": { "filtersPerEntityType": {
"DATABASE": { "DATABASE": {
"AUTO_TAGS": [ "AUTO_TAGS": [
"Environment:{{.env}}", "Environment:{{.env}}"
"Component:{{.tag}}"
] ]
} }
} }
@ -250,7 +268,12 @@
"width": 190, "width": 190,
"height": 152 "height": 152
}, },
"tileFilter": {}, "tileFilter": {
"managementZone": {
"id": "{{.mzId}}",
"name": "{{.mzName}}"
}
},
"filterConfig": { "filterConfig": {
"type": "SERVICE", "type": "SERVICE",
"customName": "Services", "customName": "Services",
@ -264,8 +287,7 @@
"filtersPerEntityType": { "filtersPerEntityType": {
"SERVICE": { "SERVICE": {
"AUTO_TAGS": [ "AUTO_TAGS": [
"Environment:{{.env}}", "Environment:{{.env}}"
"Component:{{.tag}}"
] ]
} }
} }
@ -282,7 +304,12 @@
"width": 190, "width": 190,
"height": 152 "height": 152
}, },
"tileFilter": {}, "tileFilter": {
"managementZone": {
"id": "{{.mzId}}",
"name": "{{.mzName}}"
}
},
"filterConfig": { "filterConfig": {
"type": "HOST", "type": "HOST",
"customName": "Hosts", "customName": "Hosts",
@ -296,8 +323,7 @@
"filtersPerEntityType": { "filtersPerEntityType": {
"HOST": { "HOST": {
"AUTO_TAGS": [ "AUTO_TAGS": [
"Environment:{{.env}}", "Environment:{{.env}}"
"Component:{{.tag}}"
] ]
} }
} }

View File

@ -1,76 +1,4 @@
## Management Zones configuration
### Excluding noisy services ### How to configure management zones?
*If you find services that are not relevant for the analysis, you can exclude them from the MZ.* Please refer to [this](https://atc.bmwgroup.net/confluence/display/OPMAAS/Documentation+%7C+Management+Zones) page to configure your management zones.
#### HealthResource, PingResource, PrometheusResource services
*After the deployment of the OneAgent, your services should appear under Transactions & Services. A good practice would be to exclude*
*the ones that are not relevant for monitoring. i.e. For some BMW's teams, HealthResource, PingResource, PrometheusResource have been excluded.*
**How to exclude HealthResource?**
1. Open the file *default.json* configuration under the *CD_<app_name>/management-zone/* folder.
2. Copy the following rule template:
```
{
"comparisonInfo": {
"caseSensitive": true,
"negate": true,
"operator": "CONTAINS",
"type": "STRING",
"value": "HealthResource"
},
"key": {
"attribute": "SERVICE_NAME"
}
}
```
2. Add it under the `"type": "SERVICE"` rule's conditions. It should look like this:
```
{
"conditions": [
{
"comparisonInfo": {
"negate": false,
"operator": "EQUALS",
"type": "TAG",
"value": {
"context": "CONTEXTLESS",
"key": "Component",
"value": "{{.tag}}"
},
{
"comparisonInfo": {
"caseSensitive": true,
"negate": true,
"operator": "CONTAINS",
"type": "STRING",
"value": "HealthResource"
},
"key": {
"attribute": "SERVICE_NAME"
}
}
},
"key": {
"attribute": "SERVICE_TAGS"
}
}
],
"enabled": true,
"propagationTypes": [
"SERVICE_TO_PROCESS_GROUP_LIKE",
"SERVICE_TO_HOST_LIKE"
],
"type": "SERVICE"
}
```
3. Commit and pull request to merge the branch to the master:
```
git add <changes>
git commit -m "<app_name> configuration changes"
git push -u origin <branch>
```
Note: you can use the same logic to exclude (or include) any other entity to your Management Zone.

View File

@ -1,76 +1,23 @@
{ {
"dimensionalRules": [], "dimensionalRules": [],
"name": "{{.name}}", "name": "{{.name}}",
"rules": [ "entitySelectorBasedRules": [
{
"conditions": [
{ {
"comparisonInfo": { "enabled": true,
"negate": false, "entitySelector": "type(Service),tag({{.compassIDs}})"
"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": { "enabled": true,
"negate": false, "entitySelector": "type(SERVICE),databaseName.exists(),toRelationship.calls(type(SERVICE),tag({{.compassIDs}}))"
"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": { "enabled": true,
"negate": false, "entitySelector": "type(PROCESS_GROUP_INSTANCE),tag({{.compassIDs}})"
"operator": "EQUALS", },
"type": "TAG", {
"value": { "enabled": true,
"context": "CONTEXTLESS", "entitySelector": "type(HOST),tag({{.compassIDs}})"
"key": "Component", }
"value": "{{.tag}}"
}
},
"key": {
"attribute": "HOST_TAGS"
}
}
], ],
"enabled": true, "rules": []
"type": "HOST"
}
]
} }

View File

@ -3,4 +3,4 @@ config:
CDnewComponentTag: CDnewComponentTag:
- name: CD_lsc-jr - name: CD_lsc-jr
- tag: newComponentTag - compassIDs: \"compass-id:lscjr\"