diff options
author | 2017-11-08 11:48:55 -0800 | |
---|---|---|
committer | 2017-11-08 11:48:55 -0800 | |
commit | e4ad55d4dd35ac2b078b3ccd696733e7ae2baab4 (patch) | |
tree | f24a66f0709439a6d70a5a48b4b1443c1d18657a /tools/prometheus | |
parent | 7a4c1723b50a8babed187eebc36de6bb1afe1cd6 (diff) |
Fix compare logic; improve demo start/stop logic
JIRA: MODELS-2
Change-Id: I96e3e5fdfffbb01ca474871242993cc52f49d9ef
Signed-off-by: Bryan Sullivan <bryan.sullivan@att.com>
Diffstat (limited to 'tools/prometheus')
-rw-r--r-- | tools/prometheus/prometheus-tools.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/prometheus/prometheus-tools.sh b/tools/prometheus/prometheus-tools.sh index 072156a..f713f01 100644 --- a/tools/prometheus/prometheus-tools.sh +++ b/tools/prometheus/prometheus-tools.sh @@ -129,7 +129,7 @@ EOF exp=$(jq '.data.result|length' /tmp/up) log "$exp exporters are up" - while [[ $exp > 0 ]]; do + while [[ $exp -gt 0 ]]; do ((exp--)) eip=$(jq -r ".data.result[$exp].metric.instance" /tmp/up) job=$(jq -r ".data.result[$exp].metric.job" /tmp/up) |