monasca-api/devstack/files/monasca-notification/notification.yaml

135 lines
3.8 KiB
YAML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#
# (C) Copyright 2015,2016 Hewlett Packard Enterprise Development Company LP
# Copyright 2017 Fujitsu LIMITED
#
# 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: "%KAFKA_HOST%:9092"
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
repo_driver: %MONASCA_NOTIFICATION_DATABASE_DRIVER%
orm:
url: %MONASCA_NOTIFICATION_DATABASE_ENGINE%://%DATABASE_USER%:%DATABASE_PASSWORD%@%DATABASE_HOST%:%DATABASE_PORT%/mon
mysql:
host: %DATABASE_HOST%
user: %DATABASE_USER%
passwd: %DATABASE_PASSWORD%
db: mon
postgresql:
host: %DATABASE_HOST%
port: %DATABASE_PORT%
user: %DATABASE_USER%
password: %DATABASE_PASSWORD%
database: mon
notification_types:
email:
server: "localhost"
port: 25
user: ""
password: ""
timeout: 15
from_addr: "hpcs.mon@hp.com"
grafana_url: "%GRAFANA_URL%"
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"
periodic_path:
60: /notification/60_seconds
logging: # Used in logging.dictConfig
# This sets logging.raiseExcetpions. It is recommended to leave this set to False.
# See https://docs.python.org/2/howto/logging.html#exceptions-raised-during-logging
raise_exceptions: False
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: "%MONASCA_NOTIFICATION_LOG_DIR%/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
statsd:
host: 'localhost'
port: %MONASCA_STATSD_PORT%
keystone:
auth_required: False
auth_url: '%KEYSTONE_URL%'
username: 'admin'
password: 'password'
project_name: 'admin'
user_domain_name: 'default'
project_domain_name: 'default'
auth_type: 'password'