prometheus_exometer v0.2.0 PrometheusExometer View Source
Interface functions which publish Exometer metrics in Prometheus format.
Link to this section 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
Link to this section Functions
Link to this function
exports_prometheus_convert_name?(module) View Source
Return true if module exports an prometheus_convert_name callback function
Link to this function
get_converters(modules) View Source
Filter list of modules to ones with a prometheus_convert_name callback
Link to this function
scrape()
View Source
scrape()
View Source
scrape() :: iolist()
scrape() :: iolist()
Scrape with default config
Link to this function
scrape(config) View Source
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