This module defines the prometheus_collector behaviour.
Required callback functions: collect_mf/2, collect_metrics/2, deregister_cleanup/1.
A collector for a set of metrics.
Normal users should use prometheus_gauge
,
prometheus_counter
, prometheus_summary
and prometheus_histogram
.
Implementing :prometheus_collector
behaviour is for advanced uses,
such as proxying metrics from another monitoring system.
It is it the responsibility of the implementer to ensure produced metrics
are valid.
prometheus_model_helpers
).
collect_mf_callback() = fun((prometheus_model:'MetricFamily'()) -> any())
collector() = atom()
data() = any()
collect_mf/3 | |
deregister/1 | Equivalent to deregister(Collector, default). |
deregister/2 | |
enabled_collectors/0 | |
register/1 | Equivalent to register(Collector, default). |
register/2 |
collect_mf(Collector, Callback, Registry) -> list()
deregister(Collector) -> any()
Equivalent to deregister(Collector, default).
deregister(Collector, Registry) -> ok
enabled_collectors() -> [collector()]
register(Collector) -> any()
Equivalent to register(Collector, default).
register(Collector, Registry) -> ok
Generated by EDoc, Aug 29 2016, 23:53:53.