# Customize APM agent to monitor whichever application I want

**URL:** <https://discuss.elastic.co/t/customize-apm-agent-to-monitor-whichever-application-i-want/330999>\
**Category:** APM\
**Tags:** php\
**Created:** [April 28, 2023, 3:42am UTC](https://discuss.elastic.co/t/customize-apm-agent-to-monitor-whichever-application-i-want/330999 "2023-04-28T03:42:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JasonREC](https://avatars.discourse-cdn.com/v4/letter/j/858c86/32.png) [@JasonREC](https://discuss.elastic.co/u/JasonREC)\
**Post date:** [April 28, 2023, 3:42am UTC](https://discuss.elastic.co/t/customize-apm-agent-to-monitor-whichever-application-i-want/330999/1 "2023-04-28T03:42:53Z")

</div>

Hi all,

I currenly have a server that runs 3 PHP application, and when I installed the PHP elastic agent extension without changing my PHP source code, its already automatically montiored all of my PHP app and sent the transaction info regarding to those 3 application to the APM server. And, that make sense to me, since extension is automacally started when the PHP runtime is running. **But I only want to monitor 1 of my php applcation and disable the other 2.**

I saw in the offical document there are 2 ways which can help me kind of achieve what I want, they are `disable_send` and `transaction_ignore_urls` , but both way need to set up in the elastic configuration file, which makes me have to restart my php-fpm process.

I wonder if there is a way to disable elastic apm agent on a per-application basis, like I can actually control if I want the agent send the transaction to APM server or not in my php source code.

Thank you

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 18, 2023, 11:42pm UTC](https://discuss.elastic.co/t/customize-apm-agent-to-monitor-whichever-application-i-want/330999/2 "2023-05-18T23:42:58Z")

</div>

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.
