Intro to Blue Medora Developers
New Relic specializes in Application Monitoring, mainly focused on web applications,
...but not exclusively by any means
We made it easy!
Part 1
---
:data_collector_classes:
default: com.bluemedora.mysql.MySQLDataCollector
:guid: com.bluemedora.mysql
:insights_notification_prefix: mysql
:version:
:major: 1
:minor: 0
:patch: 0
:static_args:
order_queries_by: calls
monitor_tables: true
query_history_interval: 24
query_count: 10
:licensable_resources:
default: mysql_database
(cont'd)
:key_definitions:
default:
mysql_database:
- :metric_type: resource_name
:label: Database
...
:counter_metric_definitions:
default:
mysql_instance:
- :metric_type: os_data_reads
:time_unit: SECONDS
...
:unit_renamings:
default:
mysql_instance:
os_data_reads: reads
os_data_writes: writes
...
:metric_white_list:
default:
mysql_replication:
mysql_instance:
total_allocated:
os_data_reads:
os_data_writes:
lock_deadlocks:
{
"polling_interval_seconds": 60,
"agents": [
{
"instance_name": "Dev Test",
"username": "myCoolUsername",
"password": "superSecretPassword",
"port": 3306,
"host": "mysql-host-name",
"database": "sports-db",
"send_to_plugin": {
"mysql_instance": true,
"mysql_tablespace": true,
"mysql_table": true,
"mysql_database": true,
"mysql_index": true,
"mysql_query": true
},
"send_to_insights": {
"mysql_instance": true,
"mysql_tablespace": true,
"mysql_table": true,
"mysql_database": true,
"mysql_index": true,
"mysql_query": true,
"relationships": true,
"notifications": true
}
}
}
Plugins:
Insights:
// Some examples...
SELECT some_metric FROM <resource_kind>_collection
SELECT count(some_metric) FROM <resource_kind>_collection
SELECT metric1, metric2 FROM <resource_kind1>_collection, <resource_kind2>_collection
SELECT count(some_metric) FROM <resource_kind>_collection SINCE 1 week ago TIMESERIES
SELECT count(some_metric) FROM <resource_kind>_collection FACET resource_name
Yield Different Graph-types
(Huge thanks to Katherine, Corbin, Joe K, Cam, and Dan J)