kubernetes_sd_configs multiple roles in the same job

7 views
Skip to first unread message

tamir h

unread,
May 20, 2020, 9:59:40 AM5/20/20
to Prometheus Users
hi guys,
im pretty new to Prometheus config, i read the manual but i still cant make it work.
my goal is to relabel multiple roles in kubernetes_sd_configs, i wanna use node role + pod role in the same target.
so that the endpoint URL will look like this:
http://<pod-ip1>:8082/metrics?instance=<node-ip1>
http://<pod-ip2>:8082/metrics?instance=<node-ip1>
http://<pod-ipN>:8082/metrics?instance=<node-ip1>
.
.
http://<pod-ip1>:8082/metrics?instance=<node-ip2>
http://<pod-ip2>:8082/metrics?instance=<node-ip2>
http://<pod-ipN>:8082/metrics?instance=<node-ip2>
.
.
.
i hope my question is clear enough.
Reply all
Reply to author
Forward
0 new messages