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

Question - a lot of metrics with the same name but different "hostname" #116

Closed
allburov opened this issue Jun 7, 2022 · 3 comments
Closed

Comments

@allburov
Copy link
Contributor

allburov commented Jun 7, 2022

Hi! Thank you for creating and supporting such a helpful project!

I have a question - we use celery==5.2.6 and the latest celery-exporter (docker) and using Grafana Cloud (free version)
After a week I see that ran out of free tier on Grafana and we have more then 10 000 metrics for celery!

What happened:
There're a lot of metric with hostname=gen1234@myhostname and only one with celery@myhostname

celery_task_received_total{hostname="gen516136@myhostname",name="app.tasks.send_email"} 0.0
celery_task_received_total{hostname="gen516136@myhostname",name="app.tasks.send_email"} 0.0
celery_task_received_total{hostname="celery@myhostname",name="app.tasks.send_email"} 0.0

Look like gen1234 metrics are created for each thread in worker and after restart of celery worker daemon celery-exporter keep sending these metrics to prometheus even if they don't have new data. Restaring help here, so I just configured CD process and we restart celery-exporter's docker after celery workers.

The question is - is there a way to filter out them from the metrics and what is their purpose?

@allburov
Copy link
Contributor Author

allburov commented Jun 7, 2022

Oh, I see, gen123 probably django instances who send tasks.
celery_task_received_total is increased in celery@hostname metric and celery_task_sent_total is increased in gen123 metric

@danihodovic
Copy link
Owner

danihodovic commented Jun 7, 2022

See #72 #47

@allburov
Copy link
Contributor Author

allburov commented Jun 8, 2022

@danihodovic thank you for the help!
I'll look at this closely

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

2 participants