Skip to content

channa-figure/half-life

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HalfLife

HalfLife is a Cosmos-based blockchain validator monitoring and alerting utility

Monitors and alerts for scenarios such as:

  • Slashing period uptime
  • Recent missed blocks (is the validator signing currently)
  • Jailed status
  • Tombstoned status
  • Individual sentry nodes unreachable/out of sync
  • Chain halted

Discord messages are created in the configured webhook channel for:

  • Current validator status
  • Detected alerts

Quick start

Copy config.yaml.example to config.yaml and populate with your discord and validator information. You can optionally provide the sentries array to also monitor the sentries via grpc. rpc-retries can optionally be provided to override the default of 5 RPC retries before alerting, useful for congested RPC servers.

See here for how to create a webhook for a discord channel.

Begin monitoring with:

half-life monitor

By default, half-life monitor will look for config.yaml in the current working directory. To specify a different config file path, use the --file/-f flag:

half-life monitor -f ~/config.yaml

When a validator is first added to config.yaml and halflife is started, a status message will be created in the discord channel and the ID of that message will be added to config.yaml. Pin this message so that the channel's pinned messages can act as a dashboard to see the realtime status of the validators.

Screenshot from 2022-02-28 14-29-36

Alerts will be posted when any error conditions are detected, and follow up messages will be posted when those errors are cleared.

Screenshot from 2022-02-16 10-53-43

For high and critical errors, the configured discord user IDs will be tagged

Screenshot from 2022-02-16 11-38-00

About

Cosmos validator monitoring and alerting utility

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%