CDVPS-5200 - Add initial configuration of application VPS-Admin to Dynatrace

CD_VPS-Monitor^2^2
mosadak al salamat 2021-10-05 08:20:22 +02:00
parent 960845a88a
commit 32d162194e
21 changed files with 545 additions and 0 deletions

View File

@ -4240,6 +4240,37 @@
}
}
]
},
{
"type": "SERVICE",
"enabled": true,
"valueFormat": "VPS-Admin",
"propagationTypes": [],
"conditions": [
{
"key": {
"attribute": "SERVICE_TYPE"
},
"comparisonInfo": {
"type": "SERVICE_TYPE",
"operator": "EQUALS",
"value": "DATABASE_SERVICE",
"negate": false
}
},
{
"key": {
"attribute": "SERVICE_DATABASE_NAME"
},
"comparisonInfo": {
"type": "STRING",
"operator": "CONTAINS",
"value": "cc",
"negate": false,
"caseSensitive": true
}
}
]
}
]
}

View File

@ -0,0 +1,43 @@
config:
- CDVPS-Admin: default.json
#Prod alerting profiles for EMEA/NA/CN
CDVPS-Admin.EMEA-Prod:
- name: CD_VPS-Admin PROD
- tag: VPS-Admin
- mzId: CD_vps-admin/management-zone/CDvps-admin.id
- env: PROD
- skipDeployment: "false"
CDVPS-Admin.NA-Prod:
- name: CD_VPS-Admin PROD
- tag: VPS-Admin
- mzId: CD_vps-admin/management-zone/CDvps-admin.id
- env: PROD
- skipDeployment: "false"
CDVPS-Admin.CN-Prod:
- name: CD_VPS-Admin PROD
- tag: VPS-Admin
- mzId: CD_vps-admin/management-zone/CDvps-admin.id
- env: PROD
- skipDeployment: "false"
#INT alerting profiles for EMEA/NA/CN
CDVPS-Admin.EMEA-PreProd:
- name: CD_VPS-Admin INT
- tag: VPS-Admin
- mzId: CD_vps-admin/management-zone/CDvps-admin.id
- env: INT
- skipDeployment: "false"
CDVPS-Admin.NA-PreProd:
- name: CD_VPS-Admin INT
- tag: VPS-Admin
- mzId: CD_vps-admin/management-zone/CDvps-admin.id
- env: INT
- skipDeployment: "false"
CDVPS-Admin.CN-PreProd:
- name: CD_VPS-Admin INT
- tag: VPS-Admin
- mzId: CD_vps-admin/management-zone/CDvps-admin.id
- env: INT
- skipDeployment: "false"

View File

