Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print all open ports #1071

Open
pavolloffay opened this issue Sep 19, 2018 · 2 comments
Open

Print all open ports #1071

pavolloffay opened this issue Sep 19, 2018 · 2 comments

Comments

@pavolloffay
Copy link
Member

Requirement - what kind of business use case are you trying to solve?

Every binary should print all open ports on startup. This makes it easy to find the port and connect. The log message should contain info about the port - e.g. what it is used for.

@pavolloffay
Copy link
Member Author

For example collector does not say anything about opening 14267 for jaeger agent.

SPAN_STORAGE_TYPE=elasticsearch go run ./cmd/collector/main.go                                                                                           4:04 
{"level":"info","ts":1537365891.8120868,"caller":"healthcheck/handler.go:99","msg":"Health Check server started","http-port":14269,"status":"unavailable"}
{"level":"info","ts":1537365894.9461088,"caller":"static/strategy_store.go:77","msg":"No sampling strategies provided, using defaults"}
{"level":"info","ts":1537365894.9463255,"caller":"collector/main.go:141","msg":"Registering metrics handler with HTTP server","route":"/metrics"}
{"level":"info","ts":1537365894.9463742,"caller":"collector/main.go:149","msg":"Starting HTTP server","http-port":14268}
{"level":"info","ts":1537365894.946397,"caller":"healthcheck/handler.go:133","msg":"Health Check state change","status":"ready"}

@yurishkuro
Copy link
Member

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants