Metric beat error

Hi Whenever , I am running cmd metricbeat -e -c /etc/metricbeat/metricbeat.yml. I am getting following

2021-12-15T05:07:59.529Z ERROR mongodb/mongodb.go:98 Error establishing direct connection to mongo node at [x.x.x.x:x]. Error output: server returned error on SASL authentication step: Authentication failed.

While in the mongo.yml

  • module: mongodb
    metricsets:

    • dbstats
    • status
    • collstats
    • metrics
    • replstatus
      period: 10s

    password configuration options.

    hosts: ["x.x.x.x:x"]

    Username to use when connecting to MongoDB. Empty by default.

    username: usr

    Password to use when connecting to MongoDB. Empty by default.

    password: 'pass'

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.