-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Vector + Prometheus. Prometheus Exporter: TCP bind failed: address already in use (os error 98) #18680
Comments
Hi @java-juggled-jazz , This error indicates that there is a process already listening on port 8080. I'd suggest choosing a different port. |
Logically. But I've tried to change port and nothing happened. |
Just removed Prometheus exporter sink. It works like a charm. Checked ports inside Docker container, netstat tells that Docker resolver address only is used. |
That is odd. I tried running your config in Docker and didn't see the same error (it correctly bound to 8080) so I don't think it is something Vector is doing. |
Prometheus found address vector:8080/metrics. Looks like Vector works. When I delete prometheus_exporter sink Prometheus cannot find this address. But I can't find Vector metrics starting with |
If you are using the config you posted above, you need to add the |
It works. Thanks. |
A note for the community
Problem
I use Docker Compose with Prometheus, Grafana and Vector for monitoring Nginx logs. I've set Prometheus to listen vector:8080/metrics (it's up in Prometheus targets). The port is free. When I start Vector in Docker I see this:
ERROR sink{component_kind="sink" component_id=metrics-to-prometheus component_type=prometheus_exporter component_name=metrics-to-prometheus}: vector::sinks::prometheus::exporter: Failed to start Prometheus exporter: TCP bind failed: Address in use (os error 98).
What should I do?
Configuration
Version
0.32.2-alpine
Debug Output
No response
Example Data
No response
Additional Context
No response
References
No response
The text was updated successfully, but these errors were encountered: