Create a new counter instrument.
RednetClient for sending data
Counter name
Human-readable description
Unit of measurement
📈 Add a value to the counter.
The value is added to the current total and immediately sent to the collector. Counter values must be non-negative (you can't subtract from a counter).
Value to add (must be >= 0)
Additional attributes for this measurement
📈 A counter instrument that tracks cumulative values.
Counters are perfect for tracking things that only increase over time, like total requests processed, blocks mined, or items crafted.
The counter maintains its current value and sends updates to the collector whenever you add to it. It also remembers all the metric metadata so you don't have to repeat it with each measurement.
Example