dockerized newrelic-plugin-agent with auto discovery
100K+
This repository contains Dockerfile of newrelic-plugin-agent for Docker's automated build published to the public Docker Hub Registry.
It will monitor instances of services supported by newrelic-plugin-agent that were configured by the user or will try to automatically monitor supported instances running inside docker containers on the same machine.
Install Docker.
Download automated build from public Docker Hub Registry: docker pull gici/newrelic-plugin-agent-docker
(alternatively, you can build an image from Dockerfile: docker build -t="gici/newrelic-plugin-agent-docker" github.com/devsenexx/newrelic-plugin-agent-docker)
docker run -d --net=host -v /var/run/docker.sock:/var/run/docker.sock:ro -e NEWRELIC_KEY="YOUR_KEY" gici/newrelic-plugin-agent-docker
automatic service discovery is done in the following order:
search for images tagged with "com.newrelic.plugin" and check if there's a default backend by that name
search for containers that are named like one of the default backends
Create a mountable data directory <data-dir> on the host.
Create a backend configuration file at <backends-dir>/<backend_name>.yml.
for example, create an elasticsearch configuration file at <backends-dir>/elasticsearch.yml:
name: my-elasticsearch-cluster
host: localhost
port: 9200
scheme: http
docker run -d --net=host -v /var/run/docker.sock:/var/run/docker.sock:ro -v <backends-dir>/backends:/etc/newrelic/backends -e NEWRELIC_KEY="YOUR_KEY" gici/newrelic-plugin-agent-docker
Content type
Image
Digest
Size
175.2 MB
Last updated
over 9 years ago
docker pull gici/newrelic-plugin-agent-docker