Skip to content

Commit

Permalink
Merge pull request #201 from lidofinance/fix/nodata-transaction-metric
Browse files Browse the repository at this point in the history
Fix: transaction metric initialize on startup
  • Loading branch information
infloop authored Feb 5, 2024
2 parents 301ceea + ccaa90a commit dd53a9e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/metrics/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@

TX_SEND = Counter('transactions_send', 'Amount of send transaction from bot.', ['status'], namespace=PREFIX)

# Initialize metrics
TX_SEND.labels('success').inc(0)
TX_SEND.labels('failure').inc(0)

ACCOUNT_BALANCE = Gauge('account_balance', 'Account balance', namespace=PREFIX)

DEPOSIT_MESSAGES = Gauge(
Expand Down

0 comments on commit dd53a9e

Please sign in to comment.