Add elements for Ceilometer alarm services

Adds Ceilometer alarm-evaluator and alarm-notifier services:
* element for alarm-evaluator
* element for alarm-notifier
* configuration options for alarm services

Change-Id: I223d24256dcd4e9515149bdbdb9d021b0ef4d00e
This commit is contained in:
Phil Neal 2014-08-12 13:59:20 -06:00
parent 5dc2bc56a8
commit 41be9d9a13
9 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1 @@
Enable the Ceilometer Alarm Evaluator service

View File

@ -0,0 +1,3 @@
ceilometer
os-refresh-config
os-svc-install

View File

@ -0,0 +1,4 @@
#!/bin/bash
set -eux
os-svc-daemon -i "$CEILOMETER_VENV_DIR" ceilometer-alarm-evaluator ceilometer ceilometer-alarm-evaluator --config-dir /etc/ceilometer

View File

@ -0,0 +1,6 @@
#!/bin/bash
set -eux
os-svc-enable -n ceilometer-alarm-evaluator
os-svc-restart -n ceilometer-alarm-evaluator

View File

@ -0,0 +1 @@
Enable the Ceilometer Alarm Notification service

View File

@ -0,0 +1,4 @@
ceilometer
ceilometer-alarm-evaluator
os-refresh-config
os-svc-install

View File

@ -0,0 +1,4 @@
#!/bin/bash
set -eux
os-svc-daemon -i "$CEILOMETER_VENV_DIR" ceilometer-alarm-notifier ceilometer ceilometer-alarm-notifier --config-dir /etc/ceilometer

View File

@ -0,0 +1,6 @@
#!/bin/bash
set -eux
os-svc-enable -n ceilometer-alarm-notifier
os-svc-restart -n ceilometer-alarm-evaluator

View File

@ -33,6 +33,15 @@ readonly_user_password={{ceilometer.snmpd_readonly_user_password}}
{{/ceilometer.snmpd_readonly_user_name}} {{/ceilometer.snmpd_readonly_user_name}}
[alarm]
evaluation_service=ceilometer.alarm.service.SingletonAlarmService
rest_notifier_ssl_verify=false
notifier_rpc_topic=alarm_notifier
partition_rpc_topic=alarm_partition_coordination
evaluation_interval=60
record_history=true
[api] [api]
{{#haproxy}} {{#haproxy}}
{{#stunnel.connect_ip}} {{#stunnel.connect_ip}}