Merge pull request #20 from navi-infra/INFRA-428
INFRA-428| Deepak Jain| add support for service Monitor
This commit is contained in:
@@ -281,6 +281,48 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"serviceMonitor": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"enabled": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"path": {
|
||||
"type": "string",
|
||||
"default": "/metrics"
|
||||
},
|
||||
"interval": {
|
||||
"type": "string",
|
||||
"pattern": "^[0-9]*[s|h|m]$",
|
||||
"default": "60s"
|
||||
},
|
||||
"metricRelabelings": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"action": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"labeldrop",
|
||||
"replace"
|
||||
]
|
||||
},
|
||||
"sourceLabels": {
|
||||
"type": "string"
|
||||
},
|
||||
"targetLabel": {
|
||||
"type": "string"
|
||||
},
|
||||
"regex": {
|
||||
"type": "string",
|
||||
"format": "regex"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"alerts": {
|
||||
"type": "object",
|
||||
"description": "Alerts",
|
||||
|
||||
@@ -396,6 +396,21 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "FoldableGroup",
|
||||
"label": "Service Monitor",
|
||||
"id": "serviceMonitor",
|
||||
"parentId": "deployment",
|
||||
"elements": [
|
||||
{
|
||||
"type": "Control",
|
||||
"label": {
|
||||
"show": false
|
||||
},
|
||||
"scope": "#/properties/deployment/properties/serviceMonitor"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "FoldableGroup",
|
||||
"label": "Security Group",
|
||||
|
||||
Reference in New Issue
Block a user