lablabs / cloudflare-exporter

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

Fails to pull Zone data if CF_ZONES is not defined #47

Open nonamef opened 3 years ago

nonamef commented 3 years ago

I have over 50 zones that are a mix of Free and Enterprise plans. While running the exporter cloudflare_zone_XXX data was not populated, but cloudflare_worker_XXX was working. When I specified a short list of zones with CF_ZONES, all the data was populated.

Looks like the condition "CF_ZONES : If not set, all zones from account are exported" is not working. Would be good to know if there is a maximum amount of zones that can scraped.

m-adawi commented 2 years ago

I had a similar problem. When I don't set CF_ZONES it doesn't get most of the data. When I set CF_ZONES with a list of enterprise zones it works, but if I add a single non-enterprise zone to the list it doesn't work.

tomich commented 1 year ago

I believe you have to manually define zones when at least one of your zones is free tier. This may be related to: https://github.com/lablabs/cloudflare-exporter/issues/32