-
Notifications
You must be signed in to change notification settings - Fork 6
/
config.example.toml
47 lines (41 loc) · 2.7 KB
/
config.example.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Logging configuration.
[log]
# Verbosity level. Set to `debug` or even `trace` to make it more verbose. Defaults to `info`.
level = "debug"
# Whether to print logs in JSON format. Useful if you are using centralised logs solutions like ELK.
# Defaults to false.
json = false
# Per-node configuration, there can be multiple nodes.
[[node]]
# Node name. Will be displayed in labels. Required.
name = "cosmos"
# Tendermint configuration. Has the following fields:
# 1. enabled. If set to false, the metrics related to Tendermint node would be disabled. Defaults to true.
# 2. address. Tendermint RPC address. Defaults to "http://localhost:26657".
# 3. query-upgrades. If set to false, upgrades metrics won't be queried. Useful for chains that use Tendermint
# but not cosmos-sdk, such as Nomic. Defaults to true.
tendermint = { enabled = true, address = "http://localhost:26657", query-upgrades = true }
# Cosmovisor configuration. Has the following fields:
# 1. enabled. If set to false, the metrics related to Cosmovisor would be disabled. Defaults to true.
# 2. chain-folder. Path to folder storing fullnode data and configs (like ~/.gaia for cosmoshub).
# 3. chain-binary-name. Binary name (like gaiad for cosmoshub)
# 4. cosmovisor-path. Cosmovisor path (usually located at ~/go/bin/cosmovisor)
cosmovisor = { enabled = true, chain-folder = "/home/validator/.gaia", chain-binary-name = "gaiad", cosmovisor-path = "/home/validator/go/bin/cosmovisor" }
# gRPC configuration. Has the following fields:
# 1) enabled. If set to false, the metrics related to upgrades would be disabled. Defaults to true.
# 2) address. Tendermint RPC address. Omitting it will result in disabling some metrics.
grpc = { enabled = true, address = "localhost:9090" }
# Git configuration. Has the following fields:
# 1. repository. Repository path. Omitting it will result in disabling Git metrics.
# Can be either a link to Github repo (like below), or a Gitopia repo (see below for example).
# 2. token. Github token. Useful if you want to make requests often, as Github rate-limits requests
# if no token is specified. Only used for Github.
git = { repository = "https://github.com/cosmos/gaia", token = "aaa:bbb" }
# There can be multiple nodes, this might be useful if you run multiple nodes on a same server
# and don't want to bother running multiple instances of this scraper per each node.
[[node]]
name = "gitopia"
tendermint = { enabled = true, address = "http://localhost:36657", query-upgrades = true }
cosmovisor = { enabled = true, chain-folder = "/home/validator/.gitopia", chain-binary-name = "gitopiad", cosmovisor-path = "/home/validator/go/bin/cosmovisor" }
# Here's how you may specify a link to a Gitopia repo.
git = { repository = "gitopia://gitopia/gitopia" }