Is there a way to customize the alert message with the latest PMM 2.31.0 version

The alert message is like the following:

Value: [ var='A' labels={agent_id=/agent_id/aafd723e-93ea-44d6-82af-b08c06fe6df0, agent_type=node_exporter, device=/dev/mapper/vg4-data, environment=labs, fstype=xfs, instance=/agent_id/aafd723e-93ea-44d6-82af-b08c06fe6df0, job=node_exporter_agent_id_aafd723e-93ea-44d6-82af-b08c06fe6df0_hr, machine_id=/machine_id/034a266eff0645645dd1787900000012, mountpoint=/data, node_id=/node_id/ecf6a94c-927d-4050-8282-a3ad1a442a66, node_name=qa2-dbp-lv-102.labs.some.net, node_type=generic} value=92.59179707514174 ]
Labels:
- alertname = Disk space usage is critical_/rule_id/564abf8c-3113-4cd4-abf9-78ac452880f3
- agent_id = /agent_id/aafd723e-93ea-44d6-82af-b08c06fe6df0
- agent_type = node_exporter
- device = /dev/mapper/vg4-data
- environment = labs
- fstype = xfs
- grafana_folder = Experimental
- instance = /agent_id/aafd723e-93ea-44d6-82af-b08c06fe6df0
- job = node_exporter_agent_id_aafd723e-93ea-44d6-82af-b08c06fe6df0_hr
- machine_id = /machine_id/034a266eff0645645dd1787900000012
- mountpoint = /data
- node_id = /node_id/ecf6a94c-927d-4050-8282-a3ad1a442a66
- node_name = qa2-dbp-lv-102.labs.some.net
- node_type = generic
- percona_alerting = 1
- severity = warning
- template_name = disk usage space is critical
Annotations:
- description = mountpoint /data values=[ var='A' labels={agent_id=/agent_id/aafd723e-93ea-44d6-82af-b08c06fe6df0, agent_type=node_exporter, device=/dev/mapper/vg4-data, environment=labs, fstype=xfs, instance=/agent_id/aafd723e-93ea-44d6-82af-b08c06fe6df0, job=node_exporter_agent_id_aafd723e-93ea-44d6-82af-b08c06fe6df0_hr, machine_id=/machine_id/034a266eff0645645dd1787900000012, mountpoint=/data, node_id=/node_id/ecf6a94c-927d-4050-8282-a3ad1a442a66, node_name=qa2-dbp-lv-102.labs.some.net, node_type=generic} value=92.59179707514174 ]
- rule = Disk space usage is critical
- summary = disk space usage excceeds [[ .threshold ]] on host qa2-dbp-lv-102.labs.some.net
Source: https://localhost/graph/alerting/grafana/Hl6yygS4zz/view
Silence: https://localhost/graph/alerting/silence/new?alertmanager=grafana&matcher=agent_id%3D%2Fagent_id%2Faafd723e-93ea-44d6-82af-b08c06fe6df0&matcher=agent_type%3Dnode_exporter&matcher=alertname%3DDisk+space+usage+is+critical_%2Frule_id%2F564abf8c-3113-4cd4-abf9-78ac452880f3&matcher=device%3D%2Fdev%2Fmapper%2Fvg4-data&matcher=environment%3Dlabs&matcher=fstype%3Dxfs&matcher=grafana_folder%3DExperimental&matcher=instance%3D%2Fagent_id%2Faafd723e-93ea-44d6-82af-b08c06fe6df0&matcher=job%3Dnode_exporter_agent_id_aafd723e-93ea-44d6-82af-b08c06fe6df0_hr&matcher=machine_id%3D%2Fmachine_id%2F034a266eff0645645dd1787900000012&matcher=mountpoint%3D%2Fdata&matcher=node_id%3D%2Fnode_id%2Fecf6a94c-927d-4050-8282-a3ad1a442a66&matcher=node_name%3Dqa2-dbp-lv-102.labs.some.net&matcher=node_type%3Dgeneric&matcher=percona_alerting%3D1&matcher=severity%3Dwarning&matcher=template_name%3Ddisk+usage+space+is+critical

It’s too much for an alert, is there any way to customize the alert message?

1 Like

Hello @Luke03011,
Unfortunately at this time there isn’t a way to remove parameters from alerts. Our alert message platform was just released a few patch releases ago, so we are still looking for ways to improve it. I will make sure the team knows of this feature request.

1 Like

@matthewb Thanks for your response.

1 Like