summaryrefslogtreecommitdiffstats
path: root/bitvend/stats.py
blob: a00cce1351ae424e2d5596932c058e25d7ba4531 (plain)
1
2
3
4
5
from prometheus_client import start_http_server, Counter

coin_counter = Counter('coins_inserted', 'Number of coins inserted into machine')
purchase_counter = Counter('purchases', 'Number of purchases')
cashless_purchase_counter = Counter('cashless_purchases', 'Number of cashless (BTC) purchases')