Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing cloudflare_* metrics #58

Open
szandala opened this issue Jan 30, 2022 · 7 comments
Open

Missing cloudflare_* metrics #58

szandala opened this issue Jan 30, 2022 · 7 comments

Comments

@szandala
Copy link

Greetings,
despite different configuration I am mising the actuall cloudflare metrics.
I have only:

promhttp_*
go_*
process_*

Tested with all 0.06-latest versions
with CF_ZONE= anv and without.

What is wrong?

@CharlieC3
Copy link

I had the same issue initially, but it started working once I set FREE_TIER to false (will require a paid account obviously). From the code it seems it only returns worker metrics if FREE_TIER is set to true. So if you don't use workers like me, you won't see any CF metrics.

if cfgFreeTier {
return
}

if cfgFreeTier {
return
}

@raspbeguy
Copy link

OK so basically this program is useless for free accounts when not using workers, right?

@onedr0p
Copy link

onedr0p commented Mar 27, 2023

Yes as described here #66

@james00002
Copy link

I have this problem too. The cloudflare_worker_* metrics show up, but the cloudflare_zone_* metrics are missing.

I have FREE_TIER unset (so it defaults to false) and I am connecting to an account thta has a mixture of free and enterprise zones

What is extra weird, is that when I test this on my local machine by running the exporter in docker, it works perfectly. The coudflare_zone_* metrics appear. But when I run it in a k8s cluster (my production environment) I only get the cloudflare_worker_* metrics, nothing else.

I am using the exact same CF_TOKEN and the exact same CF_ZONES list for both local and k8s tests

@james00002
Copy link

Question: Is everybody else here who is experiencing this problem also using the helm chart deployment? I think I am using the latest helm chart, but the image it deploys has a cloudflare-exporter binary from 2021.

The docker deployment method (which definitely has the latest cloudflare-exporter) does not exhibit the same problem of missing zone metrics.

@Stazis555
Copy link

Question: Is everybody else here who is experiencing this problem also using the helm chart deployment? I think I am using the latest helm chart, but the image it deploys has a cloudflare-exporter binary from 2021.

The docker deployment method (which definitely has the latest cloudflare-exporter) does not exhibit the same problem of missing zone metrics.

Yeap, this helped to investigate the issue - helm chart (chart version 0.1.9) had image tag locked at 0.0.9, overriding it to latest or 0.0.14 did the trick. Thx!

@tomich
Copy link

tomich commented Aug 25, 2023

Definelty related to #32 . This exporter does not work with free tier at the moment. Also if one of your zones is free and the others are not and nothing is showing up, you may manually declares paid zones in CF_ZONES avoiding the free ones and get metrics that way

#32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants