Module oc_producer_registry
Registry maintains a set of metric producers for exporting.
Description
Most users will rely on the DefaultRegistry.
Function Index
add_producer/1 | |
add_producer/2 |
Adds Producer to the Registry . |
read_all/1 | Equivalent to read_all(default). |
read_all/2 |
Calls Callback for each metric produced by the metric producers in the Registry . |
read_to_list/0 | |
read_to_list/1 | |
remove_producer/1 | Equivalent to remove_producer(default, Producer). |
remove_producer/2 |
Function Details
add_producer/1
add_producer(Producer) -> any()
add_producer/2
add_producer(Registry, Producer) -> any()
Adds Producer
to the Registry
.
read_all/1
read_all(Callback) -> any()
Equivalent to read_all(default)
.
read_all/2
read_all(Registry, Callback) -> any()
Calls Callback
for each metric produced by the metric producers in the Registry
.
read_to_list/0
read_to_list() -> any()
read_to_list/1
read_to_list(Registry) -> any()
remove_producer/1
remove_producer(Producer) -> any()
Equivalent to remove_producer(default, Producer)
.
remove_producer/2
remove_producer(Registry, Producer) -> any()