Module prometheus_registry

A registry of Collectors.

Description

A registry of Collectors.

The majority of users should use the default, rather than their own.

Creating a registry other than the default is primarily useful for unit tests, or pushing a subset of metrics to the Pushgateway from batch jobs.

Data Types

collect_callback()

collect_callback() = fun((registry(), prometheus_collector:collector()) -> any())

registry()

registry() = atom()

Function Index

clear/0Equivalent to clear(default).
clear/1
collect/2
collector_registeredp/2
collectors/1
deregister_collector/2
register_collector/2
register_collectors/2

Function Details

clear/0

clear() -> ok

Equivalent to clear(default).

clear/1

clear(Registry::prometheus_registry:registry()) -> ok

collect/2

collect(Registry, Callback) -> ok

collector_registeredp/2

collector_registeredp(Registry, Collector) -> boolean()

collectors/1

collectors(Registry::prometheus_registry:registry()) -> [Collector::prometheus_collector:collector()]

deregister_collector/2

deregister_collector(Registry::prometheus_registry:registry(), Collector::prometheus_collector:collector()) -> ok

register_collector/2

register_collector(Registry::prometheus_registry:registry(), Collector::prometheus_collector:collector()) -> ok

register_collectors/2

register_collectors(Registry::prometheus_registry:registry(), Collectors::[prometheus_collector:collector()]) -> ok


Generated by EDoc, Aug 29 2016, 23:53:54.