65 lines
1.5 KiB
YAML
65 lines
1.5 KiB
YAML
kafka:
|
|
url: 192.168.10.10:9092
|
|
group: mon-notification
|
|
alarm_topic: alarm-state-transitions
|
|
notification_topic: alarm-notifications
|
|
|
|
mysql:
|
|
host: 192.168.10.6
|
|
user: notification
|
|
passwd: password
|
|
db: mon
|
|
|
|
email:
|
|
server: smtp3.hp.com
|
|
port: 25
|
|
user:
|
|
password:
|
|
timeout: 60
|
|
from_addr: hpcs.mon@hp.com
|
|
|
|
processors:
|
|
alarm:
|
|
number: 2
|
|
ttl: 14400 # In seconds, undefined for none. Alarms older than this are not processed
|
|
notification:
|
|
number: 4
|
|
|
|
queues:
|
|
alarms_size: 256
|
|
finished_size: 256
|
|
notifications_size: 256
|
|
sent_notifications_size: 50 # limiting this size reduces potential # of re-sent notifications after a failure
|
|
|
|
zookeeper:
|
|
url: 192.168.10.10:2181
|
|
max_offset_lag: 600 # In seconds, undefined for none
|
|
|
|
logging: # Used in logging.dictConfig
|
|
version: 1
|
|
disable_existing_loggers: False
|
|
formatters:
|
|
default:
|
|
format: "%(asctime)s %(levelname)s %(name)s %(message)s"
|
|
handlers:
|
|
console:
|
|
class: logging.StreamHandler
|
|
formatter: default
|
|
file:
|
|
class : logging.handlers.RotatingFileHandler
|
|
filename: /tmp/notification.log
|
|
formatter: default
|
|
maxBytes: 10485760 # Rotate at file size ~10MB
|
|
backupCount: 5 # Keep 5 older logs around
|
|
loggers:
|
|
kazoo:
|
|
level: WARN
|
|
kafka:
|
|
level: WARN
|
|
statsd:
|
|
level: WARN
|
|
root:
|
|
handlers:
|
|
- console
|
|
level: INFO
|