Skip to content
Snippets Groups Projects
Commit 2569f8ae authored by Nikolay Stanchev's avatar Nikolay Stanchev
Browse files

Updated tick stack installation to create alert templates when kapacitor is installed

parent 93f64487
No related branches found
No related tags found
No related merge requests found
......@@ -49,3 +49,19 @@ systemctl start influxdb
systemctl start kapacitor
systemctl start chronograf
# wait for kapacitor to start
while ! nc -z localhost 9092
do
echo "Waiting for kapacitor port 9092 to be ready on localhost..."
sleep 1
done
# define the TICK script templates within Kapacitor
echo "----> Creating alert templates in Kapacitor"
cd ${REPO_ROOT}/src/service/clmcservice/resources/TICKscript
for template_file in *.tick; do
template_id=$(basename ${template_file} .tick)
echo ${template_id} ${template_file}
kapacitor define-template ${template_id} -tick ${template_file}
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment