lekpamartin / uptimerobot_exporter

Expose uptimerobot.com metrics for prometheus and visualize it in Grafana
Apache License 2.0
45 stars 22 forks source link

Escape quotes and other special chars in UptimeRobot API, otherwise Prometheus fails to scrape it #15

Closed senec-lead-engineer closed 9 months ago

senec-lead-engineer commented 11 months ago

The issue is that fields like keyword_value might have characters in them that need to be escaped for Prometheus to scrape them into a label value.

Otherwise Prometheus will fail to scrape the whole exporter.

We also setup a GitLab pipeline and various coding standards. If you don’t agree with this big change, feel free to cherry pick (bugfix) commits that you are ok with.