Skip to content

Commit

Permalink
Update start-prometheus.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
pavithranp authored and rdementi committed Dec 23, 2022
1 parent e1d728d commit 669aeba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/grafana/start-prometheus.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ chmod -R 777 *_volume
mkdir -p provisioning/datasources
cp automatic_prometheus.yml provisioning/datasources/automatic.yml

echo Downloading PCM dashboard

# check if argument is file, create the prometheus.yml accordingly
if [ -f "$1" ]; then
echo "creating prometheus.yml for hosts in targets file";
Expand All @@ -32,8 +34,6 @@ else
curl -o grafana_volume/dashboards/pcm-dashboard.json $1/dashboard/prometheus
fi

echo Downloading PCM dashboard

echo Starting prometheus
docker run --name prometheus -d -p 9090:9090 -v $PWD/prometheus.yml:/etc/prometheus/prometheus.yml -v $PWD/prometheus_volume:/prometheus prom/prometheus
echo Starting grafana
Expand Down

0 comments on commit 669aeba

Please sign in to comment.