Installing the pmm2 client with a system where Mysqld is already running. I’ve run into an issue where pmm-agent gets configured right but wont start sending slowlog info until I first
cp /dev/null /var/log/slowlog.log
service mysqld restart
service pmm-agent restartNot sure why this is but it’s a pain in the butt. Anyway to just have pmm-agent read the file that’s already there?
The answer was to flush logs
https://www.percona.com/blog/2013/04/18/rotating-mysql-slow-logs-safely/