summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorDenys Fedoryshchenko <denys.f@collabora.com>2026-05-13 22:17:57 +0300
committerDenys Fedoryshchenko <denys.f@collabora.com>2026-05-14 10:04:56 +0300
commitec10b09d60f2f2e5cd20f4c934791fe71e9be265 (patch)
tree6883c12d86a6030f3892c816e2a77278ac5b1278 /kernel
parentd890a1313df666dcc52b85fa07aa989865b4d18e (diff)
downloadaccel-ppp-ec10b09d60f2f2e5cd20f4c934791fe71e9be265.tar.gz
accel-ppp-ec10b09d60f2f2e5cd20f4c934791fe71e9be265.zip
metrics: add HTTP listener with /metrics endpoint
Stand up a minimal HTTP/1.1 server on top of triton's md handler, using the same pattern as cli/tcp.c. The listener: * binds the address configured in [metrics]/address (IPv4 only for now); * accepts non-blocking connections, reads up to the first "\r\n\r\n" into a fixed-size buffer (2 KiB), then dispatches one request and closes the connection; * routes GET /metrics to a placeholder 200 response (body is empty until the metrics rendering lands in a later commit); * returns 404 for other paths, 405 for non-GET, 413 if the request headers do not fit, and 400 for an unparseable request line. Content-Type is selected from the configured format (prometheus or json) so the next commits can plug in real bodies without touching the transport. Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions