# Node exporter asking for credentails?

**URL:** <https://forums.percona.com/t/node-exporter-asking-for-credentails/17402>\
**Category:** PMM 2.x\
**Created:** [September 11, 2022, 8:34pm UTC](https://forums.percona.com/t/node-exporter-asking-for-credentails/17402 "2022-09-11T20:34:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jbiancot](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/jbiancot/32/6030_2.png) [@jbiancot](https://forums.percona.com/u/jbiancot)\
**Post date:** [September 11, 2022, 8:34pm UTC](https://forums.percona.com/t/node-exporter-asking-for-credentails/17402/1 "2022-09-11T20:34:32Z")

</div>

Hi,

I have setup PMM v2, as far as know the nodes send to the server the stats…

On the nodes:

pmm-admin config --server-insecure-tls …

I am seeing on the nodes, there is a 42001 port open, to see the metrics of “node exporter I guess”, it ask me for username and password, any one by default

I tried the one I setup on the server, the one that the nodes uses to send their data but that doesn’t work.

Help !

---

<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:** [September 12, 2022, 1:04am UTC](https://forums.percona.com/t/node-exporter-asking-for-credentails/17402/2 "2022-09-12T01:04:50Z")

</div>

Hey @jbiancot,  
Our exporters support both “push” and “pull” models for getting data to the PMM server. The port 42001 is for pull/scrap by the PMM server, which is **not** the default operation. The default is to push metrics to the PMM server, thereby not needing to open any ports on most firewalls.

When you `pmm-admin config` a node, yes, you must use the un/pw of the PMM server to register this agent against the server. It will then setup push metrics by default.

---

<div class="post-metadata">

**Author:** ![Michael\_Coburn](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/michael_coburn/32/18_2.png) [@Michael\_Coburn](https://forums.percona.com/u/Michael_Coburn)\
**Post date:** [September 12, 2022, 1:40pm UTC](https://forums.percona.com/t/node-exporter-asking-for-credentails/17402/3 "2022-09-12T13:40:10Z")

</div>

Hi @jbiancot , just to add to Matthew’s comment, you will want to include the username/password in the `--server-url` flag, like this example:

```auto
pmm-admin config --server-insecure-tls --server-url=https://admin:admin@1.1.1.1

```

You should not need to supply any other username/password combinations for setting up the OS metrics collection.
