Docker instrumentation for Infrastructure

Our infrastructure agent automatically monitors your Docker containers. With Docker monitoring you can:

  • 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.

You can alternatively use a Docker image containing the infrastructure agent, see Docker container for infrastructure monitoring.


Requirement details for automatic Docker container monitoring for the New Relic's infrastructure agent:

  • 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

Enable Docker container monitoring

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.

Alternatively, you can use a Docker image that contains the infrastructure agent, see Infrastructure CoreOS Docker container.

Find your Docker data

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

  • Go to > Infrastructure > Hosts > Containers.


  • Go to > Infrastructure > Third-party services, and select Docker-related links.

Docker attributes

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

For information on how to explore and query data, see Query your data.

To see all ContainerSample attributes, see our data dictionary. Attributes include:

  • General metadata (like containerId, name, and image)
  • CPU metrics (like cpuUsedCores, cpuPercent, and cpuThrottleTimeMs)
  • Memory metrics (like memoryUsageBytes, memoryCacheBytes, and memoryResidentSizeBytes)
  • Network metrics (like networkRxBytes, networkRxDropped, and networkTxBytes)

The reported data does not include information related to the container orchestrator (for example, ECS or Kubernetes). To monitor those, you can add the orchestrator's cluster and task names as labels.

Docker metrics are also attached to the ProcessSample event.

Set alert conditions

To create Docker-related alert conditions:

  • From > Alerts & AI, start to create a new alert condition. For the condition type, select Container metrics.


  • From > Infrastructure​​​​, select Settings, and then Alerts. Start to create a new alert condition. For the condition type, select Container metrics.

For more help

If you need more help, check out these support and learning resources: