-
Notifications
You must be signed in to change notification settings - Fork 216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add logRotate to mongodb_exporter #88
Comments
Prometheus exporters do not generate logs normally, what log do you want to configure & rotate? |
The logs of mongodb, sometime it may take a lot of spaces |
Prometheus exporters expose metrics, they do not manage log files |
OP probably refers to all the stuff accumulating at /var/log/prometheus in the form prometheus-mongodb-exporter.MACHINE.TIMESTAMP. Those log files are generated by prometheus-mongodb-exporter and I agree that it would be nice to have a procedure allowing the user to rotate those logs. |
my log file is named like mongodb_exporter.ip-10-72-229-205.ec2-user.log.INFO.20180502-212317.24179. How to change the log level to others than INFO? |
Yeah, I'd like to know what and how generates those files. The largest one I have is aroung 350 MB and others are no less than 80 MB. Would be cool if there is some way to rotate/compress/purge old those file. |
You can configure glog to log to stderr More documentation for glog: https://godoc.org/github.com/golang/glog |
Hi @dcu
Currently I'm using mongodb_expoerter in my environment, and I don't want to install too many agents. Now I want a feature to a different url path.
I know it is not part of Prometheus agent, so I want to know if it is welcome to send such PR to this repo. Personally, I do want add it.
Thanks
The text was updated successfully, but these errors were encountered: