Skip to content

luarx/gbc-explorer-prometheus-exporter

Repository files navigation

Python 3.8

GBC Explorer Prometheus exporter

Prometheus exporter for various metrics about GBC explorer (https://beacon.gnosischain.com)

Configuration

Validators list (2 options to define them)

  • 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).
  • 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).

ENV VARIABLES

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

RUN

Bash

python main.py

Docker

docker pull raulio/gbc-explorer-prometheus-exporter:main
docker run --rm -p 9877:9877 raulio/gbc-explorer-prometheus-exporter:main

Docker-compose

docker-compose up -d .

Metrics

Name Type Help
validator_effectiveness gauge Validator attestation effectiveness

Resources:

About

Prometheus exporter for various metrics from GBC explorer (https://beacon.gnosischain.com)

Resources

License

Stars

Watchers

Forks

Packages

No packages published