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.
Private endpoints are not supported for the Prom integration today. However, this is a great idea for a future enhancement. I’ll add this as an enhancement request for the backlog and keep you all updated as we make progress.
I just wanted to follow up on this thread and update you all that the Atlas Prometheus integration does now support VPC peering. In Atlas, when configuring your Prometheus integration, you can choose the discovery API target type to be either public or private. Hope this helps!