cadvisor

cadvisor - how to reduce the number of logs


We enjoy 'cadvisor' for monitoring.

How can I increase the logging level so that much less data is logged?

I read about the '-v=0' command parameter but cannot find further documentation.


Solution

  • Logging for cAdvisor is taken from glog. If you follow the comments back through a few other repos you get here eventually: https://github.com/google/glog/tree/master#id11

    The important part for you is this:

    The numbers of severity levels INFO, WARNING, ERROR, and FATAL are 0, 1, 2, and 3, respectively.

    so using the -v flag set accordingly to clean up your log files