Здравствуйте, настраивал PMM для отправки сообщений об ошибках в Telegram, сама отправка работает корректно, но вот сам текст сообщения уж больно длинный и не очень информативный. Можете подсказать как и где можно настроить шаблон для отправки данного сообщения? Чтобы привести его примерно к такому формату
Problem:
Problem started at
Problem name: З
Host:
Severity:
В данный момент выглядит так.
**Firing**
Value: [ var='A' labels={__name__=mysql_slave_status_master_server_id, agent_id=/agent_id/83045fb3-2251-4068-8f95-be28963d834c, agent_type=mysqld_exporter, instance=/agent_id/83045fb3-2251-4068-8f95-be28963d834c, job=mysqld_exporter_agent_id_83045fb3-2251-4068-8f95-be28963d834c_mr, machine_id=/machine_id/1fb406745c224b50b383ef4a6c9c3a09, master_host=192.168.10.2, master_uuid=eee4b0ca-696c-11ec-81c1-c269f41801b5, node_id=/node_id/60a849a9-ad9e-4a98-ba52-e0cde20ac7e9, node_name=bitrixslave1, node_type=generic, service_id=/service_id/3287b034-41fe-4c07-a0ee-88f6e29e4679, service_name=bitrixslave1-mysql, service_type=mysql} value=1 ]
Labels:
- alertname = pmm_mysql_replication_sql_running Alerting Rule
- agent_id = /agent_id/83045fb3-2251-4068-8f95-be28963d834c
- agent_type = mysqld_exporter
- grafana_folder = MySQL
- instance = /agent_id/83045fb3-2251-4068-8f95-be28963d834c
- job = mysqld_exporter_agent_id_83045fb3-2251-4068-8f95-be28963d834c_mr
- machine_id = /machine_id/1fb406745c224b50b383ef4a6c9c3a09
- master_host = 192.168.10.2
- master_uuid = eee4b0ca-696c-11ec-81c1-c269f41801b5
- node_id = /node_id/60a849a9-ad9e-4a98-ba52-e0cde20ac7e9
- node_name = bitrixslave1
- node_type = generic
- percona_alerting = 1
- service_id = /service_id/3287b034-41fe-4c07-a0ee-88f6e29e4679
- service_name = bitrixslave1-mysql
- service_type = mysql
- severity = critical
- template_name = pmm_mysql_replication_sql_running
Annotations:
- description = MySQL Replication Not Running on /agent_id/83045fb3-2251-4068-8f95-be28963d834c
VALUE = [ var='A' labels={__name__=mysql_slave_status_master_server_id, agent_id=/agent_id/83045fb3-2251-4068-8f95-be28963d834c, agent_type=mysqld_exporter, instance=/agent_id/83045fb3-2251-4068-8f95-be28963d834c, job=mysqld_exporter_agent_id_83045fb3-2251-4068-8f95-be28963d834c_mr, machine_id=/machine_id/1fb406745c224b50b383ef4a6c9c3a09, master_host=192.168.10.2, master_uuid=eee4b0ca-696c-11ec-81c1-c269f41801b5, node_id=/node_id/60a849a9-ad9e-4a98-ba52-e0cde20ac7e9, node_name=bitrixslave1, node_type=generic, service_id=/service_id/3287b034-41fe-4c07-a0ee-88f6e29e4679, service_name=bitrixslave1-mysql, service_type=mysql} value=1 ]
- summary = MySQL Replication Not Running on (instance /agent_id/83045fb3-2251-4068-8f95-be28963d834c)
Source: https://localhost/graph/alerting/grafana/UzfDll9Iz/view
Silence: https://localhost/graph/alerting/silence/new?alertmanager=grafana&matcher=agent_id%3D%2Fagent_id%2F83045fb3-2251-4068-8f95-be28963d834c&matcher=agent_type%3Dmysqld_exporter&matcher=alertname%3Dpmm_mysql_replication_sql_running+Alerting+Rule&matcher=grafana_folder%3DMySQL&matcher=instance%3D%2Fagent_id%2F83045fb3-2251-4068-8f95-be28963d834c&matcher=job%3Dmysqld_exporter_agent_id_83045fb3-2251-4068-8f95-be28963d834c_mr&matcher=machine_id%3D%2Fmachine_id%2F1fb406745c224b50b383ef4a6c9c3a09&matcher=master_host%3D192.168.10.2&matcher=master_uuid%3Deee4b0ca-696c-11ec-81c1-c269f41801b5&matcher=node_id%3D%2Fnode_id%2F60a849a9-ad9e-4a98-ba52-e0cde20ac7e9&matcher=node_name%3Dbitrixslave1&matcher=node_type%3Dgeneric&matcher=percona_alerting%3D1&matcher=service_id%3D%2Fservice_id%2F3287b034-41fe-4c07-a0ee-88f6e29e4679&matcher=service_name%3Dbitrixslave1-mysql&matcher=service_type%3Dmysql&matcher=severity%3Dcritical&matcher=template_name%3Dpmm_mysql_replication_sql_running