# OneAgent auto-injection in Infrastructure Monitoring mode is disabled

**URL:** <https://community.dynatrace.com/t/oneagent-auto-injection-in-infrastructure-monitoring-mode-is-disabled/42718>\
**Category:** Troubleshooting\
**Tags:** application-security, appsec-vulnerabilities, oneagent, infrastructure-monitoring\
**Created:** [November 27, 2023, 12:58pm UTC](https://community.dynatrace.com/t/oneagent-auto-injection-in-infrastructure-monitoring-mode-is-disabled/42718 "2023-11-27T12:58:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![TeoMoldovanu](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/teomoldovanu/32/38331_2.png) [@TeoMoldovanu](https://community.dynatrace.com/u/TeoMoldovanu)\
**Post date:** [November 27, 2023, 12:58pm UTC](https://community.dynatrace.com/t/oneagent-auto-injection-in-infrastructure-monitoring-mode-is-disabled/42718/1 "2023-11-27T12:58:06Z")

</div>

OneAgent in Infrastructure Monitoring mode automatically injects into processes to be able to monitor backing services written in Java and runtime metrics for supported languages. If the auto-injection is disabled for individual hosts, related vulnerabilities can’t be assessed.

To enable auto-injection in Infrastructure Monitoring mode, you need to enable runtime metrics.

To enable runtime metrics

1. From the&nbsp;[Dynatrace menu](https://docs.dynatrace.com/docs/get-started/dynatrace-ui#menu), select&nbsp; **Settings** &nbsp;\>&nbsp; **Monitoring** &nbsp;\>&nbsp; **Monitored technologies**.
2. In the list of supported technologies, search for the&nbsp; **Java/.NET/Node.js/Golang/PHP runtime metrics + WebServer metrics in Infrastructure Mode** &nbsp;entry.
3. Select the pencil icon to edit it and then enable it.
4. Restart all processes on your infrastructure-monitored hosts.

For details, see&nbsp;[Process injection in Infrastructure Monitoring mode](https://docs.dynatrace.com/docs/platform-modules/infrastructure-monitoring/hosts/basic-concepts/get-started-with-infrastructure-monitoring#process-injection).
