> ## Documentation Index
> Fetch the complete documentation index at: https://docs.honeycomb.io/llms.txt
> Use this file to discover all available pages before exploring further.

# MongoDB

<Badge className="hny-badge-enterprise-addon" stroke>Ent+</Badge>

<Note>
  This feature is available as an add-on for the [Honeycomb Enterprise plan](https://www.honeycomb.io/pricing/).
  Please contact your Honeycomb account team for details.
</Note>

## Supported Platforms

| Platform | Metrics | Logs | Traces |
| :- | :- | :- | :- |
| Linux | ✓ | ✓ | |
| Windows | ✓ | ✓ | |
| macOS | ✓ | ✓ | |

## Prerequisites

This source supports MongoDB versions 2.6, 3.x, 4.x, and 5.0.

## Configuration Table

| Parameter | Type | Default | Description |
| :- | :- | :- | :- |
| telemetry\_types | `telemetrySelector` | `["Logs", "Metrics"]` | Choose Telemetry Type. |
| log\_paths | `strings` | `- \"/var/log/mongodb/mongodb.log_\"` \n`- \"/var/log/mongodb/mongod.log_\"` | Path to Mongodb log file(s). |
| start\_at | `enum` | end | Start reading the file from the 'beginning' or 'end'. |
| hosts | `strings` | "localhost:27017" | List of host:port or unix domain socket endpoints. \n \n- For standalone MongoDB deployments this is the hostname and port of the mongod instance.\n- For replica sets specify the hostnames and ports of the mongod instances that are in the replica set configuration. If the replica\_set field is specified, nodes will be auto discovered.\n- For a sharded MongoDB deployment, please specify a list of the mongos hosts. |
| username | `string` | | If authentication is required, specify a username with "clusterMonitor" permission. |
| password | `string` | | The password user's password. |
| collection\_interval | `int` | 60 | Sets how often (seconds) to scrape for metrics. |
| enable\_tls | `bool` | false | Whether or not to use TLS. |
| insecure\_skip\_verify | `bool` | false | Enable to skip TLS certificate verification. |
| ca\_file | `string` | | Certificate authority used to validate the database server's TLS certificate. |
| cert\_file | `string` | | A TLS certificate used for client authentication if mutual TLS is enabled. |
| key\_file | `string` | | A TLS private key used for client authentication if mutual TLS is enabled. |
