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 .
helpShow context-sensitive help (also try --help-long and --help-man).peggo.peggo-rest-rpcPeggo REST API URL. Default ishttp://localhost:1317.peggo.cosmos-orchestrator-addressCosmos orchestrator address. Default is empty string.peggo.timeoutPeggo connect timeout. Default is5s.web.listen-addressAddress to listen on for web interface and telemetry. Default is:5566.web.telemetry-pathPath under which to expose metrics. Default is/metrics.versionShow application version.log.levelSet logging level: one ofdebug,info,warn,error.log.formatSet the log format: one oflogfmt,json.web.config.fileConfiguration file to use TLS and/or basic authentication. The format of the file is described in the exporter-toolkit repository.
PEGGO_REST_RPCPeggo REST API URL. Default ishttp://localhost:1317.COSMOS_ORCHESTRATOR_ADDRESSCosmos orchestrator address. Default is empty string.PEGGO_TIMEOUTPeggo connect timeout. Default is5s.EXPORTER_WEB_LISTEN_ADDRESSAddress to listen on for web interface and telemetry. Default is:5566.EXPORTER_WEB_TELEMETRY_PATHPath 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