Extract value form alert

:bar_chart: Value: [ var='A' labels={agent_id=/agent_id/0fa65bf3-bf4f-49d0-bfab-2850a326fbfc, agent_type=node_exporter, instance=/agent_id/0fa65bf3-bf4f-49d0-bfab-2850a326fbfc, job=node_exporter_agent_id_0fa65bf3-bf4f-49d0-bfab-2850a326fbfc_hr, node_id=/node_id/531c004e-3111-4085-adaa-048c811ff693, node_name=mongo-node-1, node_type=container} value=1 ]

currently I am getting values like this in values section. I need to print only few values in values section . How to do that . Currently I am using this template

{{ define “test.template” }}

{{ range .Alerts }}

🚨 PMM Alert 🚨

🔔 Alert Name: {{ .Labels.alertname }}

🖥 Node Name: {{ .Labels.node_name }}

⚠️ Severity: {{ .Labels.severity }}

📊 Value: {{ .ValueString }}

📝 Description:

{{ .Annotations.description }}

🗒 Summary:

{{ .Annotations.summary }}

{{ end }}

{{ end }}

Hi @Pramod_Kumar_Gupta,
Grafana alerts use the GoLang template engine. You can see all features available template package - text/template - Go Packages
You can use {{ if … }} to filter out the info you want and do not want.