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
In the past I had similar issue: #4163. I decided to file a new one since the versions are different and I provided more relevant and detailed information here.
Hint: This fails.
Note: No username and password since there are no users on the MongoDB Arbiter.
Login to the InfluxDB and check if there are any measurements for all three MongoDB nodes
# influx
Connected to http://localhost:8086 version 1.7.9
InfluxDB shell version: 1.7.9
>
> use testdb
Using database testdb
>
> show tag values from mongodb with key = "host";
Expected behavior:
Telegraf on the MongoDB Arbiter node should be able to login to the local mongod server, collect information and push it to the InfluxDB. The influxdb query should return all three MongoDB nodes:
show tag values from mongodb with key = "host";
Actual behavior:
After step 6 you will see that influxdb contains measurements only for MongoDB Primary and Secondary nodes. No data is coming from MongoDB Arbiter.
This error is logged in the Telegraf log file on the MongoDB Arbiter node:
[inputs.mongodb] Error in plugin: not authorized on local to execute command { find: "oplog.$main", filter: { ts: { $exists: true } }, sort: { $natural: 1 }, skip: 0, limit: 1, batchSize: 1, singleBatch: true }
Additional info:
Everything works as expected if you follow the exact steps to reproduce but using Telegraf 1.11.5. Something is wrong with Telegraf 1.12.6.
The text was updated successfully, but these errors were encountered:
In the past I had similar issue: #4163. I decided to file a new one since the versions are different and I provided more relevant and detailed information here.
Relevant telegraf.conf:
System info:
CentOS 7.7
Telegraf 1.12.6
MongoDB 3.2.22
InfluxDB 1.7.9
Steps to reproduce:
/etc/influxdb/influxdb.conf:
/etc/telegraf/telegraf.conf:
Hint: This will work.
Hint: This fails.
Note: No username and password since there are no users on the MongoDB Arbiter.
Expected behavior:
Telegraf on the MongoDB Arbiter node should be able to login to the local mongod server, collect information and push it to the InfluxDB. The influxdb query should return all three MongoDB nodes:
Actual behavior:
After step 6 you will see that influxdb contains measurements only for MongoDB Primary and Secondary nodes. No data is coming from MongoDB Arbiter.
This error is logged in the Telegraf log file on the MongoDB Arbiter node:
Additional info:
Everything works as expected if you follow the exact steps to reproduce but using Telegraf 1.11.5. Something is wrong with Telegraf 1.12.6.
The text was updated successfully, but these errors were encountered: