Uploads results of Celery tasks to AWS CloudWatch.
Project description
This is a simple monitoring tool that intercepts the results of Celery tasks and uploads the result to AWS CloudWatch.
Installation
Install from PyPi:
pip install celery-cloudwatch-logs
Configuration
Configuration is done through environment variables. The following environment variables must be set in order for celery-cloudwatch to work:
AWS_CLOUDWATCH_ACCESS_KEY
AWS_CLOUDWATCH_SECRET_KEY
AWS_CLOUDWATCH_GROUP_NAME
Optionally, the following environment variables may be set:
REDIS_URL="redis://"
AWS_CLOUDWATCH_REGION="eu-west-1"
The CloudWatch log group does not have to exist. If it doesn’t exists, it will be created.
Running
$ celery cloudwatch
This requires you to have ran setup.py or installed this package through pip. Alternatively, run:
$ python -m celery_cloudwatch
Known issues
--broker on celery cloudwatch is ignored.
No descriptive way to specify other brokers than Redis.
All brokers supported by Celery will work, simply specify the broker URL through the REDIS_URL environment variable.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for celery-cloudwatch-logs-1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5fdee7b2d5e5343c753673b56a0ba2242642e16cf82e8a44a1b8d2bdcc229d3 |
|
MD5 | c65f936d5d68bc3205ae3ff0562deb0f |
|
BLAKE2b-256 | 2e5b6a638725e90c69af820a83154745bf3c7fc981a9351fb8e9ef18fc54e903 |