Pull request #127: init Base onboarding

Merge in OPAPM/cd_e2e_monitoring_config from base to master

* commit '1084b2137bc1a2609ecdbf3d9104697a8228f178':
  init Base onboarding
CD_EADB
Ermis Wieger (ext.) 2021-12-16 15:00:10 +01:00
commit 762e0e9293
26 changed files with 616 additions and 148 deletions

View File

@ -0,0 +1,37 @@
config:
- CDnewComponentTag: default.json
#Prod alerting profiles for EMEA/NA/CN
CDnewComponentTag.EMEA-Prod:
- name: CD_BMW-Assistant-for-Service-Events-(BASE) PROD
- mzId: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDnewComponentTag.id
- env: PROD
- skipDeployment: "false"
CDnewComponentTag.NA-Prod:
- name: CD_BMW-Assistant-for-Service-Events-(BASE) PROD
- mzId: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDnewComponentTag.id
- env: PROD
- skipDeployment: "false"
CDnewComponentTag.CN-Prod:
- name: CD_BMW-Assistant-for-Service-Events-(BASE) PROD
- mzId: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDnewComponentTag.id
- env: PROD
- skipDeployment: "false"
#INT alerting profiles for EMEA/NA/CN
CDnewComponentTag.EMEA-PreProd:
- name: CD_BMW-Assistant-for-Service-Events-(BASE) INT
- mzId: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDnewComponentTag.id
- env: INT
- skipDeployment: "false"
CDnewComponentTag.NA-PreProd:
- name: CD_BMW-Assistant-for-Service-Events-(BASE) INT
- mzId: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDnewComponentTag.id
- env: INT
- skipDeployment: "false"
CDnewComponentTag.CN-PreProd:
- name: CD_BMW-Assistant-for-Service-Events-(BASE) INT
- mzId: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDnewComponentTag.id
- env: INT
- skipDeployment: "false"

View File

@ -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}}"
}
]
}
}
]
}

View File

@ -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.

View File

@ -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.

View File

@ -0,0 +1,7 @@
config:
- CDnewComponentTag: template.json
CDnewComponentTag:
- name: MyProcessNamingRule
- nameFormat: "{ProcessGroup:KubernetesNamespace/regex-example}"
- skipDeployment: "true"

View File

@ -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"
}

View File

@ -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.

View File

@ -0,0 +1,7 @@
config:
- CDnewComponentTag: template.json
CDnewComponentTag:
- name: MyProcessNamingRule
- nameFormat: "{ProcessGroup:KubernetesNamespace/regex-example}"
- skipDeployment: "true"

View File

@ -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"
}

View File

@ -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.

View File

@ -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"

View File

@ -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}}"
}
]
}
]
}

View File

