Лучшая ачивка месяца
Setup linode longview for MySQL in Docker
UPD: It was a bad solution and later was thrown away. Because we loose everything in /var/run after reboot. ----------- I did it. Setup linode longview MySQL for MySQL in docker. Here is how: create user in database: CREATE USER 'linode-longview'@'localhost' IDENTIFIED BY 'mypasswd'; add username and password to linode longview config: sudo vi /etc/linode/longview.d/MySQL.conf restart longview: sudo systemctl restart longview add to my docker-compose-production.yml mount volume with mysql socket: mysql: ... volumes: ... - /var/run/mysqld:/var/run/mysqld created catalog with 777 permissions at first: sudo mkdir /var/run/mysqld sudo chmod 777 /var/run/mysqld start my docker: docker-compose -f docker-compose-production.yml up -d and see which user has it: ls -laF /var/run/mysqld In my case it was systemd-coredump. So then chown/chmod for him: sudo chown systemd-coredump:systemd-coredump /var/run/mysqld/ sudo chmod 755 /var/run/mysqld/ it's done. I have MySQL tab in web longview dashboard.