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
17
17
mkdir -p provisioning/datasources
18
18
cp automatic_prometheus.yml provisioning/datasources/automatic.yml
19
19
20
- echo Downloading PCM dashboard
20
+
21
21
22
22
# check if argument is file, create the prometheus.yml accordingly
23
23
if [ -f " $1 " ]; then
@@ -26,11 +26,13 @@ if [ -f "$1" ]; then
26
26
while read -r line; do
27
27
echo " - targets: ['$line ']" >> " prometheus.yml"
28
28
done < " $1 "
29
+ echo Downloading PCM dashboard
29
30
curl -o grafana_volume/dashboards/pcm-dashboard.json $( head -1 $1 ) /dashboard/prometheus
30
31
31
32
else
32
33
echo " creating prometheus.yml for $1 " ;
33
34
sed " s#PCMSENSORSERVER#$1 #g" prometheus.yml.template > prometheus.yml
35
+ echo Downloading PCM dashboard
34
36
curl -o grafana_volume/dashboards/pcm-dashboard.json $1 /dashboard/prometheus
35
37
fi
36
38
You can’t perform that action at this time.
0 commit comments