Created attachment 463002 [details, diff] logrotate support When deploying grafana-bin, I noticed a couple issues: A) I can't read the logfiles as my normal user, but must be root B) The log complains about a missing directory (and grafana doesn't create it, even though it has write permission there) I've attached patches for that, along with adding logrotate support. Also sent as https://github.com/gentoo/gentoo/pull/3895
Created attachment 463004 [details, diff] create missing dashboard directory
Created attachment 463006 [details, diff] fix permissions
I would like these changes to land in the tree. Patrick I know you don't like when a developer supersedes you but can you please take a look at what Austin put together? Thanks.
I've proposed an alternative fix for these in adjust's overlay over at https://github.com/adjust/gentoo-overlay/pull/53. If you can test before Patrick picks this thread up, I'd be happy to get some feedback (here or there). Some changes though: - grafana has built-in log rotation (see grafana.ini for details), so I try not to risk a bad interaction between that and an external logrotate config - I try to avoid making grafana directories world readable; I encourage adding unprivileged users to the grafana group instead, which should already have proper permissions in place to e.g. read logs - more directories are being taken care of, not just dashboards, and not just install-time
Fixed in 77e5da07ebf7376541167d97a0d5eb8f39ce7f08 with ferki's proposed fix