Skip to content

Commit

Permalink
fix(prometheus): Fixed upstart config (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Wiseblatt committed Mar 20, 2017
1 parent 481f75e commit 19e0dc6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Expand Up @@ -356,6 +356,8 @@ function install_prometheus() {
tar xzf /tmp/prometheus.gz -C $(dirname $OPT_DIR)
rm /tmp/prometheus.gz
cp "$SOURCE_DIR/prometheus.conf" /etc/init/prometheus.conf
sed "s/PROMETHEUS_VERSION/$PROMETHEUS_VERSION/g" -i /etc/init/prometheus.conf

if [[ "$GCE_CONFIG" == "true" ]]; then
sed "s/spinnaker-prometheus\.yml/gce-prometheus\.yml/" \
-i /etc/init/prometheus.conf
Expand Down
@@ -1,6 +1,6 @@
start on filesystem or runlevel [2345]

exec /opt/prometheus-1.5.0.linux-amd64/prometheus \
-config.file /opt/prometheus-1.5.0.linux-amd64/spinnaker-prometheus.yml \
-storage.local.path /opt/prometheus-1.5.0.linux-amd64/data \
exec /opt/PROMETHEUS_VERSION/prometheus \
-config.file /opt/PROMETHEUS_VERSION/spinnaker-prometheus.yml \
-storage.local.path /opt/PROMETHEUS_VERSION/data \
2>&1 > /var/log/prometheus.log

0 comments on commit 19e0dc6

Please sign in to comment.