Counter
- class savant.metrics.Counter(name, description='', labelnames=())
Counter metric.
Usage example:
counter = Counter( name='frames_per_source', description='Number of processed frames per source', labelnames=('source_id',), ) counter.inc(labels=('camera-1',))
- inc(amount=1, labels=(), timestamp=None)
Increment counter by amount.
- set(value, labels=(), timestamp=None)
Set counter to specific value.