MongoDB Atlas receiver
The MongoDB Atlas receiver allows the Splunk Distribution of OpenTelemetry Collector to collect metrics from MongoDB Atlas through its monitoring API.
The MongoDB Atlas receiver allows the Splunk Distribution of the OpenTelemetry Collector to collect metrics and logs from MongoDB Atlas through its monitoring API. The supported pipeline types are metrics and logs. See Process your data with pipelines for more information.
Database metrics are dimensionalized by project and database attributes, for example, project_name and database_name.
mongodb-atlas monitor type.
Deploy the collector
See Deploy the Splunk Distribution of the OpenTelemetry Collector.
Configure the receiver
New names for multi-word components
There is an ongoing effort upstream to rename all multi-word component names to use "snake casing" (in other words, underscores between words). The following table lists the renamed receivers that the Splunk Distribution of the OpenTelemetry Collector currently conforms to:
| Old name | New name |
|---|---|
azureblob |
azure_blob |
azureeventhub |
azure_event_hub |
azuremonitor |
azure_monitor |
filelog |
file_log |
httpcheck |
http_check |
mongodbatlas |
mongodb_atlas |
prometheusremotewrite |
prometheus_remote_write |
tcplog |
tcp_log |
tlscheck |
tls_check |
udplog |
udp_log |
windowseventlog |
windows_event_log |
yanggrpc |
yang_grpc |
Edit your OpenTelemetry Collector configuration file as follows.
-
Add
mongodb_atlasto thereceiverssection:YAML# In this example, both values are pulled from the environment. receivers: mongodb_atlas: public_key: ${MONGODB_ATLAS_PUBLIC_KEY} # You can obtain the public key from the API Keys tab of the MongoDB Atlas Project Access Manager. # This value is required. private_key: ${MONGODB_ATLAS_PRIVATE_KEY} # You can obtain the private key from the API Keys tab of the MongoDB Atlas Project Access Manager. # This value is required.The following example shows how to collect logs:
YAMLreceivers: mongodb_atlas: logs: enabled: true projects: - name: "Your MongoDB project" collect_audit_logs: true collect_host_logs: true -
If you configured the receiver to collect metrics, include it in
service.pipelines.metrics. If you configured the receiver to collect logs, include it inservice.pipelines.logs:YAMLservice: pipelines: metrics: receivers: [mongodb_atlas] logs: receivers: [mongodb_atlas]
Advanced configurations
-
Activate or deactivate specific metrics
You can activate or deactivate specific metrics by setting the
enabledfield in themetricssection for each metric. For example:YAMLreceivers: samplereceiver: metrics: metric-one: enabled: true metric-two: enabled: falseThe following is an example of host metrics receiver configuration with activated metrics:
YAMLreceivers: hostmetrics: scrapers: process: metrics: process.cpu.utilization: enabled: trueNote: Deactivated metrics aren’t sent to Splunk Observability Cloud.Billing-
If you’re in a MTS-based subscription, all metrics count towards metrics usage.
-
If you’re in a host-based plan, metrics listed as active (Active: Yes) on this document are considered default and are included free of charge.
Learn more at Infrastructure Monitoring subscription usage (Host and metric plans).
-
Settings reference
The following table shows the configuration options for the MongoDB Atlas receiver:
included
https://raw.githubusercontent.com/splunk/collector-config-tools/main/cfg-metadata/receiver/mongodbatlas.yaml
Metrics reference
The following metrics, resource attributes, and attributes are available.
included
https://raw.githubusercontent.com/splunk/collector-config-tools/main/metric-metadata/mongodbatlasreceiver.yaml