mirror of
https://github.com/cerc-io/watcher-ts
synced 2024-11-19 20:36:19 +00:00
nikugogoi
a15305450c
* Add prometheus metrics endpoint in watcher * Add event, sync status and DB size metrics * Fix subgraph watchers DB entities directory path * Make watcher metrics optional using config
52 lines
1.2 KiB
TOML
52 lines
1.2 KiB
TOML
[server]
|
|
host = "127.0.0.1"
|
|
port = 3010
|
|
kind = "active"
|
|
|
|
# Checkpointing state.
|
|
checkpointing = true
|
|
|
|
# Checkpoint interval in number of blocks.
|
|
checkpointInterval = 2000
|
|
|
|
# IPFS API address (can be taken from the output on running the IPFS daemon).
|
|
# ipfsApiAddr = "/ip4/127.0.0.1/tcp/5001"
|
|
|
|
# Boolean to filter logs by contract.
|
|
filterLogs = true
|
|
|
|
# Max block range for which to return events in eventsInRange GQL query.
|
|
# Use -1 for skipping check on block range.
|
|
maxEventsBlockRange = -1
|
|
|
|
[metrics]
|
|
host = "127.0.0.1"
|
|
port = 9000
|
|
|
|
[database]
|
|
type = "postgres"
|
|
host = "localhost"
|
|
port = 5432
|
|
database = "mobymask-watcher"
|
|
username = "postgres"
|
|
password = "postgres"
|
|
synchronize = true
|
|
logging = false
|
|
|
|
[upstream]
|
|
[upstream.ethServer]
|
|
gqlApiEndpoint = "http://127.0.0.1:8082/graphql"
|
|
rpcProviderEndpoint = "http://127.0.0.1:8081"
|
|
blockDelayInMilliSecs = 60000
|
|
|
|
[upstream.cache]
|
|
name = "requests"
|
|
enabled = false
|
|
deleteOnStart = false
|
|
|
|
[jobQueue]
|
|
dbConnectionString = "postgres://postgres:postgres@localhost/mobymask-watcher-job-queue"
|
|
maxCompletionLagInSecs = 300
|
|
jobDelayInMilliSecs = 100
|
|
eventsInBatch = 50
|