prometheus_httpd (prometheus_httpd v2.1.15)
View SourceExports Prometheus metrics via configurable endpoint.
Existing httpd:
{modules, [
...
prometheus_httpd
...
]},
Built-in httpd instance:<br/>
prometheus_httpd:start()
Telemetry metrics
telemetry_scrape_duration_seconds
telemetry_scrape_size_bytes
telemetry_scrape_encoded_size_bytes
Configuration
Can be configured via prometheus_http
key of prometheus
app env.
Default configuration:
{prometheus, [
...
{prometheus_http, [{path, \"/metrics\"},
{format, auto},
{port, 8081}]},
...
]}
Summary
Functions
Starts inets httpd server with promtheus_httpd
module enabled.
Also calls prometheus_http_impl:setup/0
.