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

Link to this function

exports_prometheus_convert_name?(module)

View Source
@spec exports_prometheus_convert_name?(module()) :: boolean()

Return true if module exports an prometheus_convert_name callback function

@spec get_converters([module()]) :: [module()]

Filter list of modules to ones with a prometheus_convert_name callback

@spec scrape() :: iolist()

Scrape with default config

@spec 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