Source: Flower дашборд для мониторинга celery
← Renderedmarkdown source:
---
description: Flover инстурмент мониторинга для celery
title: Flower дашборд для мониторинга celery
tags: logging queue pip python
---
Дашборд для мониторинга задач [[celery]]. [Ссылка на документацию](https://flower.readthedocs.io/en/latest/)
Real-time monitoring using Celery Events
- Task progress and history
- Ability to show task details (arguments, start time, runtime, and more)
- Graphs and statistics
Remote Control
- View worker status and statistics
- Shutdown and restart worker instances
- Control worker pool size and autoscale settings
- View and modify the queues a worker instance consumes from
- View currently running tasks
- View scheduled tasks (ETA/countdown)
- View reserved and revoked tasks
- Apply time and rate limits
- Configuration viewer
- Revoke or terminate tasks
Broker monitoring
- View statistics for all Celery queues
- Queue length graphs
HTTP API
Basic Auth, GitHub OAuth2 and Google OpenID authentication
Prometheus integration
## screenshots
workers dashboard

[More screenshots](https://flower.readthedocs.io/en/latest/screenshots.html)
## instalation
`pip install flower`
[usage example](https://flower.readthedocs.io/en/latest/install.html#usage)
## [configuration](https://flower.readthedocs.io/en/latest/config.html)
Variants of setting confs
From the command line:
```bash
celery flower --auto_refresh=False
```
Using `flowerconfig.py` configuration file:
```python
# RabbitMQ management api
broker_api = 'http://guest:guest@localhost:15672/api/'
# Enable debug logging
logging = 'DEBUG'
```
Or, using the environment variables. All flower options should be prefixed with FLOWER_:
```bash
export FLOWER_BASIC_AUTH=foo:bar
```
Options passed through the command line have precedence over the options defined in the configuration file. The configuration file name and path can be changed with conf option.
```bash
celery flower --conf=celeryconfig.py
```
[all options](https://flower.readthedocs.io/en/latest/config.html#options)
В основной доке смотри API, интеграцию с [[prometeus]], работу с реверс-прокси и прочее.
Вот решение проблемы в [[fastapi]]: [[fastapi-template-flowers-problem]]
Смотри еще:
- [mher/flower](https://hub.docker.com/r/mher/flower/) [[docker]] container
- [документация](https://flower.readthedocs.io/en/latest/index.html)
- [Docker – "flower": executable file not found in $PATH: unknown](https://stackoverflow.com/a/68294030/15966204)
- [[celery]]
[celery]: celery "Celery"
[prometeus]: prometeus "Prometeus"
[fastapi]: fastapi "Fastapi"
[fastapi-template-flowers-problem]: fastapi-template-flowers-problem "Fastapi template flower problem"
[docker]: ../lists/docker "Docker"