# Combining services or Process groups for Apache Web Server\*

**URL:** <https://community.dynatrace.com/t/combining-services-or-process-groups-for-apache-web-server/53684>\
**Category:** Open Q&A\
**Tags:** distributed-tracing, services, oneagent, processes\
**Created:** [October 10, 2025, 9:09am UTC](https://community.dynatrace.com/t/combining-services-or-process-groups-for-apache-web-server/53684 "2025-10-10T09:09:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vikascsb](https://avatars.discourse-cdn.com/v4/letter/v/e5b9ba/32.png) [@vikascsb](https://community.dynatrace.com/u/vikascsb)\
**Post date:** [October 10, 2025, 9:09am UTC](https://community.dynatrace.com/t/combining-services-or-process-groups-for-apache-web-server/53684/1 "2025-10-10T09:09:00Z")

</div>

Hi Team,

We are observing **duplicate services** in Dynatrace that appear to be the **same service but running on different port numbers**.

We attempted to **combine them using Advanced Process Group Detection Rules** , considering that the processes have the **same executable** , but it didn’t work as expected.

Could anyone please help us understand how we can **merge or group these services** effectively? An example or guidance would be highly appreciated.

 ![vikascsb_0-1760087230772.png](https://global.discourse-cdn.com/dynatrace/original/2X/3/3e6bc57f88e5f9f898358b6d77161a4a41a26f68.png)

 ![vikascsb_1-1760087256161.png](https://global.discourse-cdn.com/dynatrace/original/3X/3/0/304ba96daf7b060d98b8a710c2be24c237dcea9d.png)

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [October 10, 2025, 11:01am UTC](https://community.dynatrace.com/t/combining-services-or-process-groups-for-apache-web-server/53684/2 "2025-10-10T11:01:31Z")

</div>

Hi,

I would use [Declarative process grouping](https://docs.dynatrace.com/docs/shortlink/declarative-grouping).

Best regards

---

<div class="post-metadata">

**Author:** ![t\_pawlak](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/t_pawlak/32/14991_2.png) [@t\_pawlak](https://community.dynatrace.com/u/t_pawlak)\
**Post date:** [October 10, 2025, 12:30pm UTC](https://community.dynatrace.com/t/combining-services-or-process-groups-for-apache-web-server/53684/3 "2025-10-10T12:30:21Z")

</div>

You need to distinguish between Process Groups (PGs) and Services in Dynatrace:

- Process Group (PG) → relates to processes (e.g., Apache httpd). You can merge them with grouping rules.
- Service → relates to entry points (e.g., port 80, 443). Dynatrace will always split these per port; you cannot fully merge them into one.

So: you can’t merge them into a single Service, but you can merge them into one Process Group – using Declarative Process Grouping or Advanced Detection Rules.

### How to do it for Apache:

1. Go to Settings → Processes and containers → Declarative process grouping.
2. Click Add monitored technology and select Apache HTTP Server.
3. Add a Process Group with a custom identifier (e.g., Apache-UPI).
4. Add a detection rule, for example:
  - Executable path → $contains(httpd)
  - or Command line args → $contains(/opt/Apache24/bin/httpd)

5. Save changes and restart Apache so OneAgent can reassign the processes.

Result: all Apache processes (regardless of port) will belong to one Process Group, letting you consolidate metrics (CPU, memory, I/O, process count, etc.).

### Alternative: Advanced Process Group Detection

- In Settings → Processes and containers → Advanced detection rules, you can create a rule like:  
_“Any process with EXE path /opt/Apache24/bin/httpd + Host Group UPI belongs to the same group.”_
- This provides more flexibility, for example separating environments (test vs. prod) using tags or environment variables.

Services will still be listed separately for each port (80, 443, etc.) – this cannot be changed.

But with Process Grouping you can:

Have one Apache process group instead of several,

Aggregate metrics globally,

Simplify dashboards and alerts.

---

<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:** [October 26, 2025, 3:05pm UTC](https://community.dynatrace.com/t/combining-services-or-process-groups-for-apache-web-server/53684/4 "2025-10-26T15:05:05Z")

</div>

Services can be “merged” by creating your own service detection rules, see&nbsp;[Configure service detection rules in Service Detection v1 — Dynatrace Docs](https://docs.dynatrace.com/docs/shortlink/rule-based-service-detection)  
Keep in mind that only services within the same process group can be “merged”. If those Apache processes are not part of a single process group, you need to follow the steps by&nbsp;[@t\_pawlak](https://community.dynatrace.com/user/42367)&nbsp;.
