Prometheus exporter for various metrics about GBC explorer (https://beacon.gnosischain.com)
- Define specific indexes/publickeys:
- Create a file called
validators.json
. - Fill that file defining the validators list to generate Prometheus metrics (use
validators.json.example
as a reference).
- Create a file called
- Define deposit keys used to create validators:
- Create a file called
validator_deposit_addresses.json
. - Fill that file defining the deposit keys (use
validator_deposit_addresses.json.example
as a reference).
- Create a file called
NOTE: The exporter fetches information from gbc-explorer on every scrape, therefore having a too short scrape interval can produce rate limits.
VARIABLE | Description | Default |
---|---|---|
EXPORTER_PORT | Port where the exporter will expose metrics. | 9877 |
POLLING_INTERVAL_SECONDS | Frequency to fetch the information from https://beacon.gnosischain.com | 600 |
python main.py
docker pull raulio/gbc-explorer-prometheus-exporter:main
docker run --rm -p 9877:9877 raulio/gbc-explorer-prometheus-exporter:main
docker-compose up -d .
Name | Type | Help |
---|---|---|
validator_effectiveness | gauge | Validator attestation effectiveness |
Resources:
- GBC explorer API: https://github.com/gnosischain/gbc-explorer/blob/master/cmd/explorer/main.go
- Prometheus exporter example: https://trstringer.com/quick-and-easy-prometheus-exporter/