~bigbes/core-go: 77b64d23

server: allow setting ports for metrics, pprof

With an eye towards Kubernetes, it is desirable to avoid having the API
pick random ports for anything. This commit introduces additional flags
for the API server to specify the metrics and pprof ports. This change
is backwards-compatible insofar as the default behavior is preserved if
the flags are not used.

The log output is changed to include the full address that the
respective listeners are listening on.

Note that using "0.0.0.0:1234" might not quite work as expected, because
Go [1]. But that does not change the default behavior, so I guess it's
fine.

[1] https://github.com/golang/go/issues/48723

Conrad Hoffmann <ch@bitfehler.net> — 2025-11-10 11:53:40 UTC

Commit 77b64d236d29c7bba49560652b5eb902d36253e7view raw patch

Parent(s): a72070e5

1 changed file(s)

FileStatus+
server/server.go M +29 -19