💨 Metrics
We refer time series data as Metrics. Currently, we support users to submit two types of metric data.
Counter
Counter represents the cumulative value at a given time, each data point reported is a delta value (add or subtract) to the last value. Usually used to record e.g the accumulated number of tokens transferred.
To see a complete example about how to use it, start from monitor-coinbase-cbeth-mint-burn-via-events
Gauge
Gauge represents a sampled value at a given time, each data point reported is the current value. Usually used to record e.g. balance or total Supply. To see a complete example about how to use it, start from monitor-totalsupply-of-cbeth-via-interval
Series
It is possible to have multiple series in one metric (i.e. Counter or Gauge). Any label combination generate a different series (see #labels). For example, if you have a metric which uses a token symbol as label. You'd generate multiple series in the dashboard by default. For example:
![](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/assets/image (3) (1) (1) (1) (1).png)
You can easily sum them by using #space-aggregation
![](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/assets/agg.gif)
Updated 3 days ago