Skip to content

Commit

Permalink
wip: Allow to define the prometheus targets #209
Browse files Browse the repository at this point in the history
  • Loading branch information
cnouguier committed Dec 8, 2020
1 parent 4c5d27e commit b693cbe
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions deploy/prometheus_before.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash

for TARGET in $PROMETHEUS_TARGET; do
yq

cp configs/prometheus/prometheus.config configs/prometheus/prometheus.yml
for TARGET in $PROMETHEUS_TARGETS; do
echo adding $TARGET target
yq m -i -a append configs/prometheus/prometheus.yml configs/prometheus/targets/$TARGET.yml
done

0 comments on commit b693cbe

Please sign in to comment.