Our next-gen architecture is built to help you make sense of your ever-growing data. Watch a 4-min demo video!

Back to All Docs

MongoDB Atlas MongoDB Atlas

Last Updated: May. 03, 2023

MongoDB Atlas is is a fully-managed cloud database that handles the complexity of deploying, managing, and healing your deployments on the cloud service provider of your choice.

Deploy this integration to send your MongoDB Atlas metrics to you Coralogix account using the OpenTelemetry Collector.

Prerequisites

Configuration

STEP 1. Create a configuration file /etc/otelcol-contrib/config.yaml with the following parameters:

receivers:
  mongodbatlas:
    # You can obtain the public key from the API Keys tab of the MongoDB Atlas Project Access Manager.
    # This value is required.
    public_key: <<YOUR-MONGODB-ATLAS-PUBLIC-KEY>>
    # You can obtain the private key from the API Keys tab of the MongoDB Atlas Project Access Manager.
    # This value is required.
    private_key: <<YOUR-MONGODB-ATLAS-PRIVATE-KEY>>

exporters:
  logging:
  prometheusremotewrite:
    endpoint: <<coralogix_prometheusremotewrite_endpoint>>
    headers:
      Authorization: "Bearer <private key>"
    external_labels:
      environment: "QA"
processors:
  batch:

extensions:
  pprof:
    endpoint: :1777
  zpages:
    endpoint: :55679
  health_check:

service:
  extensions: [health_check, pprof, zpages]
  pipelines:
    metrics:
      receivers: [mongodbatlas]
      processors: [batch]
      exporters: [logging, prometheusremotewrite]
  • Replace <<YOUR-MONGODB-ATLAS-PUBLIC-KEY>> with the public key to your MongoDB Atlas organization or project.
  • Replace <<YOUR-MONGODB-ATLAS-PRIVATE-KEY>> with the private key to your MongoDB Atlas organization or project.
  • Replace <<coralogix_prometheusremotewrite_endpoint>> with the Prometheus RemoteWrite endpoint associated with your Coralogix domain.

STEP 2. Restart your collector and view your metrics in your Coralogix dashboard.

Support

Need help?

Our world-class customer success team is available 24/7 to walk you through your setup and answer any questions that may come up.

Feel free to reach out to us via our in-app chat or by sending us an email at support@coralogix.com.

On this page