简单芹菜指标出口到石墨
celery-graphite的Python项目详细描述
芹菜石墨
用于将芹菜指标转化为石墨的实用程序
可用指标:
每个状态下的任务数
[prefix.]taskname.TASK_STATE = count
活着的工人人数
[prefix.]workers.alive = count
事件
如果graphite-http-url
提供任务失败事件
默认情况下,将作为Graphite事件推送,但仅包含异常名称
或者如果verbose-exception
指定了提供的完整任务信息。
注意长异常args和kwargs。
用法:
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.
或者可以通过传递给--config参数的文件中的变量设置任何配置参数。 应该是有效的python模块。