Changes for management zone vdlm-ts-rtchandler

CD_VDLM_rtchandler
Muminovic Mersa 2022-04-29 15:44:00 +02:00
parent 595a525a1d
commit 04d59bf636
1 changed files with 113 additions and 16 deletions

View File

@ -1,23 +1,120 @@
{
"dimensionalRules": [],
"name": "{{.name}}",
"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
}
}
]
}
],
"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": []
"entitySelector": "type(SERVICE),databaseName.exists(),toRelationship.calls(type(SERVICE),tag(compass-id:{{.compassIDs}}))"
}
]
}