Telegraf does not monitor mongodb!

Hello friends!

I am trying to monitor my mongodb installation with Telegraf + influxdb. I installed telegraf without problems, I edited my configuration file “telegraf.conf” with everything necessary but telegraf doesn’t get any metrics from my mongodb.

I only get this output in my telegraf.log

2022-09-21T01:40:38Z I! [agent] Hang on, flushing any cached metrics before shutdown
2022-09-21T01:40:38Z I! [agent] Stopping running outputs
2022-09-21T01:40:38Z I! Starting Telegraph 1.24.0
2022-09-21T01:40:38Z I! Available plugins: 222 inputs, 9 aggregators, 26 processors, 20 parsers, 57 outputs
2022-09-21T01:40:38Z I! Loaded inputs: mongodb
2022-09-21T01:40:38Z I! Loaded aggregators:
2022-09-21T01:40:38Z I! Loaded processors:
2022-09-21T01:40:38Z I! Loaded outputs: influxdb_v2
2022-09-21T01:40:38Z I! Tags enabled: host=testhost
2022-09-21T01:40:38Z I! [agent] Config: Interval:10s, Quiet:false, Hostname:“testhost”, Flush Interval:10s

I’m not sure about the following things:

Is it necessary to download the plugins? In which directory should I put them? Are there any extra steps to make the plugins work?

I clarify that I followed ALL the steps of the telegraph installation in detail.

I would greatly appreciate your help!!

I am trying to monitor my mongodb installation with Telegraf + influxdb. I installed telegraf without problems, I edited my configuration file … Monitor* your MongoDB instance to determine its current 192.168.l.254 state and resolve identified problems before they become problematic. If one of the MongoDB servers listed is not reachable for some reason, I want Telegraf to continue running and collect metrics from other … Telegraf /Prometheus - inputs.mongodb not reporting replica set metrics … can access tables etc, MongoDB and elegraf latest stable version …

I believe this is due to Telegraf MongoDB plugin doesn't work. · Issue #11830 · influxdata/telegraf · GitHub

I have a fix in fix(inputs.mongodb): actually start plugin correctly by powersj · Pull Request #11849 · influxdata/telegraf · GitHub which you could try out in the mean time.

Yes, I was using exactly that version. Yesterday I installed the new 1.25 and everything worked perfectly. Thank you very much!