Pull request #182: Changes for management zone vdlm-seam

Merge in OPAPM/cd_e2e_monitoring_config from CD_VDLM_seam to master

* commit 'c0672fb736bfc9032469608afae48cd8baa2bf9c':
  Changes for management zone vdlm-seam
CD_vs-cmdb
Mersa Muminovic (DE-722) 2022-05-02 08:56:26 +02:00 committed by Arnel Arnautovic (ext.)
commit 3523e9d784
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}}))"
}
]
}