hi I am doing Prometheus course on kodekloud I have one doubt we create promtheus.yml file and we have to put IP in that file but suppose my ec2 instance gets restarted then IP will change then I will have to make changes in that file right? and tomorrow if I add new ec2 instance then we will have to add that ec2 instance ip in that prometheus.yml file right?
Answered in discord.