On 2020-06-25 13:09, [email protected] wrote:
Hey Stuart,

I want to know that suppose I have a node running at any specific
instance. I used the agent service register to add it to the consul.
Now if the IP gets dynamically changed so then how can consul be
updated automatically. And as soon as Consul is updated Prometheus
will see the same node with a new address.
Can it be updated automatically ? or I have to change the service then
do Consul reload and after that Prometheus will see the changed node
address.


IP addresses don't generally change while a machine is running, so it would be enough to register in Consul on startup.

However, if machine's IP address does change you'd need to detect that and trigger something to update Consul.

--
Stuart Clark

--
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/6499137a4c748ded606386e860e5a1c6%40Jahingo.com.

Reply via email to