0

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.

4

2 回答 2

1

New Relic 没有正式支持 MariaDB,但它可能会起作用。New Relic 插件要求它可以通过 TCP 连接。您可以通过尝试通过 TCP 进行本地连接来测试这一点。

对于 mysql,你会运行类似的东西:mysql -u newrelic -pPASSWORD -hHOST --protocol=TCP

与 MySQL 一起工作的 JDBC 驱动程序可能无法以相同的方式工作,这可能意味着该插件无法与 MariaDB 一起正常工作。

于 2014-01-16T23:53:07.873 回答
0

我有一个类似的问题,并认为这是一个 MariaDB 问题。事实证明我已经安装了 Java 1.5(如果你执行 yum install java 则默认安装)。一旦我切换到 1.6,它就开始工作了。

于 2014-07-12T17:36:10.297 回答