Skip to content

Commit

Permalink
[SKI-27]: Open prometheus port for Sidecar to be exposed (#1319)
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher-Li authored Apr 3, 2024
1 parent 5d083e4 commit fad5ba7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
4 changes: 4 additions & 0 deletions protocol/testing/testnet-dev/dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,10 @@ edit_config() {

# Disable pex
dasel put -t bool -f "$CONFIG_FOLDER"/config.toml '.p2p.pex' -v 'false'

# Enable Sidecar Prometheus
dasel put -t bool -f "$CONFIG_FOLDER"/app.toml '.oracle.metrics_enabled' -v 'true'
dasel put -t string -f "$CONFIG_FOLDER"/app.toml '.oracle.prometheus_server_address' -v 'localhost:8001'
}

install_prerequisites
Expand Down
7 changes: 4 additions & 3 deletions protocol/testing/testnet-local/local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,9 @@ setup_cosmovisor() {

use_slinky() {
CONFIG_FOLDER=$1
# Disable pricefeed-daemon
dasel put -t bool -f "$CONFIG_FOLDER"/app.toml 'price-daemon-enabled' -v false
# Enable slinky daemon
dasel put -t bool -f "$CONFIG_FOLDER"/app.toml 'oracle.enabled' -v true
dasel put -t string -f "$VAL_CONFIG_DIR"/app.toml 'oracle.oracle_address' -v 'slinky0:8080'
dasel put -t string -f "$VAL_CONFIG_DIR"/app.toml 'slinky-vote-extension-oracle-enabled' -v 'true'
}

# TODO(DEC-1894): remove this function once we migrate off of persistent peers.
Expand All @@ -176,6 +173,10 @@ edit_config() {
# Default `timeout_commit` is 999ms. For local testnet, use a larger value to make
# block time longer for easier troubleshooting.
dasel put -t string -f "$CONFIG_FOLDER"/config.toml '.consensus.timeout_commit' -v '5s'

# Enable Sidecar Prometheus
dasel put -t bool -f "$CONFIG_FOLDER"/app.toml '.oracle.metrics_enabled' -v 'true'
dasel put -t string -f "$CONFIG_FOLDER"/app.toml '.oracle.prometheus_server_address' -v 'localhost:8001'
}

install_prerequisites
Expand Down
4 changes: 4 additions & 0 deletions protocol/testing/testnet-staging/staging.sh
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,10 @@ edit_config() {

# Disable pex
dasel put -t bool -f "$CONFIG_FOLDER"/config.toml '.p2p.pex' -v 'false'

# Enable Sidecar Prometheus
dasel put -t bool -f "$CONFIG_FOLDER"/app.toml '.oracle.metrics_enabled' -v 'true'
dasel put -t string -f "$CONFIG_FOLDER"/app.toml '.oracle.prometheus_server_address' -v 'localhost:8001'
}

install_prerequisites
Expand Down

0 comments on commit fad5ba7

Please sign in to comment.