masaruhoshi / uptimerobot-prometheus-exporter

A Golang Prometheus exporter for UptimeRobot monitors.
MIT License
33 stars 13 forks source link

Add pagination option #20

Closed masaruhoshi closed 6 years ago

masaruhoshi commented 6 years ago

Description

UptimeRobot uses pagination when returning monitors. UptimeRobot limits the number of monitors returned by the /getMonitors endpoint to 50 records. More than that it's necessary to specify an offset for the pagination.

This PR introduces the ability to scrape more than the limit set by the API using the pagination offset properly.