Adjusted.
parent
f7c8a34d32
commit
e2dd202b5e
|
|
@ -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}})"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"rules": []
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue