Skip to main content

HttpServer

Type Alias HttpServer 

Source
pub type HttpServer = HttpServer<DiagInstance>;
Expand description

HTTP server meant to serve diagnostics for a comprehensive server.

Depend on this Resource in a comprehensive::Assembly to get an HTTP server that publishes Prometheus metrics.

§Command line flags

FlagDefaultMeaning
--diag-http_portnoneTCP port number for insecure HTTP server. If unset, plain HTTP is not served.
--diag-http_bind_addr::Binding IP address for HTTP. Used only if --http_port is set.
--diag-https_portnoneTCP port number for secure HTTP server. If unset, HTTPS is not served.
--diag-https_bind_addr::Binding IP address for HTTPS. Used only if --https_port is set.
--metrics_path/metricsHTTP and/or HTTPS path where metrics are served. Set to empty to disable.
--health_path/healthzHTTP and/or HTTPS path where health status is served. Set to empty to disable.

Aliased Type§

pub struct HttpServer { /* private fields */ }