Netdata Community

Mongodb is not working in netdata

Hello i am running mongo db v4.0.16 and netdata version v1.28.0-116-nightly</small on Centos 7

My problem is that i can not see any data in netdata. I have also add the mongodb.conf as you described in python.d folder. I also turned off firewall and SeLinux and i have installed pymongo

The error.log from netdata :

2021-01-13 15:28:05: python.d INFO: plugin[main] : mongodb[local] : check failed
2021-01-13 15:58:28: go.d ERROR: prometheus[mongodb_exporter_local] Get “http://127.0.0.1:9216/metrics”: dial tcp 127.0.0.1:9216: connect: connection refused
2021-01-13 15:58:28: go.d ERROR: prometheus[mongodb_exporter_local] check failed
2021-01-13 15:58:29: go.d ERROR: prometheus[mongodb_query_exporter_local] Get “http://127.0.0.1:9736/metrics”: dial tcp 127.0.0.1:9736: connect: connection refused
2021-01-13 15:58:29: go.d ERROR: prometheus[mongodb_query_exporter_local] check failed
2021-01-13 15:58:29: python.d INFO: plugin[main] : [mongodb] built 1 job(s) configs
2021-01-13 15:58:30: python.d ERROR: mongodb[local] : command SON([(‘authenticate’, 1), (‘user’, u’netdata’), (‘nonce’, u’b9b5ffff51e434aa’), (‘key’, u’9b98c50d4f76e2bffeb33fec2117abda’)]) failed: Auth mechanism not specified
2021-01-13 15:58:30: python.d INFO: plugin[main] : mongodb[local] : check failed

Hi @Christian_Reismullne

Indeed, error.log is a good place to look at.

We do not need the whole error.log data, lets grep for what we need

grep mongodb error.log