@ -0,0 +1,103 @@
{
"displayName": "{{.name}}",
"eventTypeFilters": [],
"managementZoneId": "{{.mzId}}",
"mzId": "{{.mzId}}",
"rules": [
{
"delayInMinutes": 0,
"severityLevel": "AVAILABILITY",
"tagFilter": {
"includeMode": "INCLUDE_ALL",
"tagFilters": [
{
"context": "CONTEXTLESS",
"key": "Component",
"value": "{{.tag}}"
},
{
"context": "CONTEXTLESS",
"key": "Environment",
"value": "{{.env}}"
}
]
}
},
{
"delayInMinutes": 10,
"severityLevel": "ERROR",
"tagFilter": {
"includeMode": "INCLUDE_ALL",
"tagFilters": [
{
"context": "CONTEXTLESS",
"key": "Component",
"value": "{{.tag}}"
},
{
"context": "CONTEXTLESS",
"key": "Environment",
"value": "{{.env}}"
}
]
}
},
{
"delayInMinutes": 30,
"severityLevel": "PERFORMANCE",
"tagFilter": {
"includeMode": "INCLUDE_ALL",
"tagFilters": [
{
"context": "CONTEXTLESS",
"key": "Component",
"value": "{{.tag}}"
},
{
"context": "CONTEXTLESS",
"key": "Environment",
"value": "{{.env}}"
}
]
}
},
{
"delayInMinutes": 30,
"severityLevel": "RESOURCE_CONTENTION",
"tagFilter": {
"includeMode": "INCLUDE_ALL",
"tagFilters": [
{
"context": "CONTEXTLESS",
"key": "Component",
"value": "{{.tag}}"
},
{
"context": "CONTEXTLESS",
"key": "Environment",
"value": "{{.env}}"
}
]
}
},
{
"delayInMinutes": 10,
"severityLevel": "CUSTOM_ALERT",
"tagFilter": {
"includeMode": "INCLUDE_ALL",
"tagFilters": [
{
"context": "CONTEXTLESS",
"key": "Component",
"value": "{{.tag}}"
},
{
"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,8 @@
config:
- CDVPS-Admin: template.json
CDVPS-Admin:
- name: MyProcessNamingRule
- nameFormat: "{ProcessGroup:KubernetesNamespace/regex-example}"
- tag: VPS-Admin
- 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,8 @@
config:
- CDVPS-Admin: template.json
CDVPS-Admin:
- name: MyProcessNamingRule
- nameFormat: "{ProcessGroup:KubernetesNamespace/regex-example}"
- tag: VPS-Admin
- 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

@ -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:
- CDVPS-Admin: msTeams.json
- CDVPS-AdminITSM: itsm.json
# Notification System for EMEA/NA/CN Prod msTeams
CDVPS-Admin.EMEA-Prod:
- name: CD_VPS-Admin PROD
- alertingProfile: CD_VPS-Admin/alerting-profile/CDVPS-Admin.id
- webhook: https://empty
- skipDeployment: "true"
CDVPS-Admin.NA-Prod:
- name: CD_VPS-Admin PROD
- alertingProfile: CD_VPS-Admin/alerting-profile/CDVPS-Admin.id
- webhook: https://empty
- skipDeployment: "true"
CDVPS-Admin.CN-Prod:
- name: CD_VPS-Admin PROD
- alertingProfile: CD_VPS-Admin/alerting-profile/CDVPS-Admin.id
- webhook: https://empty
- skipDeployment: "true"
# Notification System for EMEA/NA/CN PreProd msTeams
CDVPS-Admin.EMEA-PreProd:
- name: CD_VPS-Admin INT
- alertingProfile: CD_VPS-Admin/alerting-profile/CDVPS-Admin.id
- webhook: https://empty
- skipDeployment: "true"
CDVPS-Admin.NA-PreProd:
- name: CD_VPS-Admin INT
- alertingProfile: CD_VPS-Admin/alerting-profile/CDVPS-Admin.id
- webhook: https://empty
- skipDeployment: "true"
CDVPS-Admin.CN-PreProd:
- name: CD_VPS-Admin INT
- alertingProfile: CD_VPS-Admin/alerting-profile/CDVPS-Admin.id
- webhook: https://empty
- skipDeployment: "true"
# Notification System for EMEA/NA/CN Prod ITSM
CDVPS-AdminITSM.EMEA-Prod:
- name: CD_VPS-Admin ITSM PROD
- alertingProfile: CD_VPS-Admin/alerting-profile/CDVPS-Admin.id
- webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1
- contractid: "10APP11906401"
- appdid: "TEST123"
- mzName: CD_VPS-Admin/management-zone/CDVPS-Admin.id
- DTEnvironment: https://xxu26128.live.dynatrace.com
- skipDeployment: "true"
CDVPS-AdminITSM.NA-Prod:
- name: CD_VPS-Admin ITSM PROD
- alertingProfile: CD_VPS-Admin/alerting-profile/CDVPS-Admin.id
- webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1
- contractid: "10APP11906401"
- appdid: "TEST123"
- mzName: CD_VPS-Admin/management-zone/CDVPS-Admin.id
- DTEnvironment: https://xxu26128.live.dynatrace.com
- skipDeployment: "true"
CDVPS-AdminITSM.CN-Prod:
- name: CD_VPS-Admin ITSM PROD
- alertingProfile: CD_VPS-Admin/alerting-profile/CDVPS-Admin.id
- webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1
- contractid: "10APP11906401"
- appdid: "TEST123"
- mzName: CD_VPS-Admin/management-zone/CDVPS-Admin.id
- DTEnvironment: https://xxu26128.live.dynatrace.com
- skipDeployment: "true"
CDVPS-AdminITSM.EMEA-PreProd:
- name: CD_VPS-Admin ITSM INT
- alertingProfile: CD_VPS-Admin/alerting-profile/CDVPS-Admin.id
- webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1
- contractid: "10APP11906401"
- appdid: "TEST123"
- mzName: CD_VPS-Admin/management-zone/CDVPS-Admin.id
- DTEnvironment: https://xxu26128.live.dynatrace.com
- skipDeployment: "true"
CDVPS-AdminITSM.NA-PreProd:
- name: CD_VPS-Admin ITSM INT
- alertingProfile: CD_VPS-Admin/alerting-profile/CDVPS-Admin.id
- webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1
- contractid: "10APP11906401"
- appdid: "TEST123"
- mzName: CD_VPS-Admin/management-zone/CDVPS-Admin.id
- DTEnvironment: https://xxu26128.live.dynatrace.com
- skipDeployment: "true"
CDVPS-AdminITSM.CN-PreProd:
- name: CD_VPS-Admin ITSM INT
- alertingProfile: CD_VPS-Admin/alerting-profile/CDVPS-Admin.id
- webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1
- contractid: "10APP11906401"
- appdid: "TEST123"
- mzName: CD_VPS-Admin/management-zone/CDVPS-Admin.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:
- VPS-Admin: default.json
VPS-Admin:
- name: CD_VPS-Admin - <synthetic-name>
- mzName: CD_vps-admin/management-zone/CDvps-admin.name
- mzId: CD_vps-admin/management-zone/CDvps-admin.id
- endpoint: <url>
- location: <location>
- skipDeployment: "true"