View Source prometheus_http_impl (prometheus_httpd v2.1.13)

Internal module for prometheus_httpd.

Summary

Functions

Renders metrics.

Initializes telemetry metrics.

Functions

reply/1

-spec reply(#{path => true | string(),
              headers => fun((string(), string()) -> string()),
              registry => prometheus_registry:registry(),
              standalone => boolean()}) ->
               {integer(), list(), iodata()} | false.

Renders metrics.

setup()

-spec setup() -> any().

Initializes telemetry metrics.

NOTE: If you plug prometheus_httpd in your existing httpd instance, you have to call this function manually.