-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Telegraf MongoDB plugin doesn't work. #11830
Copy link
Copy link
Closed
Labels
area/mongodbbugunexpected problem or unintended behaviorunexpected problem or unintended behaviorplugin/input1. Request for new input plugins 2. Issues/PRs that are related to input plugins1. Request for new input plugins 2. Issues/PRs that are related to input pluginsregressionsomething that used to work, but is now brokensomething that used to work, but is now broken
Description
Relevant telegraf.conf
[[inputs.mongodb]]
servers = ["mongodb://192.168.10.81:27017"]
gather_perdb_stats = true
gather_col_stats = true
gather_top_stat = true
col_stats_dbs = ["jschan"]Logs from Telegraf
No logs. No errors.
System info
Telegraf 1.24.0 (git: HEAD@3c4a6516), Debian 11.4, LXC
Docker
N/A
Steps to reproduce
- Install Telegraf
- Configure required output and input
- Verify connectivity outside of Telegraf
...
Expected behavior
I expect Telegraf to connect to my MongoDB and pull the configured metrics.
root@influx:~# telnet 192.168.10.81 27017
Trying 192.168.10.81...
Connected to 192.168.10.81.
Escape character is '^]'.
^]
telnet> quit
Connection closed.
Actual behavior
Nothing happens. Nothing is logged.
When I run: telegraf --config /etc/telegraf/telegraf.conf --input-filter mongodb --test there is no output. It doesn't even try to connect from what I can tell. TCPDump shows zero packets going to my MongoDB server.
root@influx:~# telegraf --config /etc/telegraf/telegraf.conf --input-filter mongodb --test
2022-09-18T16:36:30Z I! Starting Telegraf 1.24.0
2022-09-18T16:36:30Z I! Available plugins: 222 inputs, 9 aggregators, 26 processors, 20 parsers, 57 outputs
2022-09-18T16:36:30Z I! Loaded inputs: mongodb
2022-09-18T16:36:30Z I! Loaded aggregators:
2022-09-18T16:36:30Z I! Loaded processors:
2022-09-18T16:36:30Z W! Outputs are not used in testing mode!
2022-09-18T16:36:30Z I! Tags enabled: host=influx.unfufadoo.net
Additional info
Proxmox VE is the primary host. InfluxDB runs in a container. MongoDB runs in another container. Everything is on the same subnet with no internal firewalls between the containers.
Can someone help me figure this out? I am out of ideas.
Regards,
Jeff
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area/mongodbbugunexpected problem or unintended behaviorunexpected problem or unintended behaviorplugin/input1. Request for new input plugins 2. Issues/PRs that are related to input plugins1. Request for new input plugins 2. Issues/PRs that are related to input pluginsregressionsomething that used to work, but is now brokensomething that used to work, but is now broken