Skip to content

Commit

Permalink
feat: Enable prometheus tendermint metrics (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidNix authored Sep 6, 2022
1 parent a5e45b7 commit 89bca28
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 2 deletions.
5 changes: 4 additions & 1 deletion controllers/internal/fullnode/testdata/tendermint.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,8 @@ laddr = "tcp://0.0.0.0:26657"
cors_allowed_origins = ["*"]

[tx_index]

indexer = "kv"

[instrumentation]
prometheus = true
prometheus_listen_addr = ":26660"
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,8 @@ laddr = "tcp://0.0.0.0:26657"
cors_allowed_origins = []

[tx_index]

indexer = "kv"

[instrumentation]
prometheus = true
prometheus_listen_addr = ":26660"
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,7 @@ indexer = "null"

[new_section]
test = "value"

[instrumentation]
prometheus = true
prometheus_listen_addr = ":26660"
11 changes: 11 additions & 0 deletions controllers/internal/fullnode/toml/tendermint_default_config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,14 @@ cors_allowed_origins = []
# 2) "kv" (default) - the simplest possible indexer, backed by key-value storage (defaults to levelDB; see DBBackend).
# - When "kv" is chosen "tx.height" and "tx.hash" will always be indexed.
indexer = "kv"

[instrumentation]

# When true, Prometheus metrics are served under /metrics on
# PrometheusListenAddr.
# Check out the documentation for the list of available metrics.
prometheus = true

# Address to listen for Prometheus collector(s) connections
prometheus_listen_addr = ":26660"

0 comments on commit 89bca28

Please # to comment.