Prometheus exporter for peggo metrics.
This project follows the Prometheus community exporter pattern.
git clone https://github.com/stakefish/peggo-exporter.git
cd peggo-exporter
make build
./bin/peggo-exporter <flags>
To build the Docker image:
docker build -t peggo-exporter .
# for macOS docker desktop
docker buildx build --platform=linux/amd64 -t peggo-exporter .
help
Show context-sensitive help (also try --help-long and --help-man).peggo.peggo-rest-rpc
Peggo REST API URL. Default ishttp://localhost:1317
.peggo.cosmos-orchestrator-address
Cosmos orchestrator address. Default is empty string.peggo.timeout
Peggo connect timeout. Default is5s
.web.listen-address
Address to listen on for web interface and telemetry. Default is:5566
.web.telemetry-path
Path under which to expose metrics. Default is/metrics
.version
Show application version.log.level
Set logging level: one ofdebug
,info
,warn
,error
.log.format
Set the log format: one oflogfmt
,json
.web.config.file
Configuration file to use TLS and/or basic authentication. The format of the file is described in the exporter-toolkit repository.
PEGGO_REST_RPC
Peggo REST API URL. Default ishttp://localhost:1317
.COSMOS_ORCHESTRATOR_ADDRESS
Cosmos orchestrator address. Default is empty string.PEGGO_TIMEOUT
Peggo connect timeout. Default is5s
.EXPORTER_WEB_LISTEN_ADDRESS
Address to listen on for web interface and telemetry. Default is:5566
.EXPORTER_WEB_TELEMETRY_PATH
Path under which to expose metrics. Default is/metrics
.
- Get list of validators
- Get orch address for each validator
- Get event nonce for each orch address
- Compare my own orch's event nonce with the others
The suggested Prometheus interval is 5 minutes, and the timeout is 1 minute.
Endpoints used:
http://localhost:1317/cosmos/staking/v1beta1/validators?status=BOND_STATUS_BONDED
http://localhost:1317/gravity/v1beta/query_delegate_keys_by_validator?validator_address=umeevaloper1tsd7h4erlx9wajg353dwjc56lrvlcnmeghnmk0
http://localhost:1317/gravity/v1beta/oracle/eventnonce/umee1avyd3vh2lfjs2q28h4nj9hqevcxyacfj7m3pz3