opentelemetry-collector-contrib
opentelemetry-collector-contrib copied to clipboard
[receiver/mongodbatlasreceiver] Add Log collection
trafficstars
Description: <Describe what has changed.>
- Added functionality for a logs receiver to collect logs from project clusters specified by the user.
- Along with cluster logs, audit logs from those clusters are also scraped.
- New Log and Audit log structures added in to the internal package logs.go
- Log conversion from new custom log structures into plog.Logs
Link to tracking Issue: <Issue number if applicable> https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/12347
Testing:
- Tested changes against a live system and was able to successfully retrieve mongo and audit logs
- New Unit tests added to
config.go_test, receiver_test.go, - New Test Files added
mongodb_event_to_logdata_test.go, logs_test.go
Documentation:
- Added changes to the local README to correlate with the updated configuration.
@armstrmi once you fix the failures, I think it's looking pretty good for an actual PR
@djaglowski Thanks for the informative feedback