Mongodb prometheus discovery endpoint doesnt return private endpoints for peered network

mongo-db prometheus discovery endpoint doesn’t return private endpoints for peered network.

We are using VPC peering to connect with Mongo Atlas. With the recent account about, prometheus integration. We added scrape config to mongo-db discovery API. However, scraping times out. Upon checking further it is found that discovery API returns public endpoints not private ones. Hence connection is failing. Is there a way that discovery API can send private endpoints.

1 Like