# Compiled PMM2 client on ARM, Installed but can't find mysqld\_exporter

**URL:** <https://forums.percona.com/t/compiled-pmm2-client-on-arm-installed-but-cant-find-mysqld-exporter/21689>\
**Category:** PMM 2.x\
**Created:** [April 26, 2023, 5:16pm UTC](https://forums.percona.com/t/compiled-pmm2-client-on-arm-installed-but-cant-find-mysqld-exporter/21689 "2023-04-26T17:16:26Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashvin](https://avatars.discourse-cdn.com/v4/letter/a/ba8739/32.png) [@ashvin](https://forums.percona.com/u/ashvin)\
**Post date:** [April 26, 2023, 5:16pm UTC](https://forums.percona.com/t/compiled-pmm2-client-on-arm-installed-but-cant-find-mysqld-exporter/21689/1 "2023-04-26T17:16:26Z")

</div>

This is what pmm2-agent shows (pmm-agent --config-file=/data/pmm2/pmm-agent.yaml &)

/data/pmm2 is softlinked to /usr/local/percona/pmm2

It also sends some data to PMM server (MySQL service, slow queries), but not the client-host itself. No data in MySQL section / OS / InnoDB etc.,

Any pointers would be highly appreciated.

Thank you for your time!

```auto
INFO[2023-04-26T17:07:56.193+00:00] Process: waiting 26.719954408s. agentID=/agent_id/7cb63f96-3035-464f-9aab-b76e5843c068 component=agent-process type=vm_agent
INFO[2023-04-26T17:07:56.194+00:00] Sending status: WAITING (port 42000). agentID=/agent_id/7cb63f96-3035-464f-9aab-b76e5843c068 component=agent-process type=vm_agent
INFO[2023-04-26T17:08:00.132+00:00] Sending 4989 buckets. agentID=/agent_id/7175c76d-496c-42dd-8d1a-80d3a312592c component=agent-builtin type=qan_mysql_perfschema_agent
INFO[2023-04-26T17:08:10.285+00:00] Sending status: STARTING (port 42002). agentID=/agent_id/2eed3bac-870e-46ed-ae65-39a7a4ee10da component=agent-process type=mysqld_exporter
WARN[2023-04-26T17:08:10.285+00:00] Process: failed to start: fork/exec /usr/local/percona/pmm2/exporters/mysqld_exporter: no such file or directory. agentID=/agent_id/2eed3bac-870e-46ed-ae65-39a7a4ee10da component=agent-process type=mysqld_exporter
INFO[2023-04-26T17:08:10.286+00:00] Process: waiting 28.654842666s. agentID=/agent_id/2eed3bac-870e-46ed-ae65-39a7a4ee10da component=agent-process type=mysqld_exporter
INFO[2023-04-26T17:08:10.286+00:00] Sending status: WAITING (port 42002). agentID=/agent_id/2eed3bac-870e-46ed-ae65-39a7a4ee10da component=agent-process type=mysqld_exporter
INFO[2023-04-26T17:08:22.917+00:00] Sending status: STARTING (port 42000). agentID=/agent_id/7cb63f96-3035-464f-9aab-b76e5843c068 component=agent-process type=vm_agent
WARN[2023-04-26T17:08:22.917+00:00] Process: failed to start: fork/exec /usr/local/percona/pmm2/exporters/vmagent: no such file or directory. agentID=/agent_id/7cb63f96-3035-464f-9aab-b76e5843c068 component=agent-process type=vm_agent
INFO[2023-04-26T17:08:22.917+00:00] Process: waiting 29.023687109s. agentID=/agent_id/7cb63f96-3035-464f-9aab-b76e5843c068 component=agent-process type=vm_agent
INFO[2023-04-26T17:08:22.917+00:00] Sending status: WAITING (port 42000). agentID=/agent_id/7cb63f96-3035-464f-9aab-b76e5843c068 component=agent-process type=vm_agent
INFO[2023-04-26T17:08:38.949+00:00] Sending status: STARTING (port 42002). agentID=/agent_id/2eed3bac-870e-46ed-ae65-39a7a4ee10da component=agent-process type=mysqld_exporter
WARN[2023-04-26T17:08:38.949+00:00] Process: failed to start: fork/exec /usr/local/percona/pmm2/exporters/mysqld_exporter: no such file or directory. agentID=/agent_id/2eed3bac-870e-46ed-ae65-39a7a4ee10da component=agent-process type=mysqld_exporter
INFO[2023-04-26T17:08:38.949+00:00] Process: waiting 31.876425424s. agentID=/agent_id/2eed3bac-870e-46ed-ae65-39a7a4ee10da component=agent-process type=mysqld_exporter
INFO[2023-04-26T17:08:38.949+00:00] Sending status: WAITING (port 42002). agentID=/agent_id/2eed3bac-870e-46ed-ae65-39a7a4ee10da component=agent-process type=mysqld_exporter
INFO[2023-04-26T17:08:51.944+00:00] Sending status: STARTING (port 42000). agentID=/agent_id/7cb63f96-3035-464f-9aab-b76e5843c068 component=agent-process type=vm_agent
WARN[2023-04-26T17:08:51.944+00:00] Process: failed to start: fork/exec /usr/local/percona/pmm2/exporters/vmagent: no such file or directory. agentID=/agent_id/7cb63f96-3035-464f-9aab-b76e5843c068 component=agent-process type=vm_agent
INFO[2023-04-26T17:08:51.944+00:00] Process: waiting 30.752203807s. agentID=/agent_id/7cb63f96-3035-464f-9aab-b76e5843c068 component=agent-process type=vm_agent
INFO[2023-04-26T17:08:51.944+00:00] Sending status: WAITING (port 42000). agentID=/agent_id/7cb63f96-3035-464f-9aab-b76e5843c068 component=agent-process type=vm_agent
INFO[2023-04-26T17:09:00.141+00:00] Sending 4989 buckets. agentID=/agent_id/7175c76d-496c-42dd-8d1a-80d3a312592c component=agent-builtin type=qan_mysql_perfschema_agent
INFO[2023-04-26T17:09:10.840+00:00] Sending status: STARTING (port 42002). agentID=/agent_id/2eed3bac-870e-46ed-ae65-39a7a4ee10da component=agent-process type=mysqld_exporter
WARN[2023-04-26T17:09:10.840+00:00] Process: failed to start: fork/exec /usr/local/percona/pmm2/exporters/mysqld_exporter: no such file or directory. agentID=/agent_id/2eed3bac-870e-46ed-ae65-39a7a4ee10da component=agent-process type=mysqld_exporter
INFO[2023-04-26T17:09:10.841+00:00] Process: waiting 31.854132396s. agentID=/agent_id/2eed3bac-870e-46ed-ae65-39a7a4ee10da component=agent-process type=mysqld_exporter
INFO[2023-04-26T17:09:10.841+00:00] Sending status: WAITING (port 42002). agentID=/agent_id/2eed3bac-870e-46ed-ae65-39a7a4ee10da component=agent-process type=mysqld_exporter
INFO[2023-04-26T17:09:22.697+00:00] Sending status: STARTING (port 42000). agentID=/agent_id/7cb63f96-3035-464f-9aab-b76e5843c068 component=agent-process type=vm_agent
WARN[2023-04-26T17:09:22.698+00:00] Process: failed to start: fork/exec /usr/local/percona/pmm2/exporters/vmagent: no such file or directory. agentID=/agent_id/7cb63f96-3035-464f-9aab-b76e5843c068 component=agent-process type=vm_agent

```

---

<div class="post-metadata">

**Author:** ![ashvin](https://avatars.discourse-cdn.com/v4/letter/a/ba8739/32.png) [@ashvin](https://forums.percona.com/u/ashvin)\
**Post date:** [April 26, 2023, 5:22pm UTC](https://forums.percona.com/t/compiled-pmm2-client-on-arm-installed-but-cant-find-mysqld-exporter/21689/2 "2023-04-26T17:22:47Z")

</div>

Just to add, followed this guide to compile: [Steps to compile PMM v2 client on AWS EC2 ARM (github.com)](https://gist.github.com/guriandoro/897e0b8eadf1caaa6c4e4f0b6f132251)

node\_exporter compiled 18M (the only binary by node\_exporter) and no other support file was there.

PMM Server is installed via docker on 64bit CentOS as per single line command installation.

---

<div class="post-metadata">

**Author:** ![ashvin](https://avatars.discourse-cdn.com/v4/letter/a/ba8739/32.png) [@ashvin](https://forums.percona.com/u/ashvin)\
**Post date:** [April 26, 2023, 10:38pm UTC](https://forums.percona.com/t/compiled-pmm2-client-on-arm-installed-but-cant-find-mysqld-exporter/21689/3 "2023-04-26T22:38:59Z")

</div>

Anyone, can help …? Or atleast share which component owns these exporters, so I can focus on that direction.

Thanks once again.

---

<div class="post-metadata">

**Author:** ![matthewb](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/matthewb/32/34_2.png) [@matthewb](https://forums.percona.com/u/matthewb)\
**Post date:** [April 27, 2023, 1:02pm UTC](https://forums.percona.com/t/compiled-pmm2-client-on-arm-installed-but-cant-find-mysqld-exporter/21689/4 "2023-04-27T13:02:29Z")

</div>

It appears the gist you followed is incomplete. I did not see any steps to compile the mysqld\_exporter. You will need to compile the mysql exporter for ARM. Each \*\_exporter is its own binary that must be compiled for ARM. You should be able to expand the steps in the gist to include the mysqld\_exporter.

---

<div class="post-metadata">

**Author:** ![ashvin](https://avatars.discourse-cdn.com/v4/letter/a/ba8739/32.png) [@ashvin](https://forums.percona.com/u/ashvin)\
**Post date:** [April 27, 2023, 3:44pm UTC](https://forums.percona.com/t/compiled-pmm2-client-on-arm-installed-but-cant-find-mysqld-exporter/21689/5 "2023-04-27T15:44:45Z")

</div>

Can you share a command for the same?

---

<div class="post-metadata">

**Author:** ![ashvin](https://avatars.discourse-cdn.com/v4/letter/a/ba8739/32.png) [@ashvin](https://forums.percona.com/u/ashvin)\
**Post date:** [April 27, 2023, 3:50pm UTC](https://forums.percona.com/t/compiled-pmm2-client-on-arm-installed-but-cant-find-mysqld-exporter/21689/6 "2023-04-27T15:50:37Z")

</div>

Okay, my bad. Need to clone all repos and build them, got it! Thanks for your help!

---

<div class="post-metadata">

**Author:** ![ashvin](https://avatars.discourse-cdn.com/v4/letter/a/ba8739/32.png) [@ashvin](https://forums.percona.com/u/ashvin)\
**Post date:** [May 6, 2023, 2:00pm UTC](https://forums.percona.com/t/compiled-pmm2-client-on-arm-installed-but-cant-find-mysqld-exporter/21689/8 "2023-05-06T14:00:27Z")

</div>

As new PMM released, trying to build RPMs from source. But I am getting this error, any hints?

```auto
➜ /data rpmbuild --define 'dist .el9' --rebuild pmm2-client-2.37.0-6.src.rpm
Installing pmm2-client-2.37.0-6.src.rpm
warning: line 5: Possible unexpanded macro in: Version: %{version}
warning: line 6: Possible unexpanded macro in: Release: %{release}.el9
error: /home/ec2-user/rpmbuild/SPECS/pmm2-client.spec: line 11: Too many levels of recursion in macro expansion. It is likely caused by recursive macro declaration.

```

Just for reference, this is the OS

```auto
➜ /data uname -a
Linux ip-xxx.ec2.internal 5.14.0-299.el9.aarch64 #1 SMP PREEMPT_DYNAMIC Thu Apr 13 10:49:45 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux

```

Any hints would be much appreciated!
