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

Memory leak in case Cloudflare API doesn't return data #121

Open
arazdolski opened this issue May 23, 2024 · 1 comment
Open

Memory leak in case Cloudflare API doesn't return data #121

arazdolski opened this issue May 23, 2024 · 1 comment

Comments

@arazdolski
Copy link

Hi,

I have noticed a memory leak in case Cloudflare API doesn't return data and cloduflare_exporter keeps data in memory. Memory usage is constantly growing, around 5MB per day.

How to reproduce:

  1. Run cloduflare_exporter locally (docker run --rm -p 8080:8080 -e CF_API_TOKEN=${CF_API_TOKEN} ghcr.io/lablabs/cloudflare_exporter)
  2. Run top
  3. Write down used memory
  4. Leave the container running for some time
  5. Check memory again

I'm currently checking the code and planning to delete data on TTL in case of no response from the API

@arazdolski
Copy link
Author

@haad @martinhaus Please take a look 🙏

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

1 participant