NewRelic with MySQL Plugin


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
## Install npi

Document

https://docs.newrelic.com/docs/plugins/plugins-new-relic/installing-plugins/installing-npi-compatible-plugin

Debian / Ubuntu 32-bit

LICENSE_KEY=<YOUR_KEY> bash -c "$(curl https://download.newrelic.com/npi/release/install-npi-linux-debian-x86.sh)"

## Install plugin (MySQL)

Enter to npi

cd /path/to/newrelic-npi

Install

./npi install com.newrelic.plugins.mysql.instance

Are you sure you want to continue? (y/n): y
Configure the plugin in a text editor before continuing? (y/n): y

{
"agents": [
{
"name" : "Localhost",
"host" : "localhost",
"metrics" : "status,newrelic",
"user" : "<USERNAME>", // Create user by plugin/scripts/mysql_user.sql
"passwd" : "<PASSWORD>" // Or using root if you think safe
}
]
}


Do you want to set this plugin as a background process? (y/n): y

Check status

/etc/init.d/newrelic_plugin_com.newrelic.plugins.mysql.instance status

Start

/etc/init.d/newrelic_plugin_com.newrelic.plugins.mysql.instance start

Stop

/etc/init.d/newrelic_plugin_com.newrelic.plugins.mysql.instance stop