Skip to content

Commit 9186303

Browse files
pavithranprdementi
authored andcommitted
Update start-prometheus.sh
1 parent 669aeba commit 9186303

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/grafana/start-prometheus.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ chmod -R 777 *_volume
1717
mkdir -p provisioning/datasources
1818
cp automatic_prometheus.yml provisioning/datasources/automatic.yml
1919

20-
echo Downloading PCM dashboard
20+
2121

2222
# check if argument is file, create the prometheus.yml accordingly
2323
if [ -f "$1" ]; then
@@ -26,11 +26,13 @@ if [ -f "$1" ]; then
2626
while read -r line; do
2727
echo " - targets: ['$line']" >> "prometheus.yml"
2828
done < "$1"
29+
echo Downloading PCM dashboard
2930
curl -o grafana_volume/dashboards/pcm-dashboard.json $(head -1 $1)/dashboard/prometheus
3031

3132
else
3233
echo "creating prometheus.yml for $1 ";
3334
sed "s#PCMSENSORSERVER#$1#g" prometheus.yml.template > prometheus.yml
35+
echo Downloading PCM dashboard
3436
curl -o grafana_volume/dashboards/pcm-dashboard.json $1/dashboard/prometheus
3537
fi
3638

0 commit comments

Comments
 (0)