# PMM2 linux metrics only

**URL:** https://forums.percona.com/t/pmm2-linux-metrics-only/7210
**Category:** PMM 2.x
**Created:** [September 20, 2019, 8:15am UTC](https://forums.percona.com/t/pmm2-linux-metrics-only/7210 "2019-09-20T08:15:27Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![magenbrot](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/magenbrot/32/1030_2.png) [@magenbrot](https://forums.percona.com/u/magenbrot)
#### Post date: [September 20, 2019, 8:15am UTC](https://forums.percona.com/t/pmm2-linux-metrics-only/7210/1 "2019-09-20T08:15:27Z")

</div>

Hi,

first a big thank you to the percona stuff. I love PMM!

Now to my problem/question. According to this [url][https://www.percona.com/doc/percona-monitoring-and-management/2.x/manage/client-linux-metrics.html[/url]](https://www.percona.com/doc/percona-monitoring-and-management/2.x/manage/client-linux-metrics.html%5B/url%5D) I just have to configure pmm-admin (I’ve uninstalled the old client and installed the pmm2-client package) to have linux metrics in the GUI. I did that with a few hosts where I only need linux metrics and where’s no mysql or mongodb running, but they don’t show up in the GUI. Did I miss something?

best regards  
Oliver

---

<div class="post-metadata">

### Author: ![Peter](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/peter/32/2_2.png) [@Peter](https://forums.percona.com/u/Peter)
#### Post date: [September 20, 2019, 8:19am UTC](https://forums.percona.com/t/pmm2-linux-metrics-only/7210/2 "2019-09-20T08:19:59Z")

</div>

In PMM2 you do not need to add Linux specifically. When you register host with PMM Server it will automatically start System (node) level monitoring.

If it does not something is wrong 🙂

---

<div class="post-metadata">

### Author: ![magenbrot](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/magenbrot/32/1030_2.png) [@magenbrot](https://forums.percona.com/u/magenbrot)
#### Post date: [September 20, 2019, 3:11pm UTC](https://forums.percona.com/t/pmm2-linux-metrics-only/7210/3 "2019-09-20T15:11:42Z")

</div>

hm, ok, then there’s something wrong 😉

Where can I start debugging? pmm-admin says the status is fine:

```auto
Agent ID: /agent_id/d6b75d41-3b68-4eb4-840f-6dc45f188e2d
Node ID : /node_id/9427049b-47e0-43de-a44d-db7d336c5baa

PMM Server:
URL : https://admin:xxx&#64;10.20.30.2:8191/
Version: 2.0.0

PMM-agent:
Connected : true
Time drift: 233.771µs
Latency : 609.813µs

Agents:
/agent_id/4e4cc46d-559e-4c06-871b-ba87937e8673 NODE_EXPORTER RUNNING

```

pmm-admin list:

```auto
Service type Service name Address and port Service ID

Agent type Status Agent ID Service ID
pmm-agent connected /agent_id/d6b75d41-3b68-4eb4-840f-6dc45f188e2d
node_exporter running /agent_id/4e4cc46d-559e-4c06-871b-ba87937e8673

```

Using tcpdump I can see traffic between the clients and the pmm server. However they don’t show up in the GUI.  
I’ve explored the swagger API and bit and saw this “/v1/inventory/Nodes/List” which successfully returns all configured clients.

---

<div class="post-metadata">

### Author: ![Peter](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/peter/32/2_2.png) [@Peter](https://forums.percona.com/u/Peter)
#### Post date: [September 20, 2019, 4:21pm UTC](https://forums.percona.com/t/pmm2-linux-metrics-only/7210/4 "2019-09-20T16:21:45Z")

</div>

Very strange… Can you go on your [url][http://PMMSERVER/prometheus[/url]](http://PMMSERVER/prometheus%5B/url%5D) and enter “up” metric and click execute. Do you see the hosts which you only Monitor as Linux hosts out there ?

---

<div class="post-metadata">

### Author: ![Roma\_Novikov](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/roma_novikov/32/1161_2.png) [@Roma\_Novikov](https://forums.percona.com/u/Roma_Novikov)
#### Post date: [September 20, 2019, 4:30pm UTC](https://forums.percona.com/t/pmm2-linux-metrics-only/7210/5 "2019-09-20T16:30:52Z")

</div>

[magenbrot](https://percona.vanillacommunities.com/profile/x/x/22340) , can you run pmm-admin summary it will provide more information.  
Also, can you share Node Overview dashboard screenshot

---

<div class="post-metadata">

### Author: ![magenbrot](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/magenbrot/32/1030_2.png) [@magenbrot](https://forums.percona.com/u/magenbrot)
#### Post date: [September 23, 2019, 2:48am UTC](https://forums.percona.com/t/pmm2-linux-metrics-only/7210/6 "2019-09-23T02:48:34Z")

</div>

> [@roma.novikov;54641](#):
>
> [magenbrot](https://percona.vanillacommunities.com/profile/x/x/22340) , can you run pmm-admin summary it will provide more information.  
> Also, can you share Node Overview dashboard screenshot

hm, it seems like I can’t send you a direct message by this forum. I can’t see the form (I don’t want to post the zip file here, because it might contain private information).

But here’s the screenshot of the node overview.

 ![photoid=54646](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/2X/b/bc792326b74fe0b0268d6abf9902ca61c40cb6bb.png)

---

<div class="post-metadata">

### Author: ![magenbrot](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/magenbrot/32/1030_2.png) [@magenbrot](https://forums.percona.com/u/magenbrot)
#### Post date: [September 23, 2019, 2:53am UTC](https://forums.percona.com/t/pmm2-linux-metrics-only/7210/7 "2019-09-23T02:53:24Z")

</div>

> [@Peter;54640](#):
>
> Very strange… Can you go on your [http://PMMSERVER/prometheus](http://PMMSERVER/prometheus) and enter “up” metric and click execute. Do you see the hosts which you only Monitor as Linux hosts out there ?

Hi Peter,

in the up metric I can see all the hosts I’ve connected with pmm-admin:

[prometheus-up-metric.txt](https://forums.percona.com/uploads/short-url/eKCGZpRf9aPn1ErtL4uwwNkBu0q.txt) (9.89 KB)

---

<div class="post-metadata">

### Author: ![magenbrot](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/magenbrot/32/1030_2.png) [@magenbrot](https://forums.percona.com/u/magenbrot)
#### Post date: [September 24, 2019, 3:52am UTC](https://forums.percona.com/t/pmm2-linux-metrics-only/7210/8 "2019-09-24T03:52:40Z")

</div>

[roma.novikov](https://percona.vanillacommunities.com/profile/x/x/33948) can you tell me how I can send you a private message? It seems that this function is not available for me.

---

<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: [October 1, 2019, 1:15am UTC](https://forums.percona.com/t/pmm2-linux-metrics-only/7210/9 "2019-10-01T01:15:54Z")

</div>

[magenbrot](https://percona.vanillacommunities.com/profile/magenbrot)It looks like a region was specified for only one of your node (tyr.ovtec.it). The latest grafana version hasn’t support empty values. So only nodes with regions are shown. Such behavior will be changed in next PMM releases. For now you should remove and add the node without a region or specify a region for other nodes by the same procedure.

---

<div class="post-metadata">

### Author: ![magenbrot](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/magenbrot/32/1030_2.png) [@magenbrot](https://forums.percona.com/u/magenbrot)
#### Post date: [October 1, 2019, 2:19am UTC](https://forums.percona.com/t/pmm2-linux-metrics-only/7210/10 "2019-10-01T02:19:50Z")

</div>

Hi [adivinho](https://percona.vanillacommunities.com/profile/x/x/41894)! Thank you for your response. Can you tell me how I can add hosts without a region?

---

<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: [October 3, 2019, 1:21am UTC](https://forums.percona.com/t/pmm2-linux-metrics-only/7210/11 "2019-10-03T01:21:08Z")

</div>

Hi [magenbrot](https://percona.vanillacommunities.com/profile/x/x/22340) , Please use the next command to remove/add your node tyr.ovtec.it

```auto
pmm-admin config --force tyr.ovtec.it

```

e.g.

```auto
# pmm-admin config --force ip-10-178-1-195
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: ![dunnjoe](https://avatars.discourse-cdn.com/v4/letter/d/ee7513/32.png) [@dunnjoe](https://forums.percona.com/u/dunnjoe)
#### Post date: [October 16, 2019, 3:49pm UTC](https://forums.percona.com/t/pmm2-linux-metrics-only/7210/12 "2019-10-16T15:49:29Z")

</div>

Can you make sure that port 42001 is open on the host being monitored? This worked for me.

---

<div class="post-metadata">

### Author: ![magenbrot](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/magenbrot/32/1030_2.png) [@magenbrot](https://forums.percona.com/u/magenbrot)
#### Post date: [October 17, 2019, 6:50am UTC](https://forums.percona.com/t/pmm2-linux-metrics-only/7210/13 "2019-10-17T06:50:13Z")

</div>

> [@adivinho;54702](#):
>
> Hi [magenbrot](https://percona.vanillacommunities.com/profile/x/x/22340) , Please use the next command to remove/add your node tyr.ovtec.it
> 
> ```auto
> pmm-admin config --force tyr.ovtec.it
> 
> ```

Hi [adivinho](https://percona.vanillacommunities.com/profile/x/x/41894), I’ve done that for all my hosts, but I still can only see one host. I’ve even reset the pmm-server and pmm-data container to try it with a fresh setup.

I’ve used the following commands to start the container and to configure the clients (Ports 80 and 443 are not available on the pmm-server host, I’m using a reverse proxy to access the grafana GUI).

pmm-server:

```auto

docker create -v /srv --name pmm-data percona/pmm-server:2 /bin/true
docker run -d -p 10.20.30.2:8190:80 -p 10.20.30.2:8191:443 --volumes-from pmm-data --name pmm-server --restart always percona/pmm-server:2

```

pmm-client:

```auto

pmm-admin config --server-insecure-tls --server-url=https://admin:xxx&#64;10.20.30.2:8191 --force tyr.ovtec.it

```

> [@dunnjoe;54759](#):
>
> Can you make sure that port 42001 is open on the host being monitored? This worked for me.

Thx, but I’ve no firewall on the internal interfaces which I use for pmm. I also had tcpdump running for about an hour on this port, but there where no packets.

---

<div class="post-metadata">

### Author: ![magenbrot](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/magenbrot/32/1030_2.png) [@magenbrot](https://forums.percona.com/u/magenbrot)
#### Post date: [November 6, 2019, 5:14am UTC](https://forums.percona.com/t/pmm2-linux-metrics-only/7210/14 "2019-11-06T05:14:33Z")

</div>

Hi!

I finally found the problem with my setup. All my hosts except tyr.ovtec.it have two network interfaces, one with a public ip address and another one for the internal network. So the “usual” pmm-admin config added the hosts with their public IP address, but since this ip is firewalled the hosts did not appear in PMM.

I now added them with this command and everything is working fine:  
pmm-admin config --server-insecure-tls --server-url=[https://admin](https://admin):password@10.20.30.2:8191 --force 10.20.30.6 generic [loki.mydomain.de](http://loki.mydomain.de)

in this example 10.20.30.2 is the host where the pmm is running in a docker container and 10.20.30.6 is the internal IP address of the host which I want to monitor.

Thanks again for all your help!

regards  
Oli

---

<div class="post-metadata">

### Author: ![lorraine.pocklington](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/lorraine.pocklington/32/37_2.png) [@lorraine.pocklington](https://forums.percona.com/u/lorraine.pocklington)
#### Post date: [November 6, 2019, 5:19am UTC](https://forums.percona.com/t/pmm2-linux-metrics-only/7210/15 "2019-11-06T05:19:52Z")

</div>

Thank you for updating this post, it could help others in the future and we appreciate the share.

---

<div class="post-metadata">

### Author: ![mosad](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/mosad/32/2871_2.png) [@mosad](https://forums.percona.com/u/mosad)
#### Post date: [December 14, 2020, 7:51am UTC](https://forums.percona.com/t/pmm2-linux-metrics-only/7210/16 "2020-12-14T07:51:52Z")

</div>

I seem that I have a similar problem (pmm2).

I don’t see any nginx metrics.

---

<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: [December 14, 2020, 8:11am UTC](https://forums.percona.com/t/pmm2-linux-metrics-only/7210/17 "2020-12-14T08:11:48Z")

</div>

Hi @mosad,

Have you added any service for monitoring or configured pmm-agent on a node only?

---

<div class="post-metadata">

### Author: ![mosad](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/mosad/32/2871_2.png) [@mosad](https://forums.percona.com/u/mosad)
#### Post date: [December 14, 2020, 8:12am UTC](https://forums.percona.com/t/pmm2-linux-metrics-only/7210/18 "2020-12-14T08:12:59Z")

</div>

pmm-agent only

---

<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: [December 14, 2020, 8:23am UTC](https://forums.percona.com/t/pmm2-linux-metrics-only/7210/19 "2020-12-14T08:23:09Z")

</div>

It could be a firewall issue.

You may switch metrics flow mode to push in the latest PMM version 2.12.0

At first you should remove already added node on the inventory page.

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

Then please run configuration command again but with flag **_–metrics-mode=push_**

---

<div class="post-metadata">

### Author: ![mosad](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/mosad/32/2871_2.png) [@mosad](https://forums.percona.com/u/mosad)
#### Post date: [December 14, 2020, 8:55am UTC](https://forums.percona.com/t/pmm2-linux-metrics-only/7210/20 "2020-12-14T08:55:38Z")

</div>

error: unknown long flag ‘–metrics-mode’

[Next page](https://forums.percona.com/t/pmm2-linux-metrics-only/7210.md?page=2)
