How to output MongoDB Atlas Monitoring information to Cloud Monitoring (GCP) - mongodb-atlas

I plan to use Virtual Engine and MongoDB Atlas on GCP.
Since I want to perform resource monitoring all at once, I would like to know if there is a way to output MongoDB Atlas monitoring information to Cloud Monitoring (GCP).
Now, I can see Cloud Monitoring and MongoDB Monitoring in their respective dashboards.

Related

Integrating Google Cloud Monitoring with Heroku PostgreSQL

I host a PostgreSQL database on Heroku but most of our operations is focused in Google Cloud, for instance Logging and Monitoring.
Heroku exposes some useful information in their dashboard as well via the addons, but I would love to get the statistics into Google Cloud Monitoring, which is not supported.
I know there's a way to install Ops Agent and configure it to collect PostgreSQL logs, but it's aimed for Google Cloud VMs.
Is there a way to connect it to a PostgreSQL instance on Heroku? Can I install it in Heroku dyno? Maybe there's some other way to pipe Heroku's PostgreSQL diagnostics to Google Cloud?

How to configure IP access in mongodb atlas cluster though api or shell command?

How to configure IP access in mongodb atlas cluster though api or shell command ?
It's very time consuming to configure IP access to mongodb atlas cluster though mongodb GUI web platform each time.
It'd be very easy if we have some option to add IP to access mongodb atlas cluster though some api or some mongo shell command, so how to achieve that?
mongodb atlas network access section
The API documentation - for managing the access list: https://docs.atlas.mongodb.com/reference/api/access-lists/

Can we have a central kibana without elasticsearch?

In GCP kubernetes I have 2 clusters of different region, in both I have deployed Elasticsearch,Kibana operator & logs pushed by filebeat runs in a container along with application container in same pod.
I have plan to deploy ElasticSearch, Kibana operator in every cluster, thus looking for feasibility to have a centralized kibana without an Elasticsearch for that centralized kibana as I dont want to spend money buying storage for centralized elasticsearch to store all other region cluster's logs.
Expectation: will have a centralized kibana and I will configure other kibana's IP & password in it and my query should go over the cluster's kibana fetch/return data to central kibana.
Is it possible? any alternates suggestions please..
Kibana needs elastic search for storing configuration data. So you may add one small elastic node with centralized Kibana.
Then connect to external elastic search servers. https://www.elastic.co/guide/en/kibana/current/working-remote-clusters.html

Connect Google Cloud Run to MongoDB Atlas

I'm evaluating a move from Google Kubernetes Engine to Google Cloud Run, to improve cost and resource efficiency within our company. I'm also in the process of transitioning our workflows from monolithic PHP and Ruby apps to a more nimble Node.js setup, using MongoDB.
For a small organization like ours, I like the idea of managed services such as Google Cloud Run and MongoDB Atlas, however, I'm concerned about the security. In MongoDB Atlas, it seems the only real security measure is to whitelist IP, which I obviously don't have access to through Google Cloud Run.
I'm definitely not a network expert, so I'm wondering if anyone has any ideas for securely connecting Cloud Run to MongoDB Atlas, while still maintaining scalability. If I have to remain on GKE, so be it, I just want to know all of my options before I move forward.
IP whitelist - by its very nature, Google Cloud Run would seem to be anti-static-IP, so this seems to be a non-starter.
I evaluated items such as Cloud NAT and Cloud VPC Peering, but from what I can tell Cloud Run does not have access to the VPC, so it seems like this wouldn't help either.
Cloud Run and Cloud Function have the same underlying infrastructure. Cloud Function have the capability to be connected to a VPC. Thereby, Cloud Run will support a day this capability, I hope by the end of 2019.
If you can, I just recommend you to wait!
Update (October 2020): Cloud Run has now launched VPC egress feature that lets you configure a static IP for outbound requests through Cloud NAT. You can follow this step by step guide in the documentation to configure a static IP to connect to MongoDB Atlas.

how to transfer database from gce instance to openshift gear

I have an application running on the google compute engine. It's a nodejs application connected to a mongodb instance. This instance has documents, the accounts of people registered on my website. I want to transfer this data to my openshift gear. It's the same application, I just want to migrate the data to mongodb on openshift.