uptimerobot-prometheus-exporter icon indicating copy to clipboard operation
uptimerobot-prometheus-exporter copied to clipboard

paginated responses

Open krzee opened this issue 2 years ago • 2 comments

My uptimerobot monitor has 243 servers, but i only ingest 50 of them. This seems to be due to pagination. Do I need to do something to support pagination? Is it a bug?

krzee avatar Jan 09 '23 20:01 krzee

When I hit the API by hand i see: {"stat":"ok","pagination":{"offset":0,"limit":50,"total":243}, but when I look at logs from the exporter scraping I see: level=info msg="Response from UptimeRobot API%!(EXTRA *api.XMLMonitors=&{{{ pagination} 0 0 0}

krzee avatar Jan 09 '23 20:01 krzee

Hi @krzee. Thanks for the feedback. I actually have refactored a few parts of the exporter that I plan to have merged soon. It includes expanding the pagination support. I'll mark this issue when I have the PR ready for review

masaruhoshi avatar Jan 12 '23 16:01 masaruhoshi