Added a field grafana_url in the installation script

Included a field 'grafana_url' in notification.yaml
for email notifications and replaced it with the
respective grafana host in plugin.sh.

Change-Id: I581b2e9d12632cc7509d24525cc225b60514a8c3
Story: 2001052
Task: 4653
This commit is contained in:
Georgia-Anna Farmaki 2017-06-01 15:39:58 +02:00 committed by Witold Bedyk
parent 366c8886f9
commit 62cf4e26e2
2 changed files with 2 additions and 0 deletions

View File

@ -56,6 +56,7 @@ notification_types:
password: ""
timeout: 15
from_addr: "hpcs.mon@hp.com"
grafana_url: "%GRAFANA_URL%"
webhook:
timeout: 5

View File

@ -102,6 +102,7 @@ configure_monasca-notification() {
s|%KAFKA_HOST%|${SERVICE_HOST}|g;
s|%MONASCA_STATSD_PORT%|${MONASCA_STATSD_PORT}|g;
s|%MONASCA_NOTIFICATION_LOG_DIR%|${MONASCA_NOTIFICATION_LOG_DIR}|g;
s|%GRAFANA_URL%|http:\/\/${SERVICE_HOST}:3000|g;
" -i ${MONASCA_NOTIFICATION_CONF}
sudo install -d -o ${STACK_USER} ${MONASCA_NOTIFICATION_GATE_CFG_LINK}