using blackbox exporter along with ec2_sd_config

193 views
Skip to first unread message

ASIF ABDUL LATHEEF

unread,
Jun 28, 2021, 4:14:15 PM6/28/21
to Prometheus Users
I have 15 ec2 instances and i want to check the service status of multiple ports ( like 22, 443, 80, 8000 etc ) of all these instances, which i think is done by using blackbox exporter. So, can i create a single job for this by combining ec2_sd_config with blackbox exporter.? how can i give multiple ports in such a case.?

Julius Volz

unread,
Jul 1, 2021, 10:04:10 AM7/1/21
to ASIF ABDUL LATHEEF, Prometheus Users
Hi Asif,

Since basically you would want to create multiple targets (same host, different ports) for every host target that is returned from EC2 SD, you would indeed have to create one job per port to monitor, as a scrape configuration cannot "split up" a single target into multiple, it can only modify and filter each individual target, but it can't create new ones.

Regards,
Julius

On Mon, Jun 28, 2021 at 10:14 PM ASIF ABDUL LATHEEF <aaas...@gmail.com> wrote:
I have 15 ec2 instances and i want to check the service status of multiple ports ( like 22, 443, 80, 8000 etc ) of all these instances, which i think is done by using blackbox exporter. So, can i create a single job for this by combining ec2_sd_config with blackbox exporter.? how can i give multiple ports in such a case.?

--
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 prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/a3dd1aa1-ec79-4993-bd64-d07967e91127n%40googlegroups.com.


--
Julius Volz
PromLabs - promlabs.com

ASIF ABDUL LATHEEF

unread,
Jul 2, 2021, 9:19:41 AM7/2/21
to Julius Volz, Prometheus Users
Hi Julius,

Thank you for the clarification. I will continue with your instruction, but it will be too long with a lot of jobs.

Regards,
Asif
Reply all
Reply to author
Forward
0 new messages