Prometheus.ex v1.0.0-alpha3 Prometheus.Collector
A collector for a set of metrics.
Normal users should use Prometheus.Metric.Gauge
, Prometheus.Metric.Counter
, Prometheus.Metric.Summary
and Prometheus.Metric.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.
You will be working with Prometheus data model directly (see Prometheus.Model
).
Summary
Macros
Calls callback
for each MetricFamily of this collector
Equivalent to Prometheus.Registry.deregister_collector/2
Macros
Calls callback
for each MetricFamily of this collector.
Equivalent to Prometheus.Registry.deregister_collector/2
.
Equivalent to Prometheus.Registry.register_collector/2
.