View Source PrometheusExometer (prometheus_exometer v0.3.1)
Interface functions which publish Exometer metrics in Prometheus format.
Summary
Functions
Return true if module exports an prometheus_convert_name
callback function
Filter list of modules to ones with a prometheus_convert_name
callback
Scrape with default config
Format data from Exometer metrics in Prometheus text format.
Functions
Return true if module exports an prometheus_convert_name
callback function
Filter list of modules to ones with a prometheus_convert_name
callback
@spec scrape() :: iolist()
Scrape with default config
Format data from Exometer metrics in Prometheus text format.
It takes a map with configuration options.
config = %{namespace: list(atom), converters: list(module)}
Keys:
namespace
: a prefix which will be added to each metric, normally the app nameconverters
: a list of modules which have callback functions to convert internal Exometer names into external format