Skip to content

Commit

Permalink
✨ network config (#5)
Browse files Browse the repository at this point in the history
* feat: add network label + refactor config access

- Ensure there is only one CONFIG instance in the program
- Add a network label to all metrics

* feat: network based alerts

* chore: config loaded w/ one RPC_URL

* feat: network-based queries

* fix: dockerfile

* feat: opsgenie receiver

* feat: README

* fix: alerts
  • Loading branch information
EvolveArt authored Dec 20, 2023
1 parent 6ee321a commit 22c10a4
Show file tree
Hide file tree
Showing 17 changed files with 348 additions and 1,303 deletions.
11 changes: 7 additions & 4 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
# The database URL the application will use to connect to the database.
DATABASE_URL='postgres://postgres:postgres@localhost:5432/postgres'

# RPC URLS
TESTNET_RPC_URL=
MAINNET_RPC_URL=
# RPC URL
RPC_URL=

# Config
NETWORK=testnet
ORACLE_ADDRESS=0x
PAIRS=BTC/USD,ETH/USD
IGNORE_SOURCES=BITSTAMP,DEFILLAMA
IGNORE_PUBLISHERS=BINANCE
IGNORE_PUBLISHERS=BINANCE

# Prometheus
TELEGRAM_BOT_TOKEN=
OPSGENIE_API_KEY=
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@
/data
.idea
.env
.env.*
/bin/*
/tmp/*
.DS_Store
rustc-ice-*.txt

# to keep the bin folder
!/bin/.gitkeep
!/tmp/.gitkeep
!/tmp/.gitkeep

Loading

0 comments on commit 22c10a4

Please sign in to comment.