http_server enables Fluent Bit’s embedded web server from the [SERVICE] block. It provides an HTTP interface for health checks, configuration inspection, and operational metrics. section 2.6 section 5.3.1
Configure the server alongside its network and monitoring options:
- Set http_server to on to activate the server; use http_listen and http_port to choose its listening address and port. section 2.6 section 5.3.1
- Enable health_check to make health responses reflect output-plugin errors and failed retries during the hc_period window. section 2.6
- Enable storage.metrics when plugin metrics are needed through the API; the metrics include record throughput and data volume. section 5.3.1
Enable the local API
[SERVICE] flush 1 http_server on http_port 2020 health_check on hc_period 60 Query the server with curl 0.0.0.0:2020 or check health with curl 0.0.0.0:2020/api/v1/health.
