# PMM did not show any stats for my nodes ?  why?

**URL:** <https://forums.percona.com/t/pmm-did-not-show-any-stats-for-my-nodes-why/7944>\
**Category:** PMM 2.x\
**Created:** [August 25, 2020, 3:24am UTC](https://forums.percona.com/t/pmm-did-not-show-any-stats-for-my-nodes-why/7944 "2020-08-25T03:24:55Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![lokesh123](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/lokesh123/32/5519_2.png) [@lokesh123](https://forums.percona.com/u/lokesh123)\
**Post date:** [August 25, 2020, 3:24am UTC](https://forums.percona.com/t/pmm-did-not-show-any-stats-for-my-nodes-why/7944/1 "2020-08-25T03:24:55Z")

</div>

![]()

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

---

<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 25, 2020, 4:22am UTC](https://forums.percona.com/t/pmm-did-not-show-any-stats-for-my-nodes-why/7944/2 "2020-08-25T04:22:38Z")

</div>

Hi,  
Could you provide an output of the next command?  
\> pmm-admin status  
Also please check states of Prometheus targets.  
https://\<PMM-server\>/prometheus/targets

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

---

<div class="post-metadata">

**Author:** ![lokesh123](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/lokesh123/32/5519_2.png) [@lokesh123](https://forums.percona.com/u/lokesh123)\
**Post date:** [August 25, 2020, 5:11am UTC](https://forums.percona.com/t/pmm-did-not-show-any-stats-for-my-nodes-why/7944/3 "2020-08-25T05:11:32Z")

</div>

root@localhost bin]# pmm-admin status  
Agent ID: /agent\_id/74cb9920-48ac-466c-a11b-db76d1e981ce  
Node ID : /node\_id/bf56e2e5-ec35-483a-9325-1aeb5585c8b1  
  
PMM Server:  
&nbsp;&nbsp;&nbsp; URL&nbsp;&nbsp;&nbsp; : [https://192.168.0.11:443/](https://192.168.0.11:443/)  
&nbsp;&nbsp;&nbsp; Version: 2.9.1  
  
PMM Client:  
&nbsp;&nbsp;&nbsp; Connected&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : true  
&nbsp;&nbsp;&nbsp; Time drift&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : -106.125228ms  
&nbsp;&nbsp;&nbsp; Latency&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : 422.421µs  
&nbsp;&nbsp;&nbsp; pmm-admin version: 2.9.1  
&nbsp;&nbsp;&nbsp; pmm-agent version: 2.9.1  
Agents:  
&nbsp;&nbsp;&nbsp; /agent\_id/3b119b83-c617-4e4d-a863-a181126c5a36 mysql\_slowlog\_agent Waiting  
&nbsp;&nbsp;&nbsp; /agent\_id/436d2cba-7748-4812-9d6f-8f5ad30d6205 mysqld\_exporter Running  
&nbsp;&nbsp;&nbsp; /agent\_id/574a892b-ec33-479a-81b0-e8922a59110f mysqld\_exporter Running  
&nbsp;&nbsp;&nbsp; /agent\_id/8b208991-4aa1-474b-89c1-010ca4ef458b mysql\_slowlog\_agent Waiting  
&nbsp;&nbsp;&nbsp; /agent\_id/f2d86cfa-f922-4d53-9ea0-474c5427539e node\_exporter Running

---

<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 25, 2020, 9:09am UTC](https://forums.percona.com/t/pmm-did-not-show-any-stats-for-my-nodes-why/7944/4 "2020-08-25T09:09:21Z")

</div>

Have you got any errors in Prometheus for targets?

---

<div class="post-metadata">

**Author:** ![lokesh123](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/lokesh123/32/5519_2.png) [@lokesh123](https://forums.percona.com/u/lokesh123)\
**Post date:** [August 26, 2020, 2:07am UTC](https://forums.percona.com/t/pmm-did-not-show-any-stats-for-my-nodes-why/7944/5 "2020-08-26T02:07:32Z")

</div>

yes, Status shows down for the node?

---

<div class="post-metadata">

**Author:** ![lokesh123](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/lokesh123/32/5519_2.png) [@lokesh123](https://forums.percona.com/u/lokesh123)\
**Post date:** [August 26, 2020, 2:41am UTC](https://forums.percona.com/t/pmm-did-not-show-any-stats-for-my-nodes-why/7944/6 "2020-08-26T02:41:40Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![lokesh123](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/lokesh123/32/5519_2.png) [@lokesh123](https://forums.percona.com/u/lokesh123)\
**Post date:** [August 26, 2020, 12:39pm UTC](https://forums.percona.com/t/pmm-did-not-show-any-stats-for-my-nodes-why/7944/7 "2020-08-26T12:39:56Z")

</div>

[adivinho](https://forums.percona.com/profile/adivinho "Link: https://forums.percona.com/profile/adivinho")

How to resolve it ?  
&nbsp;

---

<div class="post-metadata">

**Author:** ![steve.hoffman](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/steve.hoffman/32/66_2.png) [@steve.hoffman](https://forums.percona.com/u/steve.hoffman)\
**Post date:** [August 26, 2020, 1:44pm UTC](https://forums.percona.com/t/pmm-did-not-show-any-stats-for-my-nodes-why/7944/8 "2020-08-26T13:44:34Z")

</div>

the node was added with a positional element as “node” which is not resolving in your DNS.&nbsp; Can you post the command you used to connect the client to the server?&nbsp; It would appear the command would be something along the lines of:  
pmm-admin config --server-insecure-tls --server-url=[https://username:password@pmm-server/](https://username:password@pmm-server/) node  
the presence of that “node” at the end of the line actually overwrites the auto-detected node-address (typically the first IP found on the system) with whatever you put and if it’s a name vs IP will attempt to resolve that name to reach back out to the client that needs to be monitored.&nbsp; use ‘pmm-admin config --help’ to see the options as well as the auto-detected defaults we’d use for the positional elements.  
  
easiest way to clean it up is to use the PMM Settings page –\> PMM Inventory and force delete the node from the server and re-configure from the client (‘pmm-admin config’ as well as ‘pmm-admin add’)

---

<div class="post-metadata">

**Author:** ![lokesh123](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/lokesh123/32/5519_2.png) [@lokesh123](https://forums.percona.com/u/lokesh123)\
**Post date:** [August 26, 2020, 3:22pm UTC](https://forums.percona.com/t/pmm-did-not-show-any-stats-for-my-nodes-why/7944/9 "2020-08-26T15:22:45Z")

</div>

pmm-admin config --server-insecure-tls --server-url=[https://admin:lokesh123@192.168.0.11/](https://admin:lokesh123@192.168.0.11/) node --force

---

<div class="post-metadata">

**Author:** ![lokesh123](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/lokesh123/32/5519_2.png) [@lokesh123](https://forums.percona.com/u/lokesh123)\
**Post date:** [August 26, 2020, 3:25pm UTC](https://forums.percona.com/t/pmm-did-not-show-any-stats-for-my-nodes-why/7944/10 "2020-08-26T15:25:25Z")

</div>

still no data shows on graph for node???  
  
  
Checking local pmm-agent status…  
pmm-agent is running.  
Registering pmm-agent on PMM Server…  
Registered.  
Configuration file /usr/local/percona/pmm2/config/pmm-agent.yaml updated.  
Reloading pmm-agent configuration…  
Configuration reloaded.  
Checking local pmm-agent status…  
pmm-agent is running.

---

<div class="post-metadata">

**Author:** ![steve.hoffman](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/steve.hoffman/32/66_2.png) [@steve.hoffman](https://forums.percona.com/u/steve.hoffman)\
**Post date:** [August 26, 2020, 5:08pm UTC](https://forums.percona.com/t/pmm-did-not-show-any-stats-for-my-nodes-why/7944/11 "2020-08-26T17:08:43Z")

</div>

are you trying to name the endpoint “node” so it displays that way in PMM?&nbsp;&nbsp;  
Give this a shot:  
Remove the node from pmm-server using the UI’s inventory page (PMM –\> PMM Inventory, click on Nodes tab, check the box next to your “node” node and delete, use the “force” mode checkbox to ensure all services and agennts are removed as well)  
Re-register the node from the PMM server using the following format:  
pmm-admin config&nbsp;–server-insecure-tls --server-url=`https://admin:lokesh123@192.168.0.11/&nbsp;&lt;ip address of host*> generic <whatever you want to show up as the friendly name>`  
\*you can also use fully qualified domain name that your pmm server can resolve with DNS  
That will register the PMM client to the server but in order for the server to actually pull stats it needs to be able to make a TCP connection back to the client.&nbsp; So far you’ve only enabled the node exporter which after about 60 seconds will populate the system stats on the main page, you can next add a DB exporter (pmm-admin add mysql --help) and it will then start gathering mysql metrics.&nbsp; if it’s still not working see if there’s any errors on [https://192.168.0.11/prometheus/targets](https://192.168.0.11/prometheus/targets) and post.&nbsp;&nbsp;

---

<div class="post-metadata">

**Author:** ![lokesh123](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/lokesh123/32/5519_2.png) [@lokesh123](https://forums.percona.com/u/lokesh123)\
**Post date:** [September 1, 2020, 3:21am UTC](https://forums.percona.com/t/pmm-did-not-show-any-stats-for-my-nodes-why/7944/12 "2020-09-01T03:21:16Z")

</div>

Thanks @[steve.hoffman](https://forums.percona.com/profile/steve.hoffman)
