Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.37 KB | None | 0 0
  1. #
  2. # (C) Copyright 2015,2016 Hewlett Packard Enterprise Development Company LP
  3. # Copyright 2017 Fujitsu LIMITED
  4. #
  5. # Licensed under the Apache License, Version 2.0 (the "License");
  6. # you may not use this file except in compliance with the License.
  7. # You may obtain a copy of the License at
  8. #
  9. #    http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
  14. # implied.
  15. # See the License for the specific language governing permissions and
  16. # limitations under the License.
  17. #
  18.  
  19. kafka:
  20. url: "192.168.10.6:9092"
  21. group: "monasca-notification"
  22. alarm_topic: "alarm-state-transitions"
  23. notification_topic: "alarm-notifications"
  24. notification_retry_topic: "retry-notifications"
  25. periodic:
  26. 60: 60-seconds-notifications
  27. max_offset_lag: 600 # In seconds, undefined for none
  28.  
  29. database:
  30. # repo_driver: monasca_notification.common.repositories.postgres.pgsql_repo:PostgresqlRepo
  31. # repo_driver: monasca_notification.common.repositories.orm.orm_repo:OrmRepo
  32. # repo_driver: monasca_notification.common.repositories.mysql.mysql_repo:MysqlRepo
  33. repo_driver: monasca_notification.common.repositories.mysql.mysql_repo:MysqlRepo
  34. orm:
  35. url: mysql://root:secretdatabase@127.0.0.1:3306/mon
  36.  
  37. mysql:
  38. host: 127.0.0.1
  39. user: root
  40. passwd: secretdatabase
  41. db: mon
  42.  
  43. postgresql:
  44. host: 127.0.0.1
  45. port: 3306
  46. user: root
  47. password: secretdatabase
  48. database: mon
  49.  
  50. notification_types:
  51.  
  52. email:
  53. server: "localhost"
  54. port: 25
  55. user: ""
  56. password: ""
  57. timeout: 15
  58. from_addr: "hpcs.mon@hp.com"
  59.  
  60. webhook:
  61. timeout: 5
  62.  
  63. pagerduty:
  64. timeout: 5
  65. url: "https://events.pagerduty.com/generic/2010-04-15/create_event.json"
  66.  
  67. processors:
  68. alarm:
  69. number: 2
  70. ttl: 14400 # In seconds, undefined for none. Alarms older than this are not processed
  71. notification:
  72. number: 2
  73.  
  74. retry:
  75. interval: 30
  76. max_attempts: 5
  77.  
  78. queues:
  79. alarms_size: 256
  80. finished_size: 256
  81. notifications_size: 256
  82. sent_notifications_size: 50 # limiting this size reduces potential # of re-sent notifications after a failure
  83.  
  84. zookeeper:
  85. url: "127.0.0.1:2181"
  86. notification_path: "/notification/alarms"
  87. notification_retry_path: "/notification/retry"
  88. periodic_path:
  89. 60: /notification/60_seconds
  90.  
  91. logging: # Used in logging.dictConfig
  92. version: 1
  93. disable_existing_loggers: False
  94. formatters:
  95. default:
  96. format: "%(asctime)s %(levelname)s %(name)s %(message)s"
  97. handlers:
  98. console:
  99. class: logging.StreamHandler
  100. formatter: default
  101. file:
  102. class: logging.handlers.RotatingFileHandler
  103. filename: "/var/log/monasca/notification/notification.log"
  104. formatter: default
  105. maxBytes: 10485760 # Rotate at file size ~10MB
  106. backupCount: 5 # Keep 5 older logs around
  107. loggers:
  108. kazoo:
  109. level: WARN
  110. kafka:
  111. level: WARN
  112. statsd:
  113. level: WARN
  114. root:
  115. handlers:
  116. - file
  117. level: WARN
  118. statsd:
  119. host: 'localhost'
  120. port: 8125
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement