Skip to content

zokusai/openshift-cartridge-newrelic-agent

Repository files navigation

OpenShift New Relic Agent cartridge

An embedded cartridge to enable New Relic Monitoring for Java applications deployed on OpenShift JBoss cartridges.

The cartridge include the version 3.11.0 of the Java Agent, property of New Relic. To see detailed information about usage conditions see https://docs.newrelic.com/docs/licenses/licenses

Requirements

  • A New Relic account.
  • OpenShift JBoss AS/EAP/EWS as primary cartridge.

Install

  • Install the cartridge from GitHub.
  rhc add-cartridge -a <your_app_name> \
    -e OPENSHIFT_NEWRELIC_LICENSE_KEY=<your_new_relic_key> \
    -c https://raw.github.com/zokusai/openshift-cartridge-newrelic-agent/latest/metadata/manifest.yml
  • Restart your application.
  rhc app restart <your_app_name>

Remove

  rhc cartridge-remove newrelic -a <your_app_name>

Known Issues

  • A JAVA_OPTS_EXT user defined environment variable will override the one defined by the cartridge, so you could inadvertently disable the agent.