Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 1.12 KB

README.md

File metadata and controls

42 lines (31 loc) · 1.12 KB

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.