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
| Flag | Default | Meaning |
|---|---|---|
--diag-http_port | none | TCP 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_port | none | TCP 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 | /metrics | HTTP and/or HTTPS path where metrics are served. Set to empty to disable. |
--health_path | /healthz | HTTP and/or HTTPS path where health status is served. Set to empty to disable. |
Aliased Type§
pub struct HttpServer { /* private fields */ }