Add a laconicd Grafana dashboard to monitoring stack #799

Merged
ashwin merged 10 commits from deep-stack/stack-orchestrator:pm-laconicd-metrics into main 2024-04-11 07:59:37 +00:00
2 changed files with 10 additions and 4 deletions
Showing only changes of commit 8d615394a9 - Show all commits

View File

@ -103,9 +103,15 @@ if [ "$1" == "clean" ] || [ ! -d "$HOME/.laconicd/data/blockstore.db" ]; then
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
if [[ "$OSTYPE" == "darwin"* ]]; then
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
else
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
fi
# Allocate genesis accounts (cosmos formatted addresses)
laconicd add-genesis-account $KEY 100000000000000000000000000aphoton --keyring-backend $KEYRING

View File

@ -71,6 +71,6 @@ scrape_configs:
scrape_interval: 30s
static_configs:
# Add laconicd REST endpoint target with host and port (1317)
- targets: ['LACONICD_REST_HOST:LACONICD_REST_PORT']
# - targets: ['example-host:1317']
params:
format: ['prometheus']