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

Listening on all interfaces opens http://0.0.0.0:8000 in browser #144

Open
devurandom opened this issue May 27, 2024 · 0 comments
Open

Listening on all interfaces opens http://0.0.0.0:8000 in browser #144

devurandom opened this issue May 27, 2024 · 0 comments

Comments

@devurandom
Copy link

Listening globally on all interfaces using otel-desktop-viewer --host 0.0.0.0 (so my application can connect from within its container) will open http://0.0.0.0:8000 in my browser. I would expect it to still open http://localhost:8000.

Related: Listening on all IPv6 interfaces seems not possible:

❯ otel-desktop-viewer --host '[::]'
Error: failed to get config: cannot resolve the configuration: cannot retrieve the configuration: yaml: line 5: did not find expected node content
2024/05/27 15:17:41 collector server run finished with error: failed to get config: cannot resolve the configuration: cannot retrieve the configuration: yaml: line 5: did not find expected node content

❯ otel-desktop-viewer --host ::
2024-05-27T15:17:52.644+0200	info	service/telemetry.go:113	Setting up own telemetry...
2024-05-27T15:17:52.644+0200	info	service/telemetry.go:136	Serving Prometheus metrics	{"address": ":8888", "level": "Basic"}
2024-05-27T15:17:52.644+0200	info	exporter@v0.77.0/exporter.go:286	Development component. May change in the future.	{"kind": "exporter", "data_type": "metrics", "name": "desktop"}
2024-05-27T15:17:52.645+0200	info	exporter@v0.77.0/exporter.go:286	Development component. May change in the future.	{"kind": "exporter", "data_type": "logs", "name": "desktop"}
2024-05-27T15:17:52.645+0200	info	exporter@v0.77.0/exporter.go:286	Development component. May change in the future.	{"kind": "exporter", "data_type": "traces", "name": "desktop"}
2024-05-27T15:17:52.645+0200	info	service/service.go:141	Starting otel-desktop-viewer...	{"Version": "0.1.1", "NumCPU": 8}
2024-05-27T15:17:52.645+0200	info	extensions/extensions.go:41	Starting extensions...
2024-05-27T15:17:52.646+0200	info	otlpreceiver@v0.77.0/otlp.go:94	Starting GRPC server	{"kind": "receiver", "name": "otlp", "data_type": "metrics", "endpoint": ":::4317"}
2024-05-27T15:17:52.646+0200	info	service/service.go:167	Starting shutdown...
2024-05-27T15:17:52.646+0200	info	extensions/extensions.go:55	Stopping extensions...
2024-05-27T15:17:52.646+0200	info	service/service.go:181	Shutdown complete.
error listening for server: listen tcp: address :::8000: too many colons in address
Error: cannot start pipelines: listen tcp: address :::4317: too many colons in address
2024/05/27 15:17:52 collector server run finished with error: cannot start pipelines: listen tcp: address :::4317: too many colons in address
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

1 participant