Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ssube/uptimerobot-exporter

Prometheus Exporter for the UptimeRobot API
https://github.com/ssube/uptimerobot-exporter

prometheus prometheus-exporter prometheus-metrics uptime uptime-monitor uptime-robot uptimerobot uptimerobot-api

Last synced: 12 days ago
JSON representation

Prometheus Exporter for the UptimeRobot API

Awesome Lists containing this project

README

        

# 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.