# # (C) Copyright 2015 Hewlett Packard Enterprise Development Company LP # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # #    http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or # implied. # See the License for the specific language governing permissions and # limitations under the License. # kafka: url: "127.0.0.1:9092" group: "monasca-notification" alarm_topic: "alarm-state-transitions" notification_topic: "alarm-notifications" notification_retry_topic: "retry-notifications" max_offset_lag: 600 # In seconds, undefined for none mysql: host: "127.0.0.1" user: "notification" passwd: "password" db: "mon" notification_types: email: server: "localhost" port: 25 user: "" password: "" timeout: 15 from_addr: "hpcs.mon@hp.com" webhook: timeout: 5 pagerduty: timeout: 5 url: "https://events.pagerduty.com/generic/2010-04-15/create_event.json" processors: alarm: number: 2 ttl: 14400 # In seconds, undefined for none. Alarms older than this are not processed notification: number: 2 retry: interval: 30 max_attempts: 5 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: "127.0.0.1:2181" notification_path: "/notification/alarms" notification_retry_path: "/notification/retry" 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: "/var/log/monasca/notification/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: - file level: WARN