- management-zone/default.json with surpress noise services
- takeover fixed custom-service-java/template-2-1.jsonVDLM/rtchandler-poc
parent
67ab9c66b0
commit
908a30c737
|
|
@ -16,20 +16,19 @@
|
||||||
"argumentTypes": [],
|
"argumentTypes": [],
|
||||||
"methodName": "{{.methodName1}}",
|
"methodName": "{{.methodName1}}",
|
||||||
"returnType": "{{.returnType1}}"
|
"returnType": "{{.returnType1}}"
|
||||||
},
|
}]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"annotations": [],
|
||||||
|
"className": "{{.className2}}",
|
||||||
|
"enabled": true,
|
||||||
|
"fileName": "",
|
||||||
|
"matcher": "EQUALS",
|
||||||
|
"methodRules": [
|
||||||
{
|
{
|
||||||
"annotations": [],
|
"argumentTypes": [],
|
||||||
"className": "{{.className2}}",
|
"methodName": "{{.methodName2}}",
|
||||||
"enabled": true,
|
"returnType": "{{.returnType2}}"
|
||||||
"fileName": "",
|
|
||||||
"matcher": "EQUALS",
|
|
||||||
"methodRules": [
|
|
||||||
{
|
|
||||||
"argumentTypes": [],
|
|
||||||
"methodName": "{{.methodName2}}",
|
|
||||||
"returnType": "{{.returnType2}}"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,23 +1,120 @@
|
||||||
{
|
{
|
||||||
"dimensionalRules": [],
|
"dimensionalRules": [],
|
||||||
"name": "{{.name}}",
|
"name": "{{.name}}",
|
||||||
"entitySelectorBasedRules": [
|
"rules": [
|
||||||
{
|
{
|
||||||
"enabled": true,
|
"type": "SERVICE",
|
||||||
"entitySelector": "type(Service),tag({{.compassIDs}})"
|
"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,
|
"enabled": true,
|
||||||
"entitySelector": "type(SERVICE),databaseName.exists(),toRelationship.calls(type(SERVICE),tag({{.compassIDs}}))"
|
"entitySelector": "type(SERVICE),databaseName.exists(),toRelationship.calls(type(SERVICE),tag(compass-id:{{.compassIDs}}))"
|
||||||
},
|
}
|
||||||
{
|
]
|
||||||
"enabled": true,
|
|
||||||
"entitySelector": "type(PROCESS_GROUP_INSTANCE),tag({{.compassIDs}})"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"enabled": true,
|
|
||||||
"entitySelector": "type(HOST),tag({{.compassIDs}})"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"rules": []
|
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue