Go-based exporter to track bids on EtherFi via GraphQL and expose WON bid count as Prometheus metrics.
- Scrapes bids for a configured bidder address.
- Counts only bids with
status = WON. - Supports pagination and configurable scrape interval.
- Exposes metrics at
/metricsfor Prometheus.
Edit config.toml:
[exporter]
scrape_interval = 15
port = 6969
[graphql]
graph_endpoint = "https://gateway.thegraph.com/api/.../subgraphs/id/..."
bidder_address = "0xF905168F<..........>35773BA8cdFD9087"1. Run directly:
go run cmd/main.go -config ./config.toml2. Build and run:
go build -o bidwatcher cmd/main.go
./bidwatcher -config ./config.toml