Adjusted.

feature/VDLM-changesManagmentZone
SLW\ARNAUA 2022-08-11 10:05:29 +02:00
parent f7c8a34d32
commit e2dd202b5e
1 changed files with 12 additions and 117 deletions

View File

@ -1,128 +1,23 @@
{ {
"dimensionalRules": [], "dimensionalRules": [],
"name": "{{.name}}", "name": "{{.name}}",
"entitySelectorBasedRules": [ "entitySelectorBasedRules": [
{
"enabled": true,
"entitySelector": "type(Service),tag({{.compassIDs}}),not(entityName.contains(\"HealthResource\")),not(entityName.contains(\"PingResource\")),not(entityName.contains(\"PrometheusResource\"))"
},
{ {
"enabled": true, "enabled": true,
"entitySelector": "type(SERVICE),databaseName.exists(),toRelationship.calls(type(SERVICE),tag({{.compassIDs}}))" "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, "enabled": true,
"propagationTypes": [], "entitySelector": "type(PROCESS_GROUP_INSTANCE),tag({{.compassIDs}})"
"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, "enabled": true,
"propagationTypes": [], "entitySelector": "type(HOST),tag({{.compassIDs}})"
"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
}
}
]
} }
] ],
} "rules": []
}