This project contains a kontena.yml
file for the kdgm/newrelic-kontena
stack. This stack is used to run a single newrelic-infra
agent on each kontena node (daemon
deployment strategy) to send metrics about the host system and running docker containers to NewRelic.
A script (master-deploy.sh
) is also provided to deploy newrelic-infra
on the kontena master node.
Check you are on the desired grid (e.g. staging or production)
$ kontena stack install
$ kontena stack upgrade newrelic-kontena
This builds kdgm/newrelic-infra
image and pushes the image to Docker Hub.
$ kontena stack build
$ kontena stack upgrade newrelic-kontena
The kontena master requires a different approach. Here we run the newrelic/infrastructure:latest
image directly via kontena master ssh
with the appropriate parameters.
Set the following env variables before running this script:
$KONTENA_SSH_KEY: points to the ssh key file to login to kontena master
$NEWRELIC_LICENSE: contains the NewRelic license key for your project/organization
The master-deploy.sh
script will deploy newrelic-infra
to the kontena master node.
$ ./master-deploy.sh