Send Mongo logs to Loki with OTEL #6977
-
Should this be enough to send the Mongo logs to OTEL collector which is known to successfully send the logs of the API service to Loki? Telnet tests from Mongo to OTEL collector container are successful:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
This requires knowledge of mongo and how it sends telemetry to an otlp endpoint. Usual suspects are issues with https. Try to find documentation of a working example of this with docker compose. |
Beta Was this translation helpful? Give feedback.
You can look at the souce code:
aspire/src/Aspire.Hosting/OtlpConfigurationExtensions.cs
Line 117 in 89e329c
It sets environment variables.