Prometheus.ex v1.0.0-alpha6 Prometheus.Registry

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.

Summary

Macros

Unregister all collectors

Calls callback for each collector with two arguments: registry and collector

Check whether collector is registered

Returns collectors registered in registry

Macros

clear(registry \\ :default)

Unregister all collectors.

collect(callback, registry \\ :default)

Calls callback for each collector with two arguments: registry and collector.

collector_registered?(registry \\ :default, collector)

Check whether collector is registered.

collectors(registry \\ :default)

Returns collectors registered in registry.

deregister_collector(registry \\ :default, collector)

Unregister a collector.

register_collector(registry \\ :default, collector)

Register a collector.

register_collectors(registry \\ :default, collectors)

Register collectors list.