Commit f1de2c10 authored by Łukasz Nowak's avatar Łukasz Nowak

squash! XXX monitor: Implement edgetest regions

Try out to put check-frontend-ip-list per region in slave.
parent bf87cb9f
Pipeline #14995 passed with stage
in 0 seconds
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
}, },
"check-frontend-ip-list": { "check-frontend-ip-list": {
"default": [], "default": [],
"title": "Default Check Frontend IPs", "title": "Default Frontend IPs to check",
"description": "List of default frontend IPs to check, if empty no constraint is used.", "description": "List of default frontend IPs to check, if empty no constraint is used.",
"type": "array" "type": "array"
} }
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
}, },
"check-frontend-ip-list": { "check-frontend-ip-list": {
"default": [], "default": [],
"title": "Default Check Frontend IPs (backward compatibility)", "title": "Default Frontend IPs to check (backward compatibility)",
"description": "List of default frontend IPs to check, if empty no constraint is used. Note: This is backward compatibility, use region-dict for full configuration control.", "description": "List of default frontend IPs to check, if empty no constraint is used. Note: This is backward compatibility, use region-dict for full configuration control.",
"type": "array" "type": "array"
} }
......
...@@ -7,11 +7,33 @@ ...@@ -7,11 +7,33 @@
"description": "URL to check, like https://example.com/", "description": "URL to check, like https://example.com/",
"type": "string" "type": "string"
}, },
"region-list": { "region-dict": {
"title": "Applicable Regions", "title": "Applicable Regions",
"description": "Puts the check on the defined regions. Empty will result with presence in all regions.", "description": "Puts the check on the defined regions. No definition will result with presence in all regions.",
"type": "array", "patternProperties": {
"default": [] ".*": {
"properties": {
"state": {
"title": "State",
"description": "State of the check of the region. Used only to make it correctly visible in the SlapOS Master UI if no other parameters are defined.",
"type": "string",
"default": "present",
"enum": [
"present"
]
},
"check-frontend-ip-list": {
"default": [],
"title": "Frontend IPs to check",
"description": "List of default frontend IPs to check, if empty no constraint is used. Defaults to region configuration.",
"type": "array"
}
},
"type": "object"
}
},
"type": "object",
"default": {}
}, },
"check-status-code": { "check-status-code": {
"title": "HTTP Code Check", "title": "HTTP Code Check",
...@@ -41,17 +63,17 @@ ...@@ -41,17 +63,17 @@
"type": "object", "type": "object",
"default": {} "default": {}
}, },
"check-frontend-ip-list": {
"title": "Frontend IPs to check",
"description": "List of Frontend IPs to check, if empty no constraint is used. Defaults to region configuration.",
"type": "array"
},
"failure-amount": { "failure-amount": {
"title": "Failure Amount", "title": "Failure Amount",
"description": "Amount of failures to consider URL as in bad state, can be set to higher value for endpoints with accepted short outages.", "description": "Amount of failures to consider URL as in bad state, can be set to higher value for endpoints with accepted short outages.",
"type": "number", "type": "number",
"default": 2, "default": 2,
"minimum": 1 "minimum": 1
},
"check-frontend-ip-list": {
"title": "Frontend IPs to check (backward compatibility)",
"description": "List of Frontend IPs to check, if empty no constraint is used. Defaults to region configuration. Note: This is backward compatibility, use region-dict's check-frontend-ip-list to ensure specific check on each region.",
"type": "array"
} }
} }
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment