108 lines
2.6 KiB
Plaintext
108 lines
2.6 KiB
Plaintext
kafka:
|
|
url: <%= @kafka_brokers %>
|
|
group: monasca-notification
|
|
alarm_topic: alarm-state-transitions
|
|
notification_topic: alarm-notifications
|
|
notification_retry_topic: retry-notifications
|
|
max_offset_lag: 600
|
|
<% if @periodic_kafka_topics and not @periodic_kafka_topics.empty? -%>
|
|
periodic:
|
|
<% @periodic_kafka_topics.each do |periodic_kafka_topic| -%>
|
|
<%= periodic_kafka_topic %>
|
|
<%- end -%>
|
|
<% end -%>
|
|
|
|
mysql:
|
|
host: <%= @sql_host %>
|
|
port: <%= @sql_port %>
|
|
user: <%= @sql_user %>
|
|
passwd: <%= @sql_password %>
|
|
db: mon
|
|
|
|
notification_types:
|
|
plugins:
|
|
- monasca_notification.plugins.hipchat_notifier:HipChatNotifier
|
|
- monasca_notification.plugins.slack_notifier:SlackNotifier
|
|
|
|
email:
|
|
server: <%= @smtp_server %>
|
|
port: <%= @smtp_port %>
|
|
user: <%= @smtp_user %>
|
|
password: <%= @smtp_password %>
|
|
timeout: 60
|
|
from_addr: <%= @from_email_address %>
|
|
|
|
webhook:
|
|
timeout: 5
|
|
url: <%= @webhook_url %>
|
|
|
|
pagerduty:
|
|
timeout: 5
|
|
url: <%= @pagerduty_url %>
|
|
|
|
hipchat:
|
|
timeout: 5
|
|
ca_certs: <%= @hipchat_ca_certs %>
|
|
insecure: <%= @hipchat_insecure %>
|
|
|
|
slack:
|
|
timeout: 5
|
|
ca_certs: <%= @slack_ca_certs %>
|
|
insecure: <%= @slack_insecure %>
|
|
|
|
processors:
|
|
alarm:
|
|
number: 2
|
|
ttl: 14400
|
|
notification:
|
|
number: 4
|
|
|
|
retry:
|
|
interval: 30
|
|
max_attempts: 5
|
|
|
|
queues:
|
|
alarms_size: 256
|
|
finished_size: 256
|
|
notifications_size: 256
|
|
sent_notifications_size: 50
|
|
|
|
zookeeper:
|
|
url: <%= @zookeeper_servers %>
|
|
notification_path: /notification/alarms
|
|
notification_retry_path: /notification/retry
|
|
<% if @periodic_zookeeper_paths and not @periodic_zookeeper_paths.empty? -%>
|
|
periodic_path:
|
|
<% @periodic_zookeeper_paths.each do |periodic_zookeeper_path| -%>
|
|
<%= periodic_zookeeper_path %>
|
|
<%- end -%>
|
|
<% end -%>
|
|
|
|
logging:
|
|
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.log
|
|
formatter: default
|
|
maxBytes: 10485760
|
|
backupCount: 5
|
|
loggers:
|
|
kazoo:
|
|
level: INFO
|
|
kafka:
|
|
level: INFO
|
|
statsd:
|
|
level: INFO
|
|
root:
|
|
handlers:
|
|
- file
|
|
level: INFO
|