This is a Prometheus exporter for the Uptime Robot monitoring API.
The Uptime Robot API offers read-only keys, meant for reading the monitor response times.
- Create a new
Read-Only API Key
in the dashboard, https://uptimerobot.com/dashboard#mySettings - Put the resulting secrets in an
.env
file or k8s secret - Mount or source those secrets before running
node index.js
The following environment variables must be set:
UPTIME_KEY
- the read-only API key
The API has a GetMonitors endpoint that exposes the average and last sampled response times for each monitor. The last response time has a corresponding timestamp, and may not be the current response time. The average is calculate by the API.
uptimerobot_response_last_seconds
id
- number
name
- friendly name
uptimerobot_response_avg_seconds
id
- number
name
- friendly name
uptimerobot_status
id
- number
name
- friendly name
Metrics are fetched once on startup, then on a scheduled interval, by default every 10 minutes.