krkn-chaos / cerberus

Guardian of Kubernetes clusters. Tool to monitor clusters health and signal/alert on failures.
Apache License 2.0
92 stars 42 forks source link

Cerberus report path configuration #172

Closed ShellyXueHan closed 10 months ago

ShellyXueHan commented 2 years ago

Background:

Originally the logs are write to /root/cerberus/cerberus.report which by default does not exist as part of the code base, nor is it editable when mounted. ~It would be ideal if the path for the logging report can be configurable to a different place where we can mount a volume to it to save the logs if needed.~

It cannot be configured based on config.yaml as that is parsed in at a later point after logging is setup. Thus updating the log file to /tmp folder to get rid of the file system permission issue.

Changes: