Newrelic does not display CPU and memory usage for Docker container

I am trying to install the new Relic Servers for Linux on my local vagrant computer running CentOS 7.2.1 with Docker 1.11.0 installed. I’m following the step to enable Linux for Docker servers, all running containers are shown on the New Relic Server page, but the CPU and memory usage is empty. I also follow the guide to enable memory usage metrics, but still no luck ( https://docs.newrelic.com/docs/servers/new-relic-servers-linux/installation-configuration/enabling-new-relic-servers -docker # enable-memory-usage ).

enter image description here

Am I missing something? Any clue on why it is not working?

+5
source share
1 answer

I managed to get help from the New Relic Support Engineer. They found that Docker 1.10+ is not compatible with LSM.

Temporary workaround:

  • Open the file /etc/newrelic/nrsysmond.cfg
  • Add the line cgroup_style=0
  • Save the file, and then restart LSM:

    sudo /etc/init.d/newrelic-sysmond restart

Wait a few minutes, you will see that Docker indicators are being reported.

But keep in mind that this is an undocumented and untested workaround.

Link discussion: https://discuss.newrelic.com/t/wrong-path-to-cpu-and-memoy-data/36177

+10
source

Source: https://habr.com/ru/post/1247690/


All Articles