18 Apr 2022
05:47 AM
- last edited on
20 Apr 2022
01:24 AM
by
MaciejNeumann
Hello.
I have installed several oneagents in infraonly =TRUE and set-auto-injection-enabled=false.
But now I need to see metrics of the processes running on these hosts.
I have tried to change the configuration via UI and API; but the only way to change it is through oneagentctl?
Am I doing something wrong? or is it an error in the documentation?
Thanks in advance
BR
Jose A
Solved! Go to Solution.
18 Apr 2022
08:29 AM
- last edited on
19 Apr 2022
03:17 AM
by
andre_vdveen
To change the deep monitoring configuration you can use
Just note, that application processes to be deep monitored must be restarted after the change is applied.
Thanks Julio.
That's right, there are 3 way to do it.
But what happens is this:
I installed oneagent using the command line:
bin/sh Dynatrace-OneAgent-Linux.sh --set-infra-only=true --set-auto-injection-enabled=false
and now i´m trying to deepen monitoring. Using UI or API ways i see same result:
Activation of deep monitoring was unsuccessful OneAgent auto-injection was manually disabled on this host |
I think if I enable deep-monitoring via commandline, the only way to changeit is using the command line: oneagentctl
I hope I have clarified my situation
@JAR ok, I finally understand your question now.
There are two settings here:
The auto-injection is your issue here. The local setting on OneAgent using installation or oneagentctl has precedence over the setting that the OneAgent receives from Dynatrace server. It also shows you that in the UI:
You should not disable auto-injection unless it's really required for some reason. More on that in the docs.
So in your situation, you need to apply the oneagentctl command on the hosts to enable process injection. Switching to full-stack monitoring (which indeed requires injection) can be then achieved from the UI or API.