In order to use Ingress Monitor controller, you need to have alert contacts added to your account. Once you add them via Dashboard, you will need their ID's. Fetching ID's is not something you can do via UpTime Robot's Dashboard. You will have to use their REST API to fetch alert contacts. To do that, run the following curl command on your terminal with your api key:
curl -d "api_key=your_api_key" -X POST https://api.uptimerobot.com/v2/getAlertContacts
You will get a response similar to what is shown below
[
{
"stat": "ok",
"offset": 0,
"limit": 50,
"total": 1,
"alert_contacts": [
{
"id": "123456",
"friendly_name": "hello",
"type": 2,
"status": 2,
"value": "[email protected]"
}
]
}
]
Copy values of id
field of your alert contacts which you want to use for Ingress Monitor Controller and append _0_0
to them and seperate them by -
. You will now have a string similar to 12345_0_0-23564_0_0
. This is basically the value you will need to specify in Ingress Monitor Controller's ConfigMap as alertContacts
.
Additional uptime robot configurations can be added through a set of annotations to each ingress object, the current supported annotations are:
Annotation | Description |
---|---|
uptimerobot.monitor.stakater.com/alert-contacts | The uptimerobot alertContacts to be associated with this monitor. Overrides the value of alertContacts from the Controller's ConfigMap. See Fetching alert contacts from UpTime Robot |
uptimerobot.monitor.stakater.com/interval | The uptimerobot check interval in seconds |
uptimerobot.monitor.stakater.com/status-pages | The uptimerobot public status page ID to add this monitor to |
uptimerobot.monitor.stakater.com/maintenance-windows | Add a maintenance windows to this check (Pro Plan only) |
uptimerobot.monitor.stakater.com/monitor-type | The uptimerobot monitor type (http or keyword) |
uptimerobot.monitor.stakater.com/keyword-exists | Alert if value exist (yes) or doesn't exist (no) (Only if monitor-type is keyword) |
uptimerobot.monitor.stakater.com/keyword-value | keyword to check on URL (e.g.'search' or '404') (Only if monitor-type is keyword) |
In order to use public status pages with the Ingress Monitor Controller you will need to have create one via the user interface.
You can then use their REST API to fetch the public status page id. To do that, run the following curl command on your terminal with your api key:
curl -d "api_key=your_api_key" -X POST https://api.uptimerobot.com/v2/getPsps
You will get a response similar to what is shown below
{
"stat": "ok",
"pagination":
{
"offset": 0,
"limit": 50,
"total": 1
},
"psps":
[
{
"id": 12345,
"friendly_name": "my-public-status-page",
"monitors": 0,
"sort": 1,
"status": 1,
"standard_url": "https://stats.uptimerobot.com/12345678",
"custom_url": ""
}
]
}
Copy values of id
field of your public status page which you want to use for Ingress Monitor Controller into the relevant ingress annotation.
To use maintenance windows, you must have a Pro account and have them configured in your account. Once you add them via Dashboard, you will need their ID's. Fetching ID's is not something you can do via UpTime Robot's Dashboard. You will have to use their REST API to fetch maintenance windows. To do that, run the following curl command on your terminal with your api key:
curl -d "api_key=your_api_key" -X POST https://api.uptimerobot.com/v2/getMWindows
You will get a response similar to what is shown below
{
"stat":"ok",
"pagination":
{
"limit":50,
"offset":0,
"total":2
},
"mwindows":
[
{
"id":12345,
"type":3,
"friendly_name":"Week night maintenance slots",
"start_time":"22:00",
"duration":60,
"value":"1,2,3,4,5",
"status":1
}
]
}
Copy values of id
field of the maintenance windows which you want to use for Ingress Monitor Controller and separate them by -
. You will now have a string similar to 12345-23564
. This is basically the value you will need to specify in the maintenance-windows ingress annotation.