-
Notifications
You must be signed in to change notification settings - Fork 78
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
No dramatiq metrics in prometheus #104
Comments
Hello! |
It means that Prometheus does not show any metrics of
I solve the problem. However, I opened this issue about two years ago, so I barely remember the way I solve this problem. |
@Cuda-Chen Do you have a repo of these code ? |
@k578fgr taking the following worker:
# Use Dockerfile of your Django app
build: .
environment:
- dramatiq_prom_host=worker
- dramatiq_prom_port=9191
- prometheus_multiproc_dir=/tmp/dramatiq-prometheus
- dramatiq_prom_db=/tmp/dramatiq-prometheus
-
command: bash -c "
mkdir -p /tmp/dramatiq-prometheus
&& rm -rf /tmp/dramatiq-prometheus/*
&& python manage.py migrate django_dramatiq
&& python manage.py rundramatiq --threads 1"
ports:
- "9191:9191"
depends_on:
# I use rabbitmq as broker
- rabbitmq |
Hi @Cuda-Chen, It looks like the issue has been resolved based on the latest comments. Since there has been no further activity, I’m going to close this PR for now. If the issue persists or if you need any further changes, feel free to reopen it or reach out. Thanks for your work on this! |
I am using using
django_dramatiq
in Docker.Now I would like to export the prometheus metrics describe in https://dramatiq.io/advanced.html#prometheus-metrics
However, when I tried to watch the metrics of dramatiq it only shows Django-specific metrics:
For further information, here are some settings of my app:
settings.py
docker-compose.yml
Thanks for your help!
The text was updated successfully, but these errors were encountered: