128 lines
3.0 KiB
JSON
128 lines
3.0 KiB
JSON
{
|
|
"dimensionalRules": [],
|
|
"name": "{{.name}}",
|
|
"entitySelectorBasedRules": [
|
|
{
|
|
"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
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"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
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |