Hey Vamshi, I suggest you take a look at Prometheus' ec2_sd_config <https://prometheus.io/docs/prometheus/latest/configuration/configuration/#ec2_sd_config>. This uses Prometheus' in-built service discovery capabilities, which means that Prometheus will obtain the hostnames directly from Amazon, and you will not need to specify any individual ports or hostnames.
Best, Ian On Mon, Jun 21, 2021 at 8:34 PM Vamshi Bhargav <[email protected]> wrote: > Hello Team, > > I am using AWS instances and as of now we are assigning the public or > private Ip in the prometheus.yml file to get the metrics. > But now we are spinning the metrics where we need the old instance data > also. > > So, came up with a. idea that if you use the aws tags and config in > prometheus.yml would be helpful. > > Please help me how to configure it ?? > > Thanks, > Vamshi. > > -- > 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/0aae6926-f99f-4b7c-9cef-0ab76a73eb90n%40googlegroups.com > <https://groups.google.com/d/msgid/prometheus-users/0aae6926-f99f-4b7c-9cef-0ab76a73eb90n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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/CADoMBNUap5puG3s6vnce571wKH0RgDAjwmUCVV2wOueuKXVkPw%40mail.gmail.com.

