lekpamartin / uptimerobot_exporter

Expose uptimerobot.com metrics for prometheus and visualize it in Grafana
Apache License 2.0
45 stars 22 forks source link
docker docker-compose docker-image dockerfile exporter grafana grafana-dashboard prometheus uptimerobot

uptimerobot.com prometheus exporter

Docker Image Version (latest semver)

Grafana Dashboard

Exports all your uptimerobot.com checks for prometheus scraping, so you can use external, third-party checks in your monitoring setup.

If you do not have a pro account, any scrape interval shorter than scrape_interval: 5m for this exporter will a) produce duplicated data and b) misuse uptimerobots API.

Requirements

Running

Accepted parameters:

Docker

docker run -d --name uptimerobot_exporter -e 'UPTIMEROBOT_API_KEY=your_uptime_robot_api_key' -p 9705:9705 --read-only lekpamartin/uptimerobot_exporter

docker-compose

Example compose file:

version: '2.1'

services:
  exporter:
    image: lekpamartin/uptimerobot_exporter
    restart: unless-stopped
    environment:
      UPTIMEROBOT_API_KEY: your_uptime_robot_api_key
    ports:
      - 9705:9705
    read_only: true

Others

You can either pass script arguments (run python exporter.py -h for an explanation) or set the following environment variables:

Exported data

Grafana / Prometheus

  1. Deploy exporter
  2. Add target in prometheus
  3. Add prometheus Data source in grafana
  4. Import Grafana dashboard (import json or ID 9955) Enjoy !!!

Docs

Forked from https://github.com/hnrd/uptimerobot_exporter.git