# Question about PMM setup and Prometheus labels

**URL:** <https://forums.percona.com/t/question-about-pmm-setup-and-prometheus-labels/8133>\
**Category:** PMM 2.x\
**Tags:** pmm\
**Created:** [October 13, 2020, 1:22pm UTC](https://forums.percona.com/t/question-about-pmm-setup-and-prometheus-labels/8133 "2020-10-13T13:22:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeff\_K](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/jeff_k/32/1327_2.png) [@Jeff\_K](https://forums.percona.com/u/Jeff_K)\
**Post date:** [October 13, 2020, 1:22pm UTC](https://forums.percona.com/t/question-about-pmm-setup-and-prometheus-labels/8133/1 "2020-10-13T13:22:50Z")

</div>

Apologies if this is more of a question about how Prometheus works, and less about PMM but here’s what I have:

After running the standard setup commands from the documentation for PMMv2:

```auto
sudo yum install https://repo.percona.com/yum/percona-release-latest.noarch.rpm
sudo yum install pmm2-client
pmm-admin config --server-insecure-tls --server-url=https://myPMMserver
pmm-admin add mysql --username=user --password=pw --custom-labels=“environment=DEV,database=pricing”

```

When I query the metrics in Prometheus, I see that the MYSQL metrics contain the custom labels I added, while metrics that come directly from the node (f.e. memory or CPU) do not contain those custom labels. This is important to me because I want to feed alerts from these metrics into Alertmanager which can use the labels to route differently (f.e. alerts on prod servers go to DBA pagers, alerts on non-prod go to e-mail).

Is there a way I can add the custom labels in at the node level as well as the mysql service level? (by looking at it maybe at the pmm-admin config command? but I don’t have the ability to easily test it)

---

<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:** [October 14, 2020, 10:02am UTC](https://forums.percona.com/t/question-about-pmm-setup-and-prometheus-labels/8133/2 "2020-10-14T10:02:58Z")

</div>

@Jeff_K thanks for pointing this out. There was the intention to have this ability. filed this as a [https://jira.percona.com/browse/PMM-6778](https://jira.percona.com/browse/PMM-6778) so you can subscribe and track its progress
