Dockerized Mysql Plugin banner
newrelic newrelic

Dockerized Mysql Plugin

DevOps community

Description

Docker image distribution of the New Relic MySQL Plugin

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

[![Archived header](https://github.com/newrelic/open-source-office/raw/master/examples/categories/images/Archived.png)](https://github.com/newrelic/open-source-office/blob/master/examples/categories/index.md#archived)

The New Relic MySQL Plugin

This is the New Relic Plugin for monitoring MySQL databases. It is the same one that can be found in [Plugin Central](https://rpm.newrelic.com/plugins) and on GitHub as [newrelic-platform/newrelic_mysql_java_plugin](https://github.com/newrelic-platform/newrelic_mysql_java_plugin), but packaged as a Docker container image for ease of use!

In order to use the MySQL Plugin, you will need an active New Relic account and a New Relic license key.

How to use this image

The MySQL Plugin image is configured by environment variables. These are mandatory:

  • NEW_RELIC_LICENSE_KEY
  • AGENT_HOST
  • AGENT_USER
  • AGENT_PASSWD

Optionally, you can also set:

  • NEW_RELIC_LOG_LEVEL (default is info)
  • AGENT_NAME (to change what name the Plugin reports as)
  • AGENT_METRICS (see metric.category.json for details)

Example

$ docker run -d \
  -e NEW_RELIC_LICENSE_KEY=foobarbaz \
  -e AGENT_HOST=your-db-host \
  -e AGENT_USER=newrelic \
  -e AGENT_PASSWD=SuPeRsEcUrE \
  newrelic/mysql-plugin

Additional Configuration

HTTP Proxy

If you are running your plugin from a machine that runs outbound traffic through a proxy, you can use the following optional configurations:

  • PROXY_HOST - The proxy host (e.g. webcache.example.com)
  • PROXY_PORT - The proxy port (e.g. 8080). Defaults to 80 if a proxy_host is set
  • PROXY_USERNAME - The proxy username
  • PROXY_PASSWORD - The proxy password

Monitoring MySQL Replication

To monitor stats like Replication Lag and Relay Log Volume are disabled by default. To monitor MySQL Replication the plugin needs to be told to check those additional metric set