lablabs / cloudflare-exporter

Prometheus CloudFlare Exporter
Apache License 2.0
313 stars 104 forks source link

Exporter should fail gracefully when cloudflare is down/intermittent #55

Open christianLittlePodium opened 2 years ago

christianLittlePodium commented 2 years ago

We currently run this in our K8's cluster, and had issues the last time cloudflare was down where pods would fail their probes, be killed by K8's, only to be restarted and die again. It ended up causing us some issues. Logs just showed the following message over and over for every restart:

time="2021-11-26 16:13:40" level=fatal msg="HTTP status 502: service failure"

Is there a way if cloudflare is down for the pods to fail gracefully and log that fact?