kolla-ansible/ansible/roles/monasca/templates/monasca-thresh/monasca-thresh.json.j2
Doug Szumski b6cce3e3f3 Support deploying Monasca Thresh
Monasca Thresh is a Storm topology which generates alerts from
metric streams according to alarms defined via the Monasca API.

This change runs the thresholder in local mode, which means that
the log output for the topology is directed to stdout and the
topology is restarted if the container is restarted. A future
change will improve the log collection and introduce a better
way of the checking the topology is running for multi-node
clusters.

Change-Id: I063dca5eead15f3cec009df62f0fc5d857dd4bb0
Partially-Implements: blueprint monasca-roles
2018-09-26 10:54:37 +00:00

30 lines
948 B
Django/Jinja

{
"command": "/opt/storm/bin/storm jar /monasca-thresh-source/monasca-thresh-*/thresh/target/monasca-thresh-*-SNAPSHOT-shaded.jar monasca.thresh.ThresholdingEngine /etc/monasca/thresh-config.yml monasca-thresh local",
"config_files": [
{
"source": "{{ container_config_directory }}/thresh-config.yml",
"dest": "/etc/monasca/thresh-config.yml",
"owner": "monasca",
"perm": "0600"
},
{
"source": "/var/lib/kolla/config_files/storm.yml",
"dest": "/opt/storm/conf/storm.yaml",
"owner": "monasca",
"perm": "0600"
}
],
"permissions": [
{
"path": "/var/log/kolla/monasca",
"owner": "monasca:kolla",
"recurse": true
},
{
"path": "/var/lib/monasca-thresh",
"owner": "monasca:kolla",
"recurse": true
}
]
}