-
Notifications
You must be signed in to change notification settings - Fork 57
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
Incorrect IP registered in Consul for Prometheus Output #105
Comments
The Prometheus output uses the address part of the If you want to register |
The issue is have is that i'm running gnmic in a docker container via docker-compose with the prometheus endpoint port exposed, so it can't bind to 10.249.1.215:9804 I believe another possible solution to this would be to support the |
I see, let me look into it |
@jasonyates-thg can you give v0.30.0 a try? You can set a service address as below: outputs:
prometheus:
type: prometheus
listen: :9804
path: /metrics
event-processors:
- interface-descriptions
service-registration:
address: 10.249.0.250:8500
service-address: 10.249.1.215 It will register |
This works perfectly. Thanks for the quick turnaround @karimra |
I'm running consul and gnmic in docker, across 2 VM's. gnmic is configured to use consul for clustering and register it's prometheus output too, the clustering component works great however as i'm running in docker my listen statement is
:7890
and:9804
for the api and prometheus output endpoints, I have to define theservice-address
in the clustering configuration to have the right IP registered in consul. However there's no such config option in the prometheus output section gnmic appears to use the IP of the consul server when registering the prometheus output.How can I define the service-address for the prometheus output in the same way I can for the clustering?
The text was updated successfully, but these errors were encountered: