Skip to content

[Feature Request] Log metrics endpoint's port number for visibility #309

@taonic

Description

@taonic

Is your feature request related to a problem? Please describe.

In server start-dev command, when the --metrics-port is omitted, the cli will assign a free port automatically.

However, unlike the frontend or pprof port, the automatically assigned metrics port is never advertised in the log.

{"level":"info","ts":"2023-08-08T12:17:07.286+1000","msg":"PProf listen on ","port":63884,"logging-call-at":"pprof.go:73"}
⇨ http server started on 127.0.0.1:8233

Describe the solution you'd like

I'd like the metrics endpoint to be advertised when starting the dev server.

Additional context

Happy to contribute a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions