# Remove node exporter from pmm-agent ( pmm2 )

**URL:** <https://forums.percona.com/t/remove-node-exporter-from-pmm-agent-pmm2/7915>\
**Category:** PMM 2.x\
**Created:** [August 17, 2020, 1:47am UTC](https://forums.percona.com/t/remove-node-exporter-from-pmm-agent-pmm2/7915 "2020-08-17T01:47:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Blackmetalz](https://avatars.discourse-cdn.com/v4/letter/b/d6d6ee/32.png) [@Blackmetalz](https://forums.percona.com/u/Blackmetalz)\
**Post date:** [August 17, 2020, 1:47am UTC](https://forums.percona.com/t/remove-node-exporter-from-pmm-agent-pmm2/7915/1 "2020-08-17T01:47:00Z")

</div>

Hi, is there any way to remove node exporter from pmm-agent. I have a lot of app that does the same as node exporter did. I only want pmm-agent use MySQL exporter to monitor MySQL service.  
Best regards!

---

<div class="post-metadata">

**Author:** ![Vadim\_Yalovets](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/vadim_yalovets/32/43_2.png) [@Vadim\_Yalovets](https://forums.percona.com/u/Vadim_Yalovets)\
**Post date:** [August 17, 2020, 9:25am UTC](https://forums.percona.com/t/remove-node-exporter-from-pmm-agent-pmm2/7915/2 "2020-08-17T09:25:52Z")

</div>

Hi,  
There are no official ways to disable a node\_exporter. It’s added for monitoring during running pmm-client configuration procedure.  
But you may set a fake path to node\_exporter in the pmm configuration file. So it will not be start by pmm-agent.  
Please notice that it’s required to stop pmm-agent service before changing the path. Otherwise pmm-agent wouldn’t be able to stop an already running node\_exporter.

 ![](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/1X/0c4b99e83f957ddc12100286bc0fdd4a26ee1494.png "Image: /uploads/percona1/original/1X/0c4b99e83f957ddc12100286bc0fdd4a26ee1494.png")

---

<div class="post-metadata">

**Author:** ![Blackmetalz](https://avatars.discourse-cdn.com/v4/letter/b/d6d6ee/32.png) [@Blackmetalz](https://forums.percona.com/u/Blackmetalz)\
**Post date:** [August 17, 2020, 10:04pm UTC](https://forums.percona.com/t/remove-node-exporter-from-pmm-agent-pmm2/7915/3 "2020-08-17T22:04:45Z")

</div>

Yes yes, thank you for the solution. \<3

---

<div class="post-metadata">

**Author:** ![beresnev.nh](https://avatars.discourse-cdn.com/v4/letter/b/2acd7d/32.png) [@beresnev.nh](https://forums.percona.com/u/beresnev.nh)\
**Post date:** [August 29, 2022, 3:41pm UTC](https://forums.percona.com/t/remove-node-exporter-from-pmm-agent-pmm2/7915/4 "2022-08-29T15:41:49Z")

</div>

Use swagger API:

> **[API - Percona Monitoring and Management](https://docs.percona.com/percona-monitoring-and-management/details/api.html)**
>
> Documentation

```nohighlight
# run on pmm-agent node

$ pmm-admin list --json | jq '.agent | .[] | select(.agent_type == "NODE_EXPORTER" and .status != "DONE" and .disabled != true) | .agent_id' | tr -d '"'
/agent_id/ffff-0xdeadbeef

$ curl -X 'POST' \
  -u admin:admin \
  'https://<pmm-server-address>/v1/inventory/Agents/ChangeNodeExporter' \
  -H 'accept: application/json' \
  -k \
  -H 'Content-Type: application/json' \
  -d '{
    "agent_id": "/agent_id/ffff-0xdeadbeef",
    "common": {
      "disable": true
    }
  }'

```
