Skip to content

Prometheus Exporter for the UptimeRobot API

License

Notifications You must be signed in to change notification settings

ssube/uptimerobot-exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Uptime Robot Exporter

This is a Prometheus exporter for the Uptime Robot monitoring API.

API Auth

The Uptime Robot API offers read-only keys, meant for reading the monitor response times.

  1. Create a new Read-Only API Key in the dashboard, https://uptimerobot.com/dashboard#mySettings
  2. Put the resulting secrets in an .env file or k8s secret
  3. Mount or source those secrets before running node index.js

Configuration

The following environment variables must be set:

  • UPTIME_KEY
    • the read-only API key

Metrics

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.