Celery queues monitoring in Datadog

Celery queues monitoring in Datadog

If you have Redis integration in Datadog, there is an easy way to add monitoring for celery queues.

Here is an example for docker-compose

version: "3.6"
services:
  ...
  redis:
    image: redis:5.0.4-alpine
    labels:
      com.datadoghq.ad.check_names: '["redisdb"]'
      com.datadoghq.ad.init_configs: "[{}]"
      com.datadoghq.ad.instances: '[{"host": "redis", "port": 6379, "warn_on_missing_keys": false, "keys": ["celery", "your_queue1", "your_queue2"]}]'
  ddagent:
    image: datadog/agent:latest
    environment:
      - DD_API_KEY=...
      ...
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock:ro
      - /proc/:/host/proc/:ro
      - /sys/fs/cgroup:/host/sys/fs/cgroup:ro
comments powered by Disqus