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