# Adding Tag values to alert message

**URL:** <https://community.grafana.com/t/adding-tag-values-to-alert-message/34092>\
**Category:** Alerting\
**Tags:** alerting\
**Created:** [July 23, 2020, 1:16pm UTC](https://community.grafana.com/t/adding-tag-values-to-alert-message/34092 "2020-07-23T13:16:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![spectrummclaughlin](https://avatars.discourse-cdn.com/v4/letter/s/45deac/32.png) [@spectrummclaughlin](https://community.grafana.com/u/spectrummclaughlin)\
**Post date:** [July 23, 2020, 1:16pm UTC](https://community.grafana.com/t/adding-tag-values-to-alert-message/34092/1 "2020-07-23T13:16:31Z")

</div>

I am having issues with the alerting system on Grafana. We are trying to monitor multiple PC’s and report on each one. It is sending the alerts to a webhook which I am receiving in Node-RED. We want each alert to send the hostname of the pc. I have been able to set the alerts to send the hostname on alert active.

 ![grafana3](https://us1.discourse-cdn.com/grafana/original/2X/8/8b78c63db331a8e0574a83ef8c19786100b7f37b.png)

I am having issues when it send the OK message after the alert is no longer active. I want it to still send the hostname on the OK message.

At the bottom of the alert tab, it has a spot to insert tags.  
 ![grafana4](https://us1.discourse-cdn.com/grafana/original/2X/1/126f92d0aee75af1d8741c36d20ccad67fe9fd0f.png)

I cannot seem to make this send the hostname tag value.

Can anyone help on sending the hostname value in both the alerting message and the ok message?

---

<div class="post-metadata">

**Author:** ![kursadcan](https://avatars.discourse-cdn.com/v4/letter/k/e480ec/32.png) [@kursadcan](https://community.grafana.com/u/kursadcan)\
**Post date:** [September 28, 2020, 1:00pm UTC](https://community.grafana.com/t/adding-tag-values-to-alert-message/34092/2 "2020-09-28T13:00:43Z")

</div>

Hello @spectrummclaughlin,

Could you please share the configuration about how to send “hostname” for the active alerts via webhook? I have configured the alarm but I couldn’t send the hostname.

dashboardId: 53  
evalMatches: [  
{  
“value”: 0.10425382157981751,  
“metric”: “ArcGISServer”,  
“tags”: {  
“process”: “ArcGISServer”  
}  
},  
{  
“value”: 0.17004617171747974,  
“metric”: “ArcSOC”,  
“tags”: {  
“process”: “ArcSOC”  
}  
}  
]  
message: “TEST Alarm for $instance and $server”  
orgId: 1  
panelId: 17  
ruleId: 2  
ruleName: “ArcGIS Processes - CPU Time Total alert”  
ruleUrl: “[http://xx.xx.xx.xx:9090/d/2334Fermf3/arcgis-app-process?tab=alert&editPanel=17&orgId=1](http://xx.xx.xx.xx:9090/d/2334Fermf3/arcgis-app-process?tab=alert&editPanel=17&orgId=1)”  
state: “alerting”  
tags: {  
“node”: “{{server}}”,  
“nodeName”: “{{instance}}”  
}  
title: “[Alerting] ArcGIS Processes - CPU Time Total alert”

Thanks,  
Kursad

---

<div class="post-metadata">

**Author:** ![ranjit](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/ranjit/32/15492_2.png) [@ranjit](https://community.grafana.com/u/ranjit)\
**Post date:** [July 3, 2021, 1:21am UTC](https://community.grafana.com/t/adding-tag-values-to-alert-message/34092/3 "2021-07-03T01:21:45Z")

</div>

@kursadcan @spectrummclaughlin

I’m curious about this too (using Grafana 7). Were you able to figure this out?

From the Alert page, I can _Test Rule_ and this shows me some interesting info in the Object. There must be some way for me to pull some of that into either alert message or into the tags, no?

Thanks,  
Ranjit

---

<div class="post-metadata">

**Author:** ![bhoomi156](https://avatars.discourse-cdn.com/v4/letter/b/eb8c5e/32.png) [@bhoomi156](https://community.grafana.com/u/bhoomi156)\
**Post date:** [September 4, 2022, 12:59pm UTC](https://community.grafana.com/t/adding-tag-values-to-alert-message/34092/4 "2022-09-04T12:59:43Z")

</div>

Do you have any idea on how to send date and time in this?
