At the time of writing, the Linode Longview agent is not working with MariaDB 10.5 onwards. This happens because there is a hard coded binary name in the Perl script responsible for determining if MySQL monitoring is required; from MariaDB 10.5 the binary name has changed from
To fix this the Perl script can be edited and the binary name changed. For my system the script is located here:
Simply change the
# diff MySQL.pm MySQL.pm.bak 38c38 < our $SIGNATURES = ['mariadbd']; --- > our $SIGNATURES = ['mysqld'];
Restart Longview after making the changes and wait a few minutes, the MySQL tab should then appear.