# Monitor the OneAgent process with CPU and memory limits

**URL:** <https://community.dynatrace.com/t/monitor-the-oneagent-process-with-cpu-and-memory-limits/38880>\
**Category:** Alerting\
**Tags:** problem-detection, self-monitoring, threshold, oneagent\
**Created:** [March 17, 2023, 1:09pm UTC](https://community.dynatrace.com/t/monitor-the-oneagent-process-with-cpu-and-memory-limits/38880 "2023-03-17T13:09:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ardhi](https://avatars.discourse-cdn.com/v4/letter/a/e99b99/32.png) [@Ardhi](https://community.dynatrace.com/u/Ardhi)\
**Post date:** [March 17, 2023, 1:09pm UTC](https://community.dynatrace.com/t/monitor-the-oneagent-process-with-cpu-and-memory-limits/38880/1 "2023-03-17T13:09:34Z")

</div>

Hi,

We want to monitor OneAgent process to below certain limit of CPU and memory, based on this thread:&nbsp;[https://community.dynatrace.com/t5/Dynatrace-Open-Q-A/Hardware-resource-consumption-of-OneAgent/m-p/71104](https://community.dynatrace.com/post/71104)&nbsp;so we want to set the limit below 10% of CPU and memory consumption on the server for OA process.

Then we need to set up alerts if the consumption of OneAgent is above the limit. Is it possible?  
I think it’s also applicable for other kind of processes.  
Thanks

---

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [March 17, 2023, 8:46pm UTC](https://community.dynatrace.com/t/monitor-the-oneagent-process-with-cpu-and-memory-limits/38880/2 "2023-03-17T20:46:01Z")

</div>

You can do that through a Metric Event, as shown below. But I wouldn’t waste my time monitoring OneAgent, as I have never ever seen OneAgent not even near 10%. You are right, you might want to do it for other processes.

 ![AntonioSousa_1-1679085859477.png](https://global.discourse-cdn.com/dynatrace/original/3X/a/d/ad6c3352b48232015906ee6d4ce086acd6ac24e0.png)
