# Put Host value in a Label

**URL:** <https://community.grafana.com/t/put-host-value-in-a-label/72230>\
**Category:** Alerting\
**Tags:** templating, alerting, plugins\
**Created:** [September 12, 2022, 7:25pm UTC](https://community.grafana.com/t/put-host-value-in-a-label/72230 "2022-09-12T19:25:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![like301](https://avatars.discourse-cdn.com/v4/letter/l/a6a055/32.png) [@like301](https://community.grafana.com/u/like301)\
**Post date:** [September 12, 2022, 7:25pm UTC](https://community.grafana.com/t/put-host-value-in-a-label/72230/1 "2022-09-12T19:25:22Z")

</div>

I’m trying to link the Host value in a Label inside an alert rule using something like a variable.

Put this hostname  
 ![image](https://us1.discourse-cdn.com/grafana/original/3X/9/5/95394d96731c31f4cde92656d0ea158f80b88b48.png)

inside the value  
 ![image](https://us1.discourse-cdn.com/grafana/original/3X/3/0/30ae1e6e0e35779b5f078e83fe81fc9aea44081e.png)

So, how do i exactly do that?

Thx!