@ -1,127 +1,109 @@
config: config:
- CDBASE-PROD: default.json - CDnewComponentTag-PROD: default.json
- CDBASE-E2E: default.json - CDnewComponentTag-E2E: default.json
- CDBASE-INT: default.json - CDnewComponentTag-INT: default.json
- CDBASE-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:
CDBASE-PROD:
- name: CD_BMW-Assistant-for-Service-Events-(BASE) PROD - name: CD_BMW-Assistant-for-Service-Events-(BASE) PROD
- mzName: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDBASE.name - mzName: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDnewComponentTag.name
- mzId: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDBASE.id - mzId: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDnewComponentTag.id
- env: PROD - env: PROD
- skipDeployment: "true" - skipDeployment: "true"
#Configuration CDnewComponentTag-PROD.EMEA-Prod:
CDBASE-PROD.EMEA-Prod:
- name: CD_BMW-Assistant-for-Service-Events-(BASE) PROD - name: CD_BMW-Assistant-for-Service-Events-(BASE) PROD
- mzName: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDBASE.name - mzName: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDnewComponentTag.name
- mzId: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDBASE.id - mzId: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDnewComponentTag.id
- tag: BASE
- env: PROD - env: PROD
- skipDeployment: "false" - skipDeployment: "false"
CDBASE-PROD.NA-Prod: CDnewComponentTag-PROD.NA-Prod:
- name: CD_BMW-Assistant-for-Service-Events-(BASE) PROD - name: CD_BMW-Assistant-for-Service-Events-(BASE) PROD
- mzName: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDBASE.name - mzName: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDnewComponentTag.name
- mzId: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDBASE.id - mzId: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDnewComponentTag.id
- tag: BASE
- env: PROD - env: PROD
- skipDeployment: "false" - skipDeployment: "false"
CDBASE-PROD.CN-Prod: CDnewComponentTag-PROD.CN-Prod:
- name: CD_BMW-Assistant-for-Service-Events-(BASE) PROD - name: CD_BMW-Assistant-for-Service-Events-(BASE) PROD
- mzName: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDBASE.name - mzName: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDnewComponentTag.name
- mzId: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDBASE.id - mzId: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDnewComponentTag.id
- tag: BASE
- 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:
CDBASE-E2E:
- name: CD_BMW-Assistant-for-Service-Events-(BASE) E2E - name: CD_BMW-Assistant-for-Service-Events-(BASE) E2E
- mzName: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDBASE.name - mzName: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDnewComponentTag.name
- mzId: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDBASE.id - mzId: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDnewComponentTag.id
- env: E2E - env: E2E
- skipDeployment: "true" - skipDeployment: "true"
#Configuration CDnewComponentTag-E2E.EMEA-Prod:
CDBASE-E2E.EMEA-Prod:
- name: CD_BMW-Assistant-for-Service-Events-(BASE) E2E - name: CD_BMW-Assistant-for-Service-Events-(BASE) E2E
- mzName: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDBASE.name - mzName: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDnewComponentTag.name
- mzId: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDBASE.id - mzId: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDnewComponentTag.id
- env: E2E - env: E2E
- tag: BASE - skipDeployment: "false"
- skipDeployment: "true" CDnewComponentTag-E2E.NA-Prod:
CDBASE-E2E.NA-Prod:
- name: CD_BMW-Assistant-for-Service-Events-(BASE) E2E - name: CD_BMW-Assistant-for-Service-Events-(BASE) E2E
- mzName: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDBASE.name - mzName: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDnewComponentTag.name
- mzId: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDBASE.id - mzId: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDnewComponentTag.id
- env: E2E - env: E2E
- tag: BASE - skipDeployment: "false"
- skipDeployment: "true" CDnewComponentTag-E2E.CN-Prod:
CDBASE-E2E.CN-Prod:
- name: CD_BMW-Assistant-for-Service-Events-(BASE) E2E - name: CD_BMW-Assistant-for-Service-Events-(BASE) E2E
- mzName: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDBASE.name - mzName: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDnewComponentTag.name
- mzId: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDBASE.id - mzId: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDnewComponentTag.id
- env: E2E - env: E2E
- tag: BASE - 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:
CDBASE-INT:
- name: CD_BMW-Assistant-for-Service-Events-(BASE) INT - name: CD_BMW-Assistant-for-Service-Events-(BASE) INT
- mzName: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDBASE.name - mzName: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDnewComponentTag.name
- mzId: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDBASE.id - mzId: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDnewComponentTag.id
- env: INT - env: INT
- tag: BASE
- skipDeployment: "true" - skipDeployment: "true"
#Configuration CDnewComponentTag-INT.EMEA-PreProd:
CDBASE-INT.EMEA-PreProd:
- name: CD_BMW-Assistant-for-Service-Events-(BASE) INT - name: CD_BMW-Assistant-for-Service-Events-(BASE) INT
- mzName: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDBASE.name - mzName: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDnewComponentTag.name
- mzId: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDBASE.id - mzId: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDnewComponentTag.id
- env: INT
- tag: BASE
- skipDeployment: "false"
CDBASE-INT.NA-PreProd:
- name: CD_BMW-Assistant-for-Service-Events-(BASE) INT
- mzName: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDBASE.name
- mzId: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDBASE.id
- env: INT - env: INT
- skipDeployment: "false" - skipDeployment: "false"
CDBASE-INT.CN-PreProd: CDnewComponentTag-INT.NA-PreProd:
- name: CD_BMW-Assistant-for-Service-Events-(BASE) INT - name: CD_BMW-Assistant-for-Service-Events-(BASE) INT
- mzName: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDBASE.name - mzName: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDnewComponentTag.name
- mzId: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDBASE.id - mzId: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDnewComponentTag.id
- env: INT
- skipDeployment: "false"
CDnewComponentTag-INT.CN-PreProd:
- name: CD_BMW-Assistant-for-Service-Events-(BASE) INT
- mzName: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDnewComponentTag.name
- mzId: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDnewComponentTag.id
- 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:
CDBASE-TEST:
- name: CD_BMW-Assistant-for-Service-Events-(BASE) TEST - name: CD_BMW-Assistant-for-Service-Events-(BASE) TEST
- mzName: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDBASE.name - mzName: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDnewComponentTag.name
- mzId: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDBASE.id - mzId: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDnewComponentTag.id
- tag: BASE
- env: TEST - env: TEST
- skipDeployment: "true" - skipDeployment: "true"
#Configuration CDnewComponentTag-TEST.EMEA-PreProd:
CDBASE-TEST.EMEA-PreProd:
- name: CD_BMW-Assistant-for-Service-Events-(BASE) TEST - name: CD_BMW-Assistant-for-Service-Events-(BASE) TEST
- mzName: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDBASE.name - mzName: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDnewComponentTag.name
- mzId: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDBASE.id - mzId: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDnewComponentTag.id
- tag: BASE
- env: TEST - env: TEST
- skipDeployment: "false" - skipDeployment: "false"
CDBASE-TEST.NA-PreProd: CDnewComponentTag-TEST.NA-PreProd:
- name: CD_BMW-Assistant-for-Service-Events-(BASE) TEST - name: CD_BMW-Assistant-for-Service-Events-(BASE) TEST
- mzName: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDBASE.name - mzName: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDnewComponentTag.name
- mzId: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDBASE.id - mzId: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDnewComponentTag.id
- env: TEST - env: TEST
- skipDeployment: "false" - skipDeployment: "false"
CDBASE-TEST.CN-PreProd: CDnewComponentTag-TEST.CN-PreProd:
- name: CD_BMW-Assistant-for-Service-Events-(BASE) TEST - name: CD_BMW-Assistant-for-Service-Events-(BASE) TEST
- mzName: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDBASE.name - mzName: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDnewComponentTag.name
- mzId: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDBASE.id - mzId: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDnewComponentTag.id
- env: TEST - env: TEST
- skipDeployment: "false" - skipDeployment: "false"

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,49 +0,0 @@
{
"dimensionalRules": [],
"metadata": {
"clusterVersion": "1.209.98.20210122-102634",
"configurationVersions": [
0
]
},
"name": "{{.name}}",
"rules": [
{
"conditions": [
{
"comparisonInfo": {
"negate": false,
"operator": "EQUALS",
"type": "TAG",
"value": {
"context": "CONTEXTLESS",
"key": "Component",
"value": "BASE"
}
},
"key": {
"attribute": "SERVICE_TAGS"
}
},
{
"comparisonInfo": {
"caseSensitive": true,
"negate": true,
"operator": "CONTAINS",
"type": "STRING",
"value": "executed in"
},
"key": {
"attribute": "SERVICE_NAME"
}
}
],
"enabled": true,
"propagationTypes": [
"SERVICE_TO_PROCESS_GROUP_LIKE",
"SERVICE_TO_HOST_LIKE"
],
"type": "SERVICE"
}
]
}

