Monitor totalSupply of cbETH (via Interval)
Here is an example to monitor total Supply of cbETH.
You could also write it using Time Interval instead of block
Here, you could see
The
totalSupply
can be accessed by callingctx.contract.totalSupply()
You can submit the metric
total_supply
typed Gauge by callingctx.meter.Gauge("total_supply").record(totalSupply, {token: tokenInfo.symbol})
See this repo for full implementation. To learn how to view metrics from the UI, go View Metrics
Last updated