Exports Prometheus metrics via configurable endpoint.
Behaviours: application
, supervisor
.
{modules, [
...
prometheus_httpd
...
]},
prometheus_httpd:start()
telemetry_scrape_duration_seconds
telemetry_scrape_size_bytes
telemetry_scrape_encoded_size_bytes
Can be configured via prometheus_http
key of prometheus
app env.
Default configuration:
{prometheus, [
...
{prometheus_http, [{path, "/metrics"},
{format, auto},
{port, 8081}]},
...
]}
init/1 | |
start/0 |
Starts inets httpd server with promtheus_httpd module enabled. |
start/2 | |
stop/1 |
init(X1) -> any()
start() -> any()
Starts inets httpd server with promtheus_httpd
module enabled.
Also calls prometheus_http_impl:setup/0
.
start(X1, X2) -> any()
stop(X1) -> any()