From 7b79db734ee3947889bc791bc66821ddee635bc7 Mon Sep 17 00:00:00 2001 From: Muminovic Mersa Date: Wed, 10 Aug 2022 15:59:11 +0200 Subject: [PATCH 1/3] Added supress options for main VDLM manage --- .../CD_VDLM/management-zone/default.json | 111 +++++++++++++++++- 1 file changed, 110 insertions(+), 1 deletion(-) diff --git a/BMW-Dynatrace-config/CD_VDLM/management-zone/default.json b/BMW-Dynatrace-config/CD_VDLM/management-zone/default.json index fc96de39..456fbf64 100644 --- a/BMW-Dynatrace-config/CD_VDLM/management-zone/default.json +++ b/BMW-Dynatrace-config/CD_VDLM/management-zone/default.json @@ -19,5 +19,114 @@ "entitySelector": "type(HOST),tag({{.compassIDs}})" } ], - "rules": [] + "rules": [ + { + "type": "SERVICE", + "enabled": true, + "propagationTypes": [], + "conditions": [ + { + "key": { + "attribute": "SERVICE_TAGS", + "type": "STATIC" + }, + "comparisonInfo": { + "type": "TAG", + "operator": "EQUALS", + "value": { + "context": "CONTEXTLESS", + "key": "compass-id", + "value": "{{.compassIDs}}" + }, + "negate": false + } + }, + { + "key": { + "attribute": "SERVICE_NAME", + "type": "STATIC" + }, + "comparisonInfo": { + "type": "STRING", + "operator": "CONTAINS", + "value": "PingResource", + "negate": true, + "caseSensitive": true + } + }, + { + "key": { + "attribute": "SERVICE_NAME", + "type": "STATIC" + }, + "comparisonInfo": { + "type": "STRING", + "operator": "CONTAINS", + "value": "HealthResource", + "negate": true, + "caseSensitive": true + } + }, + { + "key": { + "attribute": "SERVICE_NAME", + "type": "STATIC" + }, + "comparisonInfo": { + "type": "STRING", + "operator": "CONTAINS", + "value": "PrometheusResource", + "negate": true, + "caseSensitive": true + } + } + ] + }, + { + "type": "PROCESS_GROUP", + "enabled": true, + "propagationTypes": [], + "conditions": [ + { + "key": { + "attribute": "PROCESS_GROUP_TAGS", + "type": "STATIC" + }, + "comparisonInfo": { + "type": "TAG", + "operator": "EQUALS", + "value": { + "context": "CONTEXTLESS", + "key": "compass-id", + "value": "{{.compassIDs}}" + }, + "negate": false + } + } + ] + }, + { + "type": "HOST", + "enabled": true, + "propagationTypes": [], + "conditions": [ + { + "key": { + "attribute": "HOST_TAGS", + "type": "STATIC" + }, + "comparisonInfo": { + "type": "TAG", + "operator": "EQUALS", + "value": { + "context": "CONTEXTLESS", + "key": "compass-id", + "value": "{{.compassIDs}}" + }, + "negate": false + } + } + ] + } + ] } \ No newline at end of file From f7c8a34d323c43a8e33044281cd0ecc8c7fa0cba Mon Sep 17 00:00:00 2001 From: "SLW\\ARNAUA" Date: Wed, 10 Aug 2022 17:27:18 +0200 Subject: [PATCH 2/3] Adjusted. --- BMW-Dynatrace-config/CD_VDLM/management-zone/default.json | 4 ---- 1 file changed, 4 deletions(-) diff --git a/BMW-Dynatrace-config/CD_VDLM/management-zone/default.json b/BMW-Dynatrace-config/CD_VDLM/management-zone/default.json index 456fbf64..668f39de 100644 --- a/BMW-Dynatrace-config/CD_VDLM/management-zone/default.json +++ b/BMW-Dynatrace-config/CD_VDLM/management-zone/default.json @@ -2,10 +2,6 @@ "dimensionalRules": [], "name": "{{.name}}", "entitySelectorBasedRules": [ - { - "enabled": true, - "entitySelector": "type(Service),tag({{.compassIDs}})" - }, { "enabled": true, "entitySelector": "type(SERVICE),databaseName.exists(),toRelationship.calls(type(SERVICE),tag({{.compassIDs}}))" From e2dd202b5e4ded051ed18df7f863281e18c4a09f Mon Sep 17 00:00:00 2001 From: "SLW\\ARNAUA" Date: Thu, 11 Aug 2022 10:05:29 +0200 Subject: [PATCH 3/3] Adjusted. --- .../CD_VDLM/management-zone/default.json | 129 ++---------------- 1 file changed, 12 insertions(+), 117 deletions(-) diff --git a/BMW-Dynatrace-config/CD_VDLM/management-zone/default.json b/BMW-Dynatrace-config/CD_VDLM/management-zone/default.json index 668f39de..a6c7fd27 100644 --- a/BMW-Dynatrace-config/CD_VDLM/management-zone/default.json +++ b/BMW-Dynatrace-config/CD_VDLM/management-zone/default.json @@ -1,128 +1,23 @@ { - "dimensionalRules": [], - "name": "{{.name}}", - "entitySelectorBasedRules": [ + "dimensionalRules": [], + "name": "{{.name}}", + "entitySelectorBasedRules": [ + { + "enabled": true, + "entitySelector": "type(Service),tag({{.compassIDs}}),not(entityName.contains(\"HealthResource\")),not(entityName.contains(\"PingResource\")),not(entityName.contains(\"PrometheusResource\"))" + }, { "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": [ - { - "type": "SERVICE", "enabled": true, - "propagationTypes": [], - "conditions": [ - { - "key": { - "attribute": "SERVICE_TAGS", - "type": "STATIC" - }, - "comparisonInfo": { - "type": "TAG", - "operator": "EQUALS", - "value": { - "context": "CONTEXTLESS", - "key": "compass-id", - "value": "{{.compassIDs}}" - }, - "negate": false - } - }, - { - "key": { - "attribute": "SERVICE_NAME", - "type": "STATIC" - }, - "comparisonInfo": { - "type": "STRING", - "operator": "CONTAINS", - "value": "PingResource", - "negate": true, - "caseSensitive": true - } - }, - { - "key": { - "attribute": "SERVICE_NAME", - "type": "STATIC" - }, - "comparisonInfo": { - "type": "STRING", - "operator": "CONTAINS", - "value": "HealthResource", - "negate": true, - "caseSensitive": true - } - }, - { - "key": { - "attribute": "SERVICE_NAME", - "type": "STATIC" - }, - "comparisonInfo": { - "type": "STRING", - "operator": "CONTAINS", - "value": "PrometheusResource", - "negate": true, - "caseSensitive": true - } - } - ] + "entitySelector": "type(PROCESS_GROUP_INSTANCE),tag({{.compassIDs}})" }, { - "type": "PROCESS_GROUP", "enabled": true, - "propagationTypes": [], - "conditions": [ - { - "key": { - "attribute": "PROCESS_GROUP_TAGS", - "type": "STATIC" - }, - "comparisonInfo": { - "type": "TAG", - "operator": "EQUALS", - "value": { - "context": "CONTEXTLESS", - "key": "compass-id", - "value": "{{.compassIDs}}" - }, - "negate": false - } - } - ] - }, - { - "type": "HOST", - "enabled": true, - "propagationTypes": [], - "conditions": [ - { - "key": { - "attribute": "HOST_TAGS", - "type": "STATIC" - }, - "comparisonInfo": { - "type": "TAG", - "operator": "EQUALS", - "value": { - "context": "CONTEXTLESS", - "key": "compass-id", - "value": "{{.compassIDs}}" - }, - "negate": false - } - } - ] + "entitySelector": "type(HOST),tag({{.compassIDs}})" } - ] -} \ No newline at end of file + ], + "rules": [] +}