dcu / mongodb_exporter

MongoDB exporter for prometheus.io
MIT License
356 stars 216 forks source link

Huge info log files #8

Closed 0x46616c6b closed 8 years ago

0x46616c6b commented 8 years ago

We run the exporter since 2/3 weeks and we noticed that the exporter writes massive info logs. This should be optional. Is there actual a way to deactivate the logs?

Here the output from a server

root@db33:/var/lib/docker/aufs/mnt/d1f20f50bd4ff60948f2fdb3b770e1588cbbe2b9e19aa625273efbdff5901e05/tmp# ls -lah
insgesamt 2,2G
drwxrwxrwt  2 root root 4,0K Dez 21 17:53 .
drwxr-xr-x 31 root root 4,0K Dez  8 22:23 ..
-rw-r--r--  1 root root  42M Dez  8 22:16 mongodb_exporter.db33.root.log.INFO.20151208-140732.1
-rw-r--r--  1 root root 1,8G Dez 21 17:53 mongodb_exporter.db33.root.log.INFO.20151208-212356.1
-rw-r--r--  1 root root 366M Dez 24 08:21 mongodb_exporter.db33.root.log.INFO.20151221-165349.1
lrwxrwxrwx  1 root root   53 Dez 21 17:53 mongodb_exporter.INFO -> mongodb_exporter.db33.root.log.INFO.20151221-165349.1
0x46616c6b commented 8 years ago

the option -v2 solves this issue.