You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OS : 4.9.0-16-amd64 #1 SMP Debian 4.9.272-2 (2021-07-19) x86_64 GNU/Linux
Telegraf version : Telegraf 1.19.3 (git: HEAD a799489)
Steps to reproduce:
start telegraf
Expected behavior:
Telegraf must gather metrics from mongo
Actual behavior:
Telegraf fails to get metrics from mongo
Additional info:
Logs:
E! [inputs.mongodb] Unable to get oplog stats: mongo: no documents in result
E! [inputs.mongodb] failed to gather data: "(NotMasterOrSecondary) node is not in primary or recovering state"
The text was updated successfully, but these errors were encountered:
Hi! If you want to run telegraf on arbiter, you have to comment or delete gather_perdb_stats = true. Arbiter does not have any information about collection or db.
Relevant telegraf.conf:
System info:
OS : 4.9.0-16-amd64 #1 SMP Debian 4.9.272-2 (2021-07-19) x86_64 GNU/Linux
Telegraf version : Telegraf 1.19.3 (git: HEAD a799489)
Steps to reproduce:
start telegraf
Expected behavior:
Telegraf must gather metrics from mongo
Actual behavior:
Telegraf fails to get metrics from mongo
Additional info:
Logs:
E! [inputs.mongodb] Unable to get oplog stats: mongo: no documents in result
E! [inputs.mongodb] failed to gather data: "(NotMasterOrSecondary) node is not in primary or recovering state"
The text was updated successfully, but these errors were encountered: