Target instances individually to collect metrics


I want to collect prometheus metrics and therefore would need a way to target each instance of a web service individually to collect metrics from each instance simultaneously.

Is there a way to bypass the load balancer internaly and target the single instances?


Hi! I don’t know of a way to bypass the load balancer, but there may be some workarounds. You could use the prometheus pushgateway, though there are some downsides to that approach, as described here: Another option would be to use something that’s designed to be push-based, like InfluxDB.

I’d encourage you to upvote this feature request for per-instance metrics on our feedback page, or better yet to create a new feature request for better compatibility with prometheus.