How to scrape multiple ports and end-points of a POD using service discovery?

Hi,

I have a strange UC, POD having 4 containers that expose metrics on different ports, end-points, and schemes. I can’t place Prometheus annotations as I have multiple ports that expose metrics.

Does Prometheus Auto-Discovery on K8S support this? or Do I need to use Prometheus Operator?

Thanks!
Teja

1 Like