Skip to content

Go-based exporter to track bids on EtherFi via GraphQL and expose WON bid count as Prometheus metrics.

Notifications You must be signed in to change notification settings

thebigmatchplayer/etherfi-bid-watcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EtherFi Bid Watcher

Go-based exporter to track bids on EtherFi via GraphQL and expose WON bid count as Prometheus metrics.

Features

  • Scrapes bids for a configured bidder address.
  • Counts only bids with status = WON.
  • Supports pagination and configurable scrape interval.
  • Exposes metrics at /metrics for Prometheus.

Configuration

Edit config.toml:

[exporter]
scrape_interval = 15
port = 6969

[graphql]
graph_endpoint = "https://gateway.thegraph.com/api/.../subgraphs/id/..."
bidder_address = "0xF905168F<..........>35773BA8cdFD9087"

Usage

1. Run directly:

go run cmd/main.go -config ./config.toml

2. Build and run:

go build -o bidwatcher cmd/main.go
./bidwatcher -config ./config.toml

About

Go-based exporter to track bids on EtherFi via GraphQL and expose WON bid count as Prometheus metrics.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published