View File

@ -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.

View File

@ -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": []
}

View File

@ -1,5 +1,6 @@
config: config:
- CDBASE: CDBMW-Assistant-for-Service-Events-BASE.json - CDnewComponentTag: default.json
CDBASE: CDnewComponentTag:
- name: CD_BMW-Assistant-for-Service-Events-(BASE) - name: CD_BMW-Assistant-for-Service-Events-(BASE)
- compassIDs: \"compass-id:base\"

View File

@ -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.

View File

@ -0,0 +1,13 @@
{
"active": true,
"alertingProfile": "{{.alertingProfile}}",
"bccReceivers": [],
"body": "{ProblemDetailsHTML}",
"ccReceivers": [],
"name": "{{.name}}",
"receivers": [
"{{.receivers}}"
],
"subject": "{State} Problem {ProblemID}: {ImpactedEntity}",
"type": "EMAIL"
}

View File

@ -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}}"
}

View File

@ -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}}"
}

View File

@ -0,0 +1,102 @@
config:
- CDnewComponentTag: msTeams.json
- CDnewComponentTagITSM: itsm.json
# Notification System for EMEA/NA/CN Prod msTeams
CDnewComponentTag.EMEA-Prod:
- name: CD_BMW-Assistant-for-Service-Events-(BASE) PROD
- alertingProfile: CD_BMW-Assistant-for-Service-Events-(BASE)/alerting-profile/CDnewComponentTag.id
- webhook: https://empty
- skipDeployment: "true"
CDnewComponentTag.NA-Prod:
- name: CD_BMW-Assistant-for-Service-Events-(BASE) PROD
- alertingProfile: CD_BMW-Assistant-for-Service-Events-(BASE)/alerting-profile/CDnewComponentTag.id
- webhook: https://empty
- skipDeployment: "true"
CDnewComponentTag.CN-Prod:
- name: CD_BMW-Assistant-for-Service-Events-(BASE) PROD
- alertingProfile: CD_BMW-Assistant-for-Service-Events-(BASE)/alerting-profile/CDnewComponentTag.id
- webhook: https://empty
- skipDeployment: "true"
# Notification System for EMEA/NA/CN PreProd msTeams
CDnewComponentTag.EMEA-PreProd:
- name: CD_BMW-Assistant-for-Service-Events-(BASE) INT
- alertingProfile: CD_BMW-Assistant-for-Service-Events-(BASE)/alerting-profile/CDnewComponentTag.id
- webhook: https://empty
- skipDeployment: "true"
CDnewComponentTag.NA-PreProd:
- name: CD_BMW-Assistant-for-Service-Events-(BASE) INT
- alertingProfile: CD_BMW-Assistant-for-Service-Events-(BASE)/alerting-profile/CDnewComponentTag.id
- webhook: https://empty
- skipDeployment: "true"
CDnewComponentTag.CN-PreProd:
- name: CD_BMW-Assistant-for-Service-Events-(BASE) INT
- alertingProfile: CD_BMW-Assistant-for-Service-Events-(BASE)/alerting-profile/CDnewComponentTag.id
- webhook: https://empty
- skipDeployment: "true"
# Notification System for EMEA/NA/CN Prod ITSM
CDnewComponentTagITSM.EMEA-Prod:
- name: CD_BMW-Assistant-for-Service-Events-(BASE) ITSM PROD
- alertingProfile: CD_BMW-Assistant-for-Service-Events-(BASE)/alerting-profile/CDnewComponentTag.id
- webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1
- contractid: "10APP11906401"
- appdid: "TEST123"
- mzName: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDnewComponentTag.id
- DTEnvironment: https://xxu26128.live.dynatrace.com
- skipDeployment: "true"
CDnewComponentTagITSM.NA-Prod:
- name: CD_BMW-Assistant-for-Service-Events-(BASE) ITSM PROD
- alertingProfile: CD_BMW-Assistant-for-Service-Events-(BASE)/alerting-profile/CDnewComponentTag.id
- webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1
- contractid: "10APP11906401"
- appdid: "TEST123"
- mzName: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDnewComponentTag.id
- DTEnvironment: https://xxu26128.live.dynatrace.com
- skipDeployment: "true"
CDnewComponentTagITSM.CN-Prod:
- name: CD_BMW-Assistant-for-Service-Events-(BASE) ITSM PROD
- alertingProfile: CD_BMW-Assistant-for-Service-Events-(BASE)/alerting-profile/CDnewComponentTag.id
- webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1
- contractid: "10APP11906401"
- appdid: "TEST123"
- mzName: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDnewComponentTag.id
- DTEnvironment: https://xxu26128.live.dynatrace.com
- skipDeployment: "true"
CDnewComponentTagITSM.EMEA-PreProd:
- name: CD_BMW-Assistant-for-Service-Events-(BASE) ITSM INT
- alertingProfile: CD_BMW-Assistant-for-Service-Events-(BASE)/alerting-profile/CDnewComponentTag.id
- webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1
- contractid: "10APP11906401"
- appdid: "TEST123"
- mzName: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDnewComponentTag.id
- DTEnvironment: https://xxu26128.live.dynatrace.com
- skipDeployment: "true"
CDnewComponentTagITSM.NA-PreProd:
- name: CD_BMW-Assistant-for-Service-Events-(BASE) ITSM INT
- alertingProfile: CD_BMW-Assistant-for-Service-Events-(BASE)/alerting-profile/CDnewComponentTag.id
- webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1
- contractid: "10APP11906401"
- appdid: "TEST123"
- mzName: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDnewComponentTag.id
- DTEnvironment: https://xxu26128.live.dynatrace.com
- skipDeployment: "true"
CDnewComponentTagITSM.CN-PreProd:
- name: CD_BMW-Assistant-for-Service-Events-(BASE) ITSM INT
- alertingProfile: CD_BMW-Assistant-for-Service-Events-(BASE)/alerting-profile/CDnewComponentTag.id
- webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1
- contractid: "10APP11906401"
- appdid: "TEST123"
- mzName: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDnewComponentTag.id
- DTEnvironment: https://xxu26128.live.dynatrace.com
- skipDeployment: "true"

View File

@ -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.

View File

@ -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"
}

View File

@ -0,0 +1,10 @@
config:
- newComponentTag: default.json
newComponentTag:
- name: CD_BMW-Assistant-for-Service-Events-(BASE) - <synthetic-name>
- mzName: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDnewComponentTag.name
- mzId: CD_BMW-Assistant-for-Service-Events-(BASE)/management-zone/CDnewComponentTag.id
- endpoint: <url>
- location: <location>
- skipDeployment: "true"