mclate / celery-influxdb

Track celery tasks stats directly into influxdb

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker image to track celery tasks directly into InfluxDB

Required environment variables:

  • INFLUXDB_DSN - dns for influxdb (influxdb://<username>:<password>@<host>:<port>/<db>). If mising, will use next ones:
  • INFLUXDB_HOST
  • INFLUXDB_PORT
  • INFLUXDB_USERNAME
  • INFLUXDB_PASSWORD
  • INFLUXDB_DATABASE
  • CELERY_BROKER_URL - Broker url as expected by selery. You want it to be the same as your main app
  • FREQUENCY - frequency which app is taking snapshots of celery state

Next series are created:

  • celery_tasks: Tags:

    • name
    • worker
    • state

    Fields:

    • avg_exec_in_millis
    • avg_wait_in_millis
    • count
    • max_exec_in_millis
    • max_wait_in_millis
  • celery_queue: Tags:

    • name

    Fields:

    • count

About

Track celery tasks stats directly into influxdb


Languages

Language:Python 98.4%Language:Dockerfile 1.6%