Update init script to enable prometheus metrics
Some checks failed
Deploy Contract / deploy (pull_request) Successful in 1m12s
Build / build (pull_request) Successful in 2m27s
Lint / Run flake8 on python integration tests (pull_request) Successful in 3m12s
Lint / Run golangci-lint (pull_request) Successful in 6m15s
Tests / test-importer (pull_request) Successful in 16m52s
Tests / sdk_tests (pull_request) Successful in 10m30s
Tests / test-rpc (pull_request) Failing after 5m12s
Tests / test-unit (pull_request) Successful in 6m56s

This commit is contained in:
Prathamesh Musale 2024-04-08 17:32:48 +05:30
parent 322d6f188b
commit c7cae8b6cd

View File

@ -100,6 +100,11 @@ if [ "$1" == "clean" ] || [ ! -d "$HOME/.laconicd/data/blockstore.db" ]; then
$HOME/.laconicd/config/config.toml
fi
# Enable telemetry (prometheus metrics: http://localhost:1317/metrics?format=prometheus)
sed -i 's/enabled = false/enabled = true/g' $HOME/.laconicd/config/app.toml
sed -i 's/prometheus-retention-time = 0/prometheus-retention-time = 60/g' $HOME/.laconicd/config/app.toml
sed -i 's/prometheus = false/prometheus = true/g' $HOME/.laconicd/config/config.toml
# Allocate genesis accounts (cosmos formatted addresses)
laconicd add-genesis-account $KEY 100000000000000000000000000aphoton --keyring-backend $KEYRING