Public | Automated Build

Last pushed: a year ago
Short Description
Dockerized NewRelic MySQL Plugin
Full Description


Dockerized NewRelic MySQL Plugin

This is Dockerized version of NewRelic MySQL Plugin. This is different from NewRelic's official newrelic/dockerized-mysql-plugin. With newrelic/dockerized-mysql-plugin, you need to run a new Docker container for an additional MySQL instance. With this, however, you don't need to. You just need your own customized plugin.json for NewRelic MySQL Plugin:

/* ./data/nrmysql.plugin.json */
{
  "agents": [
    {
      "name"    : "Master",
      "host"    : "db.master.com",
      "metrics" : "status,newrelic,buffer_pool_stats,innodb_metrics,innodb_mutex,innodb_status,master",
      "user"    : "root",
      "passwd"  : "YOUR_PASSWORD"
    },
    {
      "name"    : "Slave",
      "host"    : "db.slave.com",
      "metrics" : "status,newrelic,buffer_pool_stats,innodb_metrics,innodb_mutex,innodb_status,slave",
      "user"    : "root",
      "passwd"  : "YOUR_PASSWORD"
    },
  ]
}

Now just pull the image and run it:

version: '2'
services:
  newrelic:
    image: andromedarabbit/newrelic-mysql-plugin
    environment:
      LICENSE_KEY: YOUR_KEY
    volumes:
      - ./data:/data
    restart: always
Docker Pull Command
Owner
andromedarabbit