Skip to content

Commit 2c1ea53

Browse files
committed
Fix syntax error
1 parent 716936c commit 2c1ea53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

add_validator.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
yq -i -y '.scrape_configs[] |= (.job_name as $name | .static_configs += if $name == "prometheus" then [] else ([{targets:["'$1'" + (if $name == "node" then ":9100" elif $name == "cosmos" then ":$2" else ":9300" end)], labels:(if $name == "validator" then {address: "'$3'"} elif $name == "wallet" then {address: "'$4'"} elif $name == "node" then {instance: "'$5'"} else {} end)}]) end)' $HOME/cosmos_node_monitoring/prometheus/prometheus.yml
1+
yq -i -y '.scrape_configs[] |= (.job_name as $name | .static_configs += if $name == "prometheus" then [] else ([{targets:["'$1'" + (if $name == "node" then ":9100" elif $name == "cosmos" then ":'$2'" else ":9300" end)], labels:(if $name == "validator" then {address: "'$3'"} elif $name == "wallet" then {address: "'$4'"} elif $name == "node" then {instance: "'$5'"} else {} end)}]) end)' $HOME/cosmos_node_monitoring/prometheus/prometheus.yml

0 commit comments

Comments
 (0)