So if I am using AWS instance which provides dynamic IP address. My server 
of that project is stopped and restarted for any reason then how can we 
detect that and trigger something to update consul ?

On Thursday, June 25, 2020 at 8:21:35 PM UTC+5:30 Stuart Clark wrote:

> 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/d7ee8cad-e279-4dd0-ba3a-0a30b0393935n%40googlegroups.com.

Reply via email to