Skip to main content

Simple Celery metrics exporter to graphite

Project description

Celery Graphite

Utility for pushing celery metrics into graphite

Avaliable metrics:

Number of tasks in each state

[prefix.]taskname.TASK_STATE = count

Number of workers alive

[prefix.]workers.alive = count

Events

Also if graphite-http-url provided task-failed events will be pushed as graphite events with only exception name by default or if verbose-exception specified complete task info provided. Be aware of long exception args and kwargs.

Usage:

usage: celery_graphite [-h] [--config CONFIG] [--broker BROKER]
                       [--graphite GRAPHITE] [--graphite-port GRAPHITE_PORT]
                       [--graphite-retention GRAPHITE_RETENTION]
                       [--graphite-http-url GRAPHITE_HTTP_URL] [--freq FREQ]
                       [--graphite-prefix GRAPHITE_PREFIX]
                       [--verbose-exception] [--graphite-tag GRAPHITE_TAG]
                       [--verbose]

Celery graphite monitor.

optional arguments:
  -h, --help            show this help message and exit
  --config CONFIG       Config file. Must be valid python module.
  --broker BROKER       Celery broker url. (e.g. redis://localhost:6379/0)
  --graphite GRAPHITE   Graphite server url for pushing metrics.
  --graphite-port GRAPHITE_PORT
                        Graphite server port for pushing metrics.
  --graphite-retention GRAPHITE_RETENTION
                        Number of metrics for store before batch pushing.
  --graphite-http-url GRAPHITE_HTTP_URL
                        Graphite http url for pushing exception events.
  --freq FREQ           Frequency for capturing metrics.
  --graphite-prefix GRAPHITE_PREFIX
                        Prefix for graphite path.
  --verbose-exception   Export exception more verbose with args and kwargs.
  --graphite-tag GRAPHITE_TAG
                        Additional tag added to graphite events.
  --verbose, -v         Verbosity level.

or any config parameter can be set via variable in file passed to --config parameter. Should valid python module.

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

celery-graphite-1.0.1.tar.gz (5.3 kB view details)

Uploaded Source

File details

Details for the file celery-graphite-1.0.1.tar.gz.

File metadata

  • Download URL: celery-graphite-1.0.1.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.4

File hashes

Hashes for celery-graphite-1.0.1.tar.gz
Algorithm Hash digest
SHA256 667de264c599ee59575081debc9f3b1f5cd1301a36be29775e2d85dfd1f3a81a
MD5 75f586f7395550b4a45d7fc3954e0ae9
BLAKE2b-256 f3056a2cb090c96e284b25731007e57c6ea6873547b946cee2c590fce21b24b4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page