Let's say I have multiple pods (replicas) of application under a service (with
targetPort pointing to port where application keeps its metrics for Prometheus) named "app-monitor-service". Right now I am getting metrics from pods directly using kubernetes_sd_config and is working fine.
Can I use
static_config and point Prometheus to scrape from that service?
Logically scraping from service may seem to work as service routes requests in round robin fashion, Prometheus should be able to scrape metrics from all pods, but want to validate, if I am correct.