문제

How can I monitor a mariadb instance with the New Relic MySQL plugin?

I can monitor mysql 5.1. I can talk to the mariadb 5.5 db with the mysql cli. But when I try to talk to mariadb 5.5 with the newrelic mysql plugin, I get this:

[2014-01-14 16:27:43 -0800] com.newrelic.metrics.publish.binding.Context | SEVERE | Unable to obtain a new database connection: jdbc:mysql://db001:10017/ newrelic/PASSWORD_FILTERED, check your MySQL configuration settings. Could not create connection to database server.

도움이 되었습니까?

해결책

New Relic doesn't officially support MariaDB, but it may work. The New Relic plugin requires that it can connect via TCP. You can test this by trying to connect locally over TCP.

For mysql you would run something like: mysql -u newrelic -pPASSWORD -hHOST --protocol=TCP

The JDBC drivers that work with MySQL may not work the same way which could mean that this plugin will not work correctly with MariaDB.

다른 팁

I had a similar issue and thought it was a MariaDB issue. It turns out I had installed Java 1.5 (the default if you do yum install java). Once I switched to 1.6 it started working.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top