github.com/observiq/bindplane-agent@v1.51.0/config/google_cloud_exporter/mongodb_atlas/README.md (about) 1 # Mongodb Atlas Metrics with Google Cloud 2 3 The Mongodb Atlas Receiver can be used to send Mongodb Atlas metrics to Google Cloud Monitoring. 4 5 ## Prerequisites 6 7 See the [documentation](https://github.com/observIQ/bindplane-agent/blob/main/docs/receivers.md) for Mongodb Atlas prerequisites. 8 9 See the [prerequisites](../README.md) doc for Google Cloud prerequisites. 10 11 ## Authentication Environment Variables 12 13 The configuration assumes the following environment variables are set: 14 - `MONGODB_ATLAS_PUBLIC_KEY` 15 - `MONGODB_ATLAS_PRIVATE_KEY` 16 17 Set the variables by creating a [systemd override](https://wiki.archlinux.org/title/systemd#Replacement_unit_files). 18 19 Run the following command 20 ```bash 21 sudo systemctl edit observiq-otel-collector 22 ``` 23 24 If this is the first time an override is being created, the file will be empty. Paste the following contents into the file. If the `Service` section is already present, append the two `Environment` lines to the `Service` section. 25 26 Replace `otel` with your Mongodb Atlas public key and private key. 27 ``` 28 [Service] 29 Environment=MONGODB_ATLAS_PUBLIC_KEY=otel 30 Environment=MONGODB_ATLAS_PRIVATE_KEY=otel 31 ``` 32 33 After restarting the agent, the configuration will attempt to use the configured public and private key. 34 35 ```bash 36 sudo systemctl restart observiq-otel-collector 37 ``` 38 39 ## Warning 40 The Google Cloud Exporter appears to have trouble when datapoints for a metric are very close together (sometimes they are < 30s apart for MongoDB Atlas). 41 Because of this there will often be "Duplicate TimeSeries" errors logged, but generally the data should be ok.