-
Notifications
You must be signed in to change notification settings - Fork 0
/
amqp_carbon.yaml
54 lines (52 loc) · 1.53 KB
/
amqp_carbon.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
net:
amqp:
host: localhost
user:
password:
exchange:
name: metrics.carbon
type: topic
durable: true
queue:
# http://www.rabbitmq.com/extensions.html#queue-ttl
name: queue.harvester.localhost:2003
durable: true
delete_first: false # true/false/if-empty, can be used to update queue bindings
bind: '#' # routing-key parameter(s) (can be a list) to use with queue_bind
consume:
exclusive: per-host # options: per-host/true/false, per-host meaning "use host-unique consumer_tag"
ack_batch: 100 # send one ack with multiple=True per-batch, false/1 - disable
heartbeat: false
reconnect_delays: [1, 2, 2, 10] # int/float or list of these, last one is used for all subsequent attempts
carbon:
host: localhost
default_port: 2003
debug:
dry_run: false
dump_data: false
logging:
warnings: true # pika issues python warnings sometimes
tracebacks: true # much easier to debug with these, but noisy and multiline
version: 1
formatters:
basic:
format: '%(asctime)s :: %(levelname)s :: %(name)s: %(message)s'
datefmt: '%Y-%m-%d %H:%M:%S'
handlers:
console:
class: logging.StreamHandler
stream: ext://sys.stdout
formatter: basic
level: custom
# file:
# class: logging.handlers.WatchedFileHandler
# filename: /var/log/gmond_amqp.log
# formatter: basic
# encoding: utf-8
# level: DEBUG
# loggers:
# pika:
# level: custom
root:
handlers: [console]
level: custom