Skip to content

Commit 1cd38d6

Browse files
sumoanemaJV0812
authored andcommitted
SUMO-248960 | We got to know that when collecting metrics via mongos … (#4688)
* SUMO-248960 | We got to know that when collecting metrics via mongos instance, otel collector runs into error. To avoid that adding a note to let the user know that only mongod endpoints are supported as of now * Update mongodb-opentelemetry.md * Update docs/integrations/databases/opentelemetry/mongodb-opentelemetry.md * Update docs/integrations/databases/opentelemetry/mongodb-opentelemetry.md * Update docs/integrations/databases/opentelemetry/mongodb-opentelemetry.md --------- Co-authored-by: Jagadisha V <[email protected]>
1 parent 254210a commit 1cd38d6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

docs/integrations/databases/opentelemetry/mongodb-opentelemetry.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Following are the [Fields](/docs/manage/fields/) which will be created as part o
3737

3838
### For metrics collection
3939

40-
The MongoDB receiver fetches stats from a MongoDB instance using the [golang mongo driver](https://github.com/mongodb/mongo-go-driver). Stats are collected via MongoDB's `dbStats` and `serverStatus` commands. The MongoDB receiver extracts values from the result and converts them to OpenTelemetry metrics.
40+
The MongoDB receiver fetches stats from a MongoDB instance using the [golang mongo driver](https://github.com/mongodb/mongo-go-driver). Stats are collected via MongoDB's `dbStats`, `serverStatus`, and `top` commands. The MongoDB receiver extracts values from the result and converts them to OpenTelemetry metrics.
4141

4242
### For logs collection
4343

@@ -96,7 +96,10 @@ In this step, you will configure the YAML file required for MongoDB collection.
9696

9797
Below are the inputs required:
9898

99-
- **`Endpoint (no default)`**. The hostname and port of the MognoDB instance, separated by a colon. (For example: `localhost:27017`.)
99+
- **`Endpoint (no default)`**. The hostname and port of the MognoDB instance, separated by a colon. This is required to scrap metrics. (For example: `localhost:27017`.)
100+
:::note
101+
For collecting metrics, *only* use the `mongod` endpoint. The Sumo Logic OpenTelemetry collector *does not* support the `mongos` endpoint.
102+
:::
100103
- **`Logs Path`**. Provide the path to the mongo db log file configured as part of above steps. Typically the logs are located at the location: `/var/log/mongodb/mongodb.log`.
101104
- **`username (optional)`**. If authentication is required, the user can with clusterMonitor permissions can be provided here.
102105
- **`password (optional)`**. If authentication is required, the password can be provided here.

0 commit comments

Comments
 (0)