forked from newrelic/newrelic_mysql_java_plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CATEGORIES.TXT
33 lines (26 loc) · 1.6 KB
/
CATEGORIES.TXT
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
MySQL Metric Categories
-----------------------
The New Relic plugin is an extensible architecture, allowing you to define your
own new MySQL metrics that can be obtained via an SQL statement. As new MySQL
versions are released, or with additional MySQL third-party storage engines
additional information is available for gathering and instrumenting.
Providing an SQL statement can return either a set of rows of key/value results,
or return a single row of many columns with a single value, and those values are
numeric (a New Relic limitation), the MySQL plugin can record this information
in New Relic.
The config/metric.category.json file includes the default categories of MySQL metrics
and provides some additional examples for reference.
The obvious commands SHOW GLOBAL STATUS, SHOW MASTER STATUS and SHOW SLAVE STATUS
satisfy the previous formatting requirements. Additionally commands that select
information from the INFORMATION_SCHEMA, PERFORMANCE_SCHEMA or other tables are possible,
for example in MySQL 5.5 SELECT * FROM INFORMATION_SCHEMA.innodb_buffer_pool_stats and
in MySQL 5.6 SELECT name, count FROM INFORMATION_SCHEMA.innodb_metrics provide additional
information.
The JSON attributes are:
* category - The description in the metric names
* SQL - The SQL statement
* result - "row", "set", or "special"
* value_metrics - A CSV list of metrics that are values
* counter_metrics - A CSV list of metrics that are per second values
Currently, the New Relic Platform does not allow for customized dashboards per user.
In the future this feature will enable custom categories to be fully utilized.