# Can I change the "labels" of "Integrated Alerting"

**URL:** <https://forums.percona.com/t/can-i-change-the-labels-of-integrated-alerting/12705>\
**Category:** PMM 2.x\
**Created:** [October 25, 2021, 5:34am UTC](https://forums.percona.com/t/can-i-change-the-labels-of-integrated-alerting/12705 "2021-10-25T05:34:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dillonlu](https://avatars.discourse-cdn.com/v4/letter/d/ce73a5/32.png) [@Dillonlu](https://forums.percona.com/u/Dillonlu)\
**Post date:** [October 25, 2021, 5:34am UTC](https://forums.percona.com/t/can-i-change-the-labels-of-integrated-alerting/12705/1 "2021-10-25T05:34:15Z")

</div>

Hi all,

The version is PMM 2.19. Currently, if “Integrated Alerting” trigged, the “Labels” column in the “Alerts” page looks like this:

```auto
agent_id=/agent_id/95ead5b1-4b44-4dda-99d0-ebc61cc89111
agent_type=mongodb_exporter
alertgroup=PMM Integrated Alerting
alertname=/rule_id/1e8fcdb8-5cc6-42d9-bdf3-494fb689502f
ia=1
instance=/agent_id/95ead5b1-4b44-4dda-99d0-ebc61cc89111
job=mongodb_exporter_agent_id_95ead5b1-4b44-4dda-99d0-ebc61cc89111_hr-5s
machine_id=/machine_id/a45eeb18bfba4df584a828f42156113a
node_id=/node_id/f98a8fbe-9130-4021-8882-f7446be35506
node_name=mongo-169
node_type=generic
rule_id=/rule_id/1e8fcdb8-5cc6-42d9-bdf3-494fb689502f
service_id=/service_id/342afbf2-67a8-40d6-afcf-bc09a496bd0a
service_name= mongo-169-mongodb
service_type=mongodb
severity=critical
template_name=MongoDBDown

```

Typically, This includes too many information, but we only want to know what happens against which server. So, we want “event name”, “host information” and “event status”. For example, if a mongodb instance was done, we could see “MongoDBDown”, “mongo-169” and “Down”.

Can I change this label by some kind of configuration?

Thank,  
Dillon

---

<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 25, 2021, 9:05am UTC](https://forums.percona.com/t/can-i-change-the-labels-of-integrated-alerting/12705/2 "2021-10-25T09:05:01Z")

</div>

Hi Dillon,

You may cut labels by an aggregation function.  
e.g.  
avg by (service\_name) (mongodb\_instance\_uptime\_seconds)

---

<div class="post-metadata">

**Author:** ![Dillonlu](https://avatars.discourse-cdn.com/v4/letter/d/ce73a5/32.png) [@Dillonlu](https://forums.percona.com/u/Dillonlu)\
**Post date:** [October 26, 2021, 4:30am UTC](https://forums.percona.com/t/can-i-change-the-labels-of-integrated-alerting/12705/3 "2021-10-26T04:30:47Z")

</div>

Hi adivinho,

Thank you for reply. I think you’re talking about the “condition” to trigger this “ALERT”. Am I correct?

 ![企业微信截图_16352224793965](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/2X/1/1ca1ffe06867c7b2f431010821f5ecb4bd921bb1.png)  
In fact, I want to change the “Label” column on this page. Is there a template?

Thanks,  
Dillon

---

<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 26, 2021, 8:25am UTC](https://forums.percona.com/t/can-i-change-the-labels-of-integrated-alerting/12705/4 "2021-10-26T08:25:20Z")

</div>

Here are some screenshots of alerts for a default formula and modified one.

 ![Screenshot 2021-10-26 at 11.23.09](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/2X/a/a45463d9b378de278eed5ddd34f5e1cffc605452.png)

 ![Screenshot 2021-10-26 at 11.22.57](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/2X/1/1c3b97299df49389e962de2ddd2f97e8d58bf6e2.png)

---

<div class="post-metadata">

**Author:** ![Dillonlu](https://avatars.discourse-cdn.com/v4/letter/d/ce73a5/32.png) [@Dillonlu](https://forums.percona.com/u/Dillonlu)\
**Post date:** [October 27, 2021, 1:50am UTC](https://forums.percona.com/t/can-i-change-the-labels-of-integrated-alerting/12705/5 "2021-10-27T01:50:57Z")

</div>

> [@Vadim\_Yalovets](#):
>
> mongodb\_instance\_uptime\_seconds

Ohhhhhh…I made a mistake. I undestand your meaning. Thanks.
