Unable to monitor redis mongo and postgres in my on-prem instance
I have configured the respective collectors but unable to monitor
Redis.conf
update_every: 1
autodetection_retry: 0
priority: 70000
jobs:
- name: cnRedis
address: ‘redis://@127.0.0.1:6379’
Mongodb.conf
update_every: 1
autodetection_retry: 0
priority: 70000
jobs:
- name: cnMongo
uri: ‘mongodb://netdata:netdata@localhost:27017’
timeout: 2
Postgres.conf
jobs:
- name: cnPostgres
dsn: ‘postgres://postgres:postgres@127.0.0.1:5432/postgres’
#collect_databases_matching: ‘*’ - name: local
dsn: ‘host=/var/run/postgresql dbname=postgres user=postgres’
#collect_databases_matching: ‘*’
Troubleshooting steps:
Redis
netdata@cnmaestro:/usr/libexec/netdata/plugins.d$ ./go.d.plugin -d -m redis
[ DEBUG ] main[main] main.go:113 plugin: name=go.d, version=v0.49.2
[ DEBUG ] main[main] main.go:115 current user: name=netdata, uid=120
[ INFO ] main[main] agent.go:136 instance is started
[ INFO ] main[main] setup.go:42 loading config file
[ INFO ] main[main] setup.go:50 looking for ‘go.d.conf’ in [/etc/netdata /usr/lib/netdata/conf.d]
[ INFO ] main[main] setup.go:57 found ‘/etc/netdata/go.d.conf
[ INFO ] main[main] setup.go:64 config successfully loaded
[ INFO ] main[main] agent.go:140 using config: enabled ‘true’, default_run ‘true’, max_procs ‘0’
[ INFO ] main[main] setup.go:69 loading modules
[ INFO ] main[main] setup.go:88 enabled/registered modules: 1/79
[ INFO ] main[main] setup.go:93 building discovery config
[ INFO ] main[main] setup.go:123 looking for ‘redis.conf’ in [/etc/netdata/go.d /usr/lib/netdata/conf.d/go.d]
[ INFO ] main[main] setup.go:139 found ‘/etc/netdata/go.d/redis.conf
[ INFO ] main[main] setup.go:144 dummy/read/watch paths: 0/1/0
[ INFO ] discovery[manager] manager.go:92 registered discoverers: [file discovery: [file reader]]
[ INFO ] discovery[manager] manager.go:97 instance is started
[ INFO ] run[manager] run.go:32 instance is started
[ INFO ] build[manager] build.go:107 instance is started
[ INFO ] discovery[file manager] discovery.go:73 instance is started
[ INFO ] discovery[file reader] read.go:41 instance is started
[ INFO ] discovery[file reader] read.go:42 instance is stopped
[ DEBUG ] build[manager] build.go:154 received config group (’/etc/netdata/go.d/redis.conf’): 0 jobs (added: 0, removed: 0)
[ DEBUG ] run[manager] run.go:43 tick 0
[ DEBUG ] run[manager] run.go:43 tick 1
[ DEBUG ] run[manager] run.go:43 tick 2
^C[ INFO ] main[main] agent.go:104 received interrupt signal (2). Terminating…
[ INFO ] run[manager] run.go:33 instance is stopped
[ INFO ] build[manager] build.go:108 instance is stopped
[ INFO ] discovery[manager] manager.go:98 instance is stopped
[ INFO ] main[main] agent.go:137 instance is stopped
netdata@cnmaestro:/usr/libexec/netdata/plugins.d$ ./go.d.plugin -d -m mongodb
[ DEBUG ] main[main] main.go:113 plugin: name=go.d, version=v0.49.2
[ DEBUG ] main[main] main.go:115 current user: name=netdata, uid=120
[ INFO ] main[main] agent.go:136 instance is started
[ INFO ] main[main] setup.go:42 loading config file
[ INFO ] main[main] setup.go:50 looking for ‘go.d.conf’ in [/etc/netdata /usr/lib/netdata/conf.d]
[ INFO ] main[main] setup.go:57 found ‘/etc/netdata/go.d.conf
[ INFO ] main[main] setup.go:64 config successfully loaded
[ INFO ] main[main] agent.go:140 using config: enabled ‘true’, default_run ‘true’, max_procs ‘0’
[ INFO ] main[main] setup.go:69 loading modules
[ INFO ] main[main] setup.go:88 enabled/registered modules: 1/79
[ INFO ] main[main] setup.go:93 building discovery config
[ INFO ] main[main] setup.go:123 looking for ‘mongodb.conf’ in [/etc/netdata/go.d /usr/lib/netdata/conf.d/go.d]
[ INFO ] main[main] setup.go:139 found ‘/etc/netdata/go.d/mongodb.conf
[ INFO ] main[main] setup.go:144 dummy/read/watch paths: 0/1/0
[ INFO ] discovery[manager] manager.go:92 registered discoverers: [file discovery: [file reader]]
[ INFO ] discovery[manager] manager.go:97 instance is started
[ INFO ] build[manager] build.go:107 instance is started
[ INFO ] run[manager] run.go:32 instance is started
[ INFO ] discovery[file manager] discovery.go:73 instance is started
[ INFO ] discovery[file reader] read.go:41 instance is started
[ INFO ] discovery[file reader] read.go:42 instance is stopped
[ DEBUG ] build[manager] build.go:154 received config group (’/etc/netdata/go.d/mongodb.conf’): 0 jobs (added: 0, removed: 0)
[ DEBUG ] run[manager] run.go:43 tick 0
[ DEBUG ] run[manager] run.go:43 tick 1
[ DEBUG ] run[manager] run.go:43 tick 2
^C[ INFO ] main[main] agent.go:104 received interrupt signal (2). Terminating…
[ INFO ] build[manager] build.go:108 instance is stopped
[ INFO ] run[manager] run.go:33 instance is stopped
[ INFO ] discovery[manager] manager.go:98 instance is stopped
[ INFO ] main[main] agent.go:137 instance is stopped
netdata@cnmaestro:/usr/libexec/netdata/plugins.d$ ./go.d.plugin -d -m postgres
[ DEBUG ] main[main] main.go:113 plugin: name=go.d, version=v0.49.2
[ DEBUG ] main[main] main.go:115 current user: name=netdata, uid=120
[ INFO ] main[main] agent.go:136 instance is started
[ INFO ] main[main] setup.go:42 loading config file
[ INFO ] main[main] setup.go:50 looking for ‘go.d.conf’ in [/etc/netdata /usr/lib/netdata/conf.d]
[ INFO ] main[main] setup.go:57 found ‘/etc/netdata/go.d.conf
[ INFO ] main[main] setup.go:64 config successfully loaded
[ INFO ] main[main] agent.go:140 using config: enabled ‘true’, default_run ‘true’, max_procs ‘0’
[ INFO ] main[main] setup.go:69 loading modules
[ INFO ] main[main] setup.go:88 enabled/registered modules: 1/79
[ INFO ] main[main] setup.go:93 building discovery config
[ INFO ] main[main] setup.go:123 looking for ‘postgres.conf’ in [/etc/netdata/go.d /usr/lib/netdata/conf.d/go.d]
[ INFO ] main[main] setup.go:139 found ‘/etc/netdata/go.d/postgres.conf
[ INFO ] main[main] setup.go:144 dummy/read/watch paths: 0/1/0
[ INFO ] discovery[manager] manager.go:92 registered discoverers: [file discovery: [file reader]]
[ INFO ] discovery[manager] manager.go:97 instance is started
[ INFO ] run[manager] run.go:32 instance is started
[ INFO ] build[manager] build.go:107 instance is started
[ INFO ] discovery[file manager] discovery.go:73 instance is started
[ INFO ] discovery[file reader] read.go:41 instance is started
[ INFO ] discovery[file reader] read.go:42 instance is stopped
[ DEBUG ] build[manager] build.go:154 received config group (’/etc/netdata/go.d/postgres.conf’): 2 jobs (added: 2, removed: 0)
[ DEBUG ] build[manager] build.go:303 building postgres[cnPostgres] job, config: map[provider:file reader source:/etc/netdata/go.d/postgres.conf autodetection_retry:0 dsn:postgres://postgres:postgres@127.0.0.1:5432/postgres module:postgres name:cnPostgres priority:70000 update_every:1]
[ ERROR ] postgres[cnPostgres] postgres.go:120 error on pinging the Postgres database [postgres://postgres:postgres@127.0.0.1:5432/postgres]: failed to connect to host=127.0.0.1 user=postgres database=postgres
: dial error (dial tcp 127.0.0.1:5432: connect: connection refused)
[ ERROR ] postgres[cnPostgres] job.go:191 check failed
[ DEBUG ] build[manager] build.go:303 building postgres[local] job, config: map[provider:file reader source:/etc/netdata/go.d/postgres.conf autodetection_retry:0 dsn:host=/var/run/postgresql dbname=postgres user=postgres module:postgres name:local priority:70000 update_every:1]
[ ERROR ] postgres[local] postgres.go:120 error on pinging the Postgres database [host=/var/run/postgresql dbname=postgres user=postgres]: failed to connect to host=/var/run/postgresql user=postgres database=postgres
: server error (FATAL: password authentication failed for user “postgres” (SQLSTATE 28P01))
[ ERROR ] postgres[local] job.go:191 check failed
[ DEBUG ] run[manager] run.go:43 tick 0
[ DEBUG ] run[manager] run.go:43 tick 1
[ DEBUG ] run[manager] run.go:43 tick 2
[ DEBUG ] run[manager] run.go:43 tick 3
[ DEBUG ] run[manager] run.go:43 tick 4
Kindly help