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

Hi all,

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

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

Hi Dillon,

You may cut labels by an aggregation function.
e.g.
avg by (service_name) (mongodb_instance_uptime_seconds)

1 Like

Hi adivinho,

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


In fact, I want to change the “Label” column on this page. Is there a template?

Thanks,
Dillon

1 Like

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

1 Like

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

1 Like