File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ chmod -R 777 *_volume
1717mkdir -p provisioning/datasources
1818cp 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
2323if [ -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
3132else
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
3537fi
3638
You can’t perform that action at this time.
0 commit comments