2018-09-25 13:27:45 -07:00
|
|
|
# chain_exporter
|
2018-10-24 12:25:41 -07:00
|
|
|
Metrics exporter and alerter tools for cosmos-sdk.
|
|
|
|
|
|
|
|
[Subscribe to our newsletter](https://mailchi.mp/38ac109a9ab2/certusone) for updates on this project,
|
|
|
|
insights on the upcoming Game of Stakes and more.
|
2018-09-25 13:27:45 -07:00
|
|
|
|
|
|
|
## chain_exporter
|
|
|
|
|
|
|
|
Chain_exporter exports blockchain metadata, information about missed blocks and governance proposals from the lcd to Postgres.
|
|
|
|
|
|
|
|
Environment:
|
|
|
|
```
|
|
|
|
"GAIA_URL" = "http://gaia-node1:26657" # gaia URL
|
|
|
|
"DB_HOST" = "postgres-chain:5432" # Postgres host:port
|
2018-10-31 02:59:58 -07:00
|
|
|
"DB_NAME" = "postgres" # DB name
|
2018-09-25 13:27:45 -07:00
|
|
|
"DB_USER" = "postgres" # DB username
|
|
|
|
"DB_PW"= "mypwd" # DB password
|
|
|
|
"LCD_URL" = "https://gaia-lcd:1317" # gaia lcd URL
|
|
|
|
```
|
|
|
|
|
|
|
|
## net_exporter
|
|
|
|
|
|
|
|
Net_exporter periodically exports net_info from gaia to Postgres.
|
|
|
|
This allows to get an extensive overview of the current network and connectivity status of the cosmos-sdk.
|
|
|
|
|
|
|
|
Environment:
|
|
|
|
```
|
|
|
|
"GAIA_URLs" = "http://gaia-node0:26657,http://gaia-node1:26657" # gaia URLs (comma-separated)
|
|
|
|
"DB_HOST" = "postgres-chain:5432" # Postgres host:port
|
2018-10-31 02:59:58 -07:00
|
|
|
"DB_NAME" = "postgres" # DB name
|
2018-09-25 13:27:45 -07:00
|
|
|
"DB_USER" = "postgres" # DB username
|
|
|
|
"DB_PW"= "mypwd" # DB password
|
|
|
|
"PERIOD" = "10" # Period to save data in seconds
|
|
|
|
```
|
|
|
|
|
|
|
|
## alerter
|
|
|
|
|
|
|
|
Alerter forwards missed block and governance alerts stored in postgres to Sentry.
|
|
|
|
|
|
|
|
Environment:
|
|
|
|
```
|
|
|
|
"DB_HOST" = "postgres-chain:5432" # Postgres host:port
|
|
|
|
"DB_USER" = "postgres" # DB username
|
2018-10-31 02:59:58 -07:00
|
|
|
"DB_NAME" = "postgres" # DB name
|
2018-09-25 13:27:45 -07:00
|
|
|
"DB_PW"= "mypwd" # DB password
|
|
|
|
"RAVEN_DSN" = "http://xxxxxxx" # DSN_URL from Sentry (hosted or self-hosted)
|
2018-09-26 04:44:27 -07:00
|
|
|
"ADDRESS" = "ABCDDED" # Address of the validator to alert on
|
2018-09-25 13:27:45 -07:00
|
|
|
```
|