# Metric for the number of TCP connections per process

**URL:** <https://community.dynatrace.com/t/metric-for-the-number-of-tcp-connections-per-process/38599>\
**Category:** Alerting\
**Tags:** problem-detection, anomaly-detection, problems-classic\
**Created:** [February 26, 2023, 1:22pm UTC](https://community.dynatrace.com/t/metric-for-the-number-of-tcp-connections-per-process/38599 "2023-02-26T13:22:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jimmy](https://avatars.discourse-cdn.com/v4/letter/j/ee59a6/32.png) [@jimmy](https://community.dynatrace.com/u/jimmy)\
**Post date:** [February 26, 2023, 1:22pm UTC](https://community.dynatrace.com/t/metric-for-the-number-of-tcp-connections-per-process/38599/1 "2023-02-26T13:22:45Z")

</div>

Hello, we are looking to have the number of TCP connections on a particular process in order to put an alert when it exceeds the number of user connections For example On port 2020 the process has a connection limit of 500 people Is there an industrial way to put an alert on Dynatrace

Regards

---

<div class="post-metadata">

**Author:** ![pahofmann](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pahofmann/32/17076_2.png) [@pahofmann](https://community.dynatrace.com/u/pahofmann)\
**Post date:** [February 27, 2023, 10:20am UTC](https://community.dynatrace.com/t/metric-for-the-number-of-tcp-connections-per-process/38599/2 "2023-02-27T10:20:52Z")

</div>

There is no metric for this out of the box. You can&nbsp;[use a custom OneAgent Extension](https://www.dynatrace.com/support/help/extend-dynatrace/extensions/oneagent-extensions/oneagent-extensions-hands-on)&nbsp;to add the metric and specify thresholds.
