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
exports_prometheus_convert_name?(module()) :: boolean()

Return true if module exports an prometheus_convert_name callback function

Link to this function

get_converters(modules) View Source
get_converters([module()]) :: [module()]

Filter list of modules to ones with a prometheus_convert_name callback

Scrape with default config

Link to this function

scrape(config) View Source
scrape(map()) :: iolist()

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 name
  • converters: a list of modules which have callback functions to convert internal Exometer names into external format