LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File monasca-notification.yaml of Package openstack-monasca-notification (Project home:jgrassler:monasca)

kafka:
    url: 127.0.0.1:9092  # or comma seperated list of multiple hosts
    group: monasca-notification
    alarm_topic: alarm-state-transitions
    notification_topic: alarm-notifications
    notification_retry_topic: retry-notifications
    periodic:
        60: 60-seconds-notifications

    max_offset_lag: 600  # In seconds, undefined for none

database:
#  repo_driver: monasca_notification.common.repositories.postgres.pgsql_repo:PostgresqlRepo
#  repo_driver: monasca_notification.common.repositories.orm.orm_repo:OrmRepo
  repo_driver: monasca_notification.common.repositories.mysql.mysql_repo:MysqlRepo
  orm:
    url: 'postgres://notification:password@127.0.0.1:5432/mon'

mysql:
  host: 127.0.0.1
  port: 3306
  user: notification
  passwd: password
  db: mon
  # A dictionary set according to the params defined in, http://dev.mysql.com/doc/refman/5.0/en/mysql-ssl-set.html
  #    ssl: {'ca': '/path/to/ca'}

postgresql:
  user: notification
  password: password
  database: mon
  port: 5432
  host: 127.0.0.1

notification_types:
    email:
        server: 127.0.0.1
        port: 25
        user:
        password:
        timeout: 60
        from_addr: monasca-notification@none.invalid

processors:
    alarm:
        number: 2
        ttl: 14400  # In seconds, undefined for none. Alarms older than this are not processed
    notification:
        number: 4

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  # or comma seperated list of multiple hosts
    notification_path: /notification/alarms
    notification_retry_path: /notification/retry
    periodic_path:
        60: /notification/60_seconds

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: DEBUG
statsd:
    host: 'localhost'
    port: 8125