charts
charts copied to clipboard
MongoDB metrics auth authentication not working with prometheus scrape_config jobs
Name and Version
bitnami/mongodb
What architecture are you using?
amd64
What steps will reproduce the bug?
metrics:
enabled: true
compatibleMode: false
username: user
password: password
serviceMonitor:
enabled: true
collector:
all: true
This is my metrics configuration
scrape_configs:
- job_name: "mongodb-metrics"
scrape_interval: 30s
static_configs:
- targets: ['mongodb.example.com:9216']
tls_config:
insecure_skip_verify: true
basic_auth:
username: user
password: password
Ans this is my prometheus scrape_config
What is the expected behavior?
Expected prometheus to scrape metrics from the metrics container of mongodb
What do you see instead?
Error:
time="2024-01-31T08:16:57Z" level=error msg="Cannot connect to MongoDB: cannot connect to MongoDB: connection() error occurred during connection handshake: auth error: sasl conversation error: unable to authenticate using mechanism \"SCRAM-SHA-1\": (AuthenticationFailed) Authentication failed."
This error occurs in the metrics container
The issue may not be directly related to the Bitnami container image or Helm chart, but rather to how the application is being utilized or configured in your specific environment.
Having said that, if you think that's not the case and are interested in contributing a solution, we welcome you to create a pull request. The Bitnami team is excited to review your submission and offer feedback. You can find the contributing guidelines here.
Your contribution will greatly benefit the community. Feel free to reach out if you have any questions or need assistance.
If you have any questions about the application itself, customizing its content, or questions about technology and infrastructure usage, we highly recommend that you refer to the forums and user guides provided by the project responsible for the application or technology.
With that said, we'll keep this ticket open until the stale bot automatically closes it, in case someone from the community contributes valuable insights.
This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.
Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.
Any updates on this? I am still not able to connect my prometheus with authenticated MongoDB