Comments (13)
@danihodovic I turned on the debug mode and made sure that all metrics are sent, except for task activity
from celery-exporter.
Hello there!
I met the same problem and spent some time analyzing it. It seems that the only place where
celery_worker_tasks_active updating is on the worker_heartbeat event from celery. @maxgacrux do you use --without heartbeat
? Disabling it (enabling heartbeat for worker) should do the trick.
from celery-exporter.
Have you enabled worker_send_task_events in your app?
https://docs.celeryq.dev/en/stable/userguide/configuration.html#worker-send-task-events
from celery-exporter.
@danihodovic Hey! thank you for the quick reply. yes, I have included in the application what you say. but I still don't get what I want. i use fastapi with celery
celery.conf.task_send_sent_event = True
from celery-exporter.
@danihodovic maybe the problem is that I'm using workers with gpu?
command: celery worker --app=app.worker.celery -P solo --loglevel=info -Q main_task -n worker1
from celery-exporter.
I don't think that should be a problem. Increase the log level of the celery-worker and see if it's logging anything interesting.
from celery-exporter.
@danihodovic how to enlarge the magazine?
from celery-exporter.
https://github.com/danihodovic/celery-exporter/blob/master/src/cli.py#L56
Either export an environment variable
export CE_LOG_LEVEL=DEBUG
./celery-exporter
or use a command line argument
./celery-exporter --log-level=DEBUG
from celery-exporter.
@danihodovic I also noticed that from time to time celery-exporter gives out non-existent hostnames. here is an example:
celery_task_started_created{hostname="435ab5a1d257",name="create_task"} 1.667807616992973e+09
celery_task_started_created{hostname="worker",name="create_task"} 1.6678076170305264e+09
even though I gave my worker a name:
command: celery worker --app=worker.celery --loglevel=info -Q default -n worker
from celery-exporter.
Are you sure you're running a single worker? The exporter reads the hostname from the celery events.
from celery-exporter.
@danihodovic yes, I am absolutely sure of it. above is the command i use in my docker-compose.yml
from celery-exporter.
@danihodovic the only moment I see now is the launch of flower. can there be problems because of this?
command: flower --app=worker.celery --port=5555 --broker=pyamqp://guest:guest@rabbitmq:5672/ --broker_api=http://guest:guest@rabbitmq:15672/api/vhost
from celery-exporter.
I'm not running flower so it's hard to tell
from celery-exporter.
Related Issues (20)
- Memory usage grows non-stop HOT 2
- No data values for most tasks metrics HOT 1
- Grafana dashboard "Celery Overview" is a duplicate of dashboard "Celery task by task" since update of 2023-06-27 HOT 3
- kombu.exceptions.ContentDisallowed: Refusing to deserialize untrusted content of type pickle (application/x-python-serialize) HOT 5
- Not recognizing worker in celery-exporter logs. HOT 10
- Memory occupation grows over time HOT 1
- Is it possible to add custom metrics to this? HOT 7
- PYPI support HOT 1
- More detailed explanation HOT 14
- Getting huge number of metrics from offline celery workers HOT 1
- How to limit exposed metrics HOT 6
- Queue length is wrong when using Redis and task priorities HOT 3
- CVE-2023-30861 Flask-2.2.3 HOT 2
- Possibility of clearing metrics every X seconds (memory problem) HOT 3
- May I use Flask = 2.3.2 on the celery-exporter? HOT 2
- Please patch CVEs HOT 3
- Please patch CVEs HOT 1
- Error loading Python lib during execution.
- Vulnerabilities in node_modules HOT 2
- I can't see All the Metrics
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from celery-exporter.