Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now

Newrelic Infrastructure: Monitor Docker and Containers using Newrelic Infrastructure

Newrelic Infrastructure: Monitor Docker and Containers using Newrelic Infrastructure.

  • Group containers by tags, attributes, and other metadata.
  • Search for containers relevant to your monitoring scenario.
  • Link to related entities that may be affected by issues with the container.
  • Set Docker-related alert conditions.

Requirements & prerequisite

  • Infrastructure agent 1.8.32 or higher running on Linux
  • If using CentOS: must have CentOS version 6.0 or higher
  • Docker version 1.12 or higher

How to Install, Enable and Start Docker Engine in Centos

How to Install, Enable and Start Docker Engine in Ubuntu

How to Enable Docker container monitoring in Newrelic agent?

If you meet the requirements and have installed the correct infrastructure agent, there are no additional steps to enable Docker monitoring. If Docker is running, data will automatically be reported.

Enabled Process Monitoring in Newrelic Infra Agent & Restart Agent


You can view your Docker data in the Infrastructure monitoring UI in either of these ways:

  • Go to one.newrelic.com > Infrastructure > Hosts > Containers. OR
  • Go to one.newrelic.com > Infrastructure > Third-party services, and select Docker-related links.

Which are the Docker attributes reported by Newrelic?

Docker attributes (metrics and metadata) are attached to the “ContainerSample” event. Here’s an example of a query to find out how many containers are associated with each Docker image:

$ SELECT uniqueCount(containerId) FROM ContainerSample FACET imageName SINCE 1 HOUR AGO TIMESERIES

Sample Docker Commands to run Containers for monitoring?

$ docker run -d --name jenkins1 jenkins
$ docker run -itd --name ubuntu1 ubuntu
$ docker run -d --name sonarqube1 sonarqube
$ docker run -itd --name ubuntu2 ubuntu
$ docker run -itd --name ubuntu23 ubuntu

NewRelic Docker Containers Events Data

Rajesh Kumar
Follow me