Module oc_producer
Producer is a source of metrics.
This module defines the oc_producer
behaviour. Required callback functions: read/2
.
Description
Callbacks:
read(Registry, Callback) -> ok
- called by exporters. Read should callCallback
with the current values of all metrics supported by this metric provider. The metrics should be unique for each combination of name and resource.cleanup(Registry) -> ok
- optional. Called when producer removed fromRegistry