Unable to scrape prometheus metrics via opentelemetry-collector
alita1991 opened this issue · 2 comments
What did you do to encounter the bug?
Steps to reproduce the behavior:
- Install MongoDB operator
- Create a CR with metrics enabled
- Retrieve the metrics via curl without credentials
What did you expect?
Metrics
What happened instead?
Unauthorized
Operator Information
- Operator Version: 0.9.0
- MongoDB Image used: 5.0.25
Kubernetes Cluster Information
- Distribution: K3S
- Version: 1.26
- Image Registry location (quay, or an internal registry): quay
Additional context
Opentelemtry-Collector does not support secrets for ServiceMonitor/PodMonitor resources, which generates authorization issues while trying to scrape the metrics endpoint of MongoDB.
I'm looking for a way to disable the basic_auth on the metrics endpoint of MongoDB, I already tried a lot of ways, including an empty username/password, but nothing worked, any help would be highly appreciated.
This issue is being marked stale because it has been open for 60 days with no activity. Please comment if this issue is still affecting you. If there is no change, this issue will be closed in 30 days.
This issue was closed because it became stale and did not receive further updates. If the issue is still affecting you, please re-open it, or file a fresh Issue with updated information.