Skip to content

Commit

Permalink
bugfix_block_height: block height missing prometheus hosts (#73)
Browse files Browse the repository at this point in the history
Co-authored-by: Nick Hatfield <nx.hatfield@gmail.com>
  • Loading branch information
nhatfield and nxhatfield authored Nov 3, 2021
1 parent 9295530 commit 13bb5e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 4 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
vNext

# 7.4.2

- **BugFix** - block height missing prometheus gateway

# 7.4.1

- **BugFix** - jobs break when supplying multiple prometheus endpoints
Expand Down
5 changes: 1 addition & 4 deletions src/lib/config
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,7 @@ get_addresses() {
get_addresses_elasticsearch

client_ids=$(jq -r '.client_id' <<< "${es_addresses_payload}" 2>/dev/null | sort -u) || log_err "could not get the hotspot client_ids"

if [ "${id}" == "etl.block.height" ]; then
prometheus_pg_host="$(jq -r 'select(.prometheus_pg_host != null) | .prometheus_pg_host' <<< "${es_addresses_payload}" 2>/dev/null)" || log_err "could not get the clients prometheus pg hosts"
fi
prometheus_pg_host="$(jq -r 'select(.prometheus_pg_host != null) | .prometheus_pg_host' <<< "${es_addresses_payload}" 2>/dev/null)" || log_err "could not get the clients prometheus pg hosts"

for c in ${client_ids}; do
get_url=$(jq -r --arg c "${c}" 'select(.client_id == $c) | .prometheus_pg_host' <<< "${es_addresses_payload}" 2>/dev/null | sort -u) || log_err "could not get the clients prometheus gateway"
Expand Down

0 comments on commit 13bb5e3

Please sign in to comment.