Merge pull request #20 from navi-infra/INFRA-428

INFRA-428| Deepak Jain| add support for service Monitor
This commit is contained in:
Deepak Jain
2020-07-22 16:23:43 +05:30
committed by GitHub Enterprise
2 changed files with 57 additions and 0 deletions

View File

@@ -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",

View File

@@ -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",