lablabs / cloudflare-exporter

Prometheus CloudFlare Exporter
Apache License 2.0
310 stars 103 forks source link

Prometheus not scraping all metrics but can be seen via curl localhost:9199/metrics #52

Open garretcoffman opened 2 years ago

garretcoffman commented 2 years ago

I've got the cloudflare_exporter working here but for some reason I'm having issues with prometheus grabbing all the metrics.

This is all I get when looking in prometheus query. image

When I do a curl localhost:9199/metrics I get TONS of metrics to the point it scrolls my screen completely. Is it possible that prometheus can't scrape so many metrics at a time?

tomich commented 1 year ago

This may be because currently this exporter does not work with free tier zones. If all zones are free, it doesnt work. If at least one zone is free, then it doesn't work unless you specify the pro/enterprise zones in the CF_ZONES variable (and avoid free).

May be related to:

https://github.com/lablabs/cloudflare-exporter/issues/32