View Source prometheus_http_impl (prometheus_httpd v2.1.13)
Internal module for prometheus_httpd
.
Summary
Functions
-spec reply(#{path => true | string(), headers => fun((string(), string()) -> string()), registry => prometheus_registry:registry(), standalone => boolean()}) -> {integer(), list(), iodata()} | false.
Renders metrics.
-spec setup() -> any().
Initializes telemetry metrics.
NOTE: If you plug prometheus_httpd
in your existing httpd instance,
you have to call this function manually.