# New container needs restart contained process to enable oneagent monitoring

**URL:** <https://community.dynatrace.com/t/new-container-needs-restart-contained-process-to-enable-oneagent-monitoring/31101>\
**Category:** Container platforms\
**Tags:** oneagent, kubernetes\
**Created:** [April 13, 2021, 7:37am UTC](https://community.dynatrace.com/t/new-container-needs-restart-contained-process-to-enable-oneagent-monitoring/31101 "2021-04-13T07:37:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![henk\_stobbe](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/henk_stobbe/32/30434_2.png) [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Post date:** [April 13, 2021, 7:37am UTC](https://community.dynatrace.com/t/new-container-needs-restart-contained-process-to-enable-oneagent-monitoring/31101/1 "2021-04-13T07:37:30Z")

</div>

Hello,

It seems that a new (Docker) container within a cluster needs a restart to enable oneAgent to inject.

 ![henk_stobbe_0-1618299233218.png](https://global.discourse-cdn.com/dynatrace/original/3X/4/4/4471930ba4686a5f19326f0a79d401e52df2fdd0.png)

(it is dynamically linked (-; so no worries there)

An explanation is that the Go process is started before the OneAgent.

Does anybody have a remedy for this?

In my situation the OneAgent is installed on the OS,

KR Henk

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [April 13, 2021, 10:15am UTC](https://community.dynatrace.com/t/new-container-needs-restart-contained-process-to-enable-oneagent-monitoring/31101/2 "2021-04-13T10:15:06Z")

</div>

This is just a node exporter for Prometheus. Do you really need to instrument it?

---

<div class="post-metadata">

**Author:** ![henk\_stobbe](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/henk_stobbe/32/30434_2.png) [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Post date:** [April 14, 2021, 7:23am UTC](https://community.dynatrace.com/t/new-container-needs-restart-contained-process-to-enable-oneagent-monitoring/31101/3 "2021-04-14T07:23:42Z")

</div>

Hi Julius,

Short answer is no, on most instances this is turned off (-; but I am puzzled about the why, I was assuming that processes within new containers will be automatically monitored, when the Agent is installed. But in this scenario it looks like the exporter is started before the agent initialization?

Thanks for your reply,

KR Henk

KR Henk
