# I am unable to set alerts in Grafana

**URL:** <https://community.grafana.com/t/i-am-unable-to-set-alerts-in-grafana/56901>\
**Category:** Configuration\
**Tags:** alerting\
**Created:** [November 29, 2021, 5:48pm UTC](https://community.grafana.com/t/i-am-unable-to-set-alerts-in-grafana/56901 "2021-11-29T17:48:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rinold83](https://avatars.discourse-cdn.com/v4/letter/r/258eb7/32.png) [@rinold83](https://community.grafana.com/u/rinold83)\
**Post date:** [November 29, 2021, 5:48pm UTC](https://community.grafana.com/t/i-am-unable-to-set-alerts-in-grafana/56901/1 "2021-11-29T17:48:27Z")

</div>

I am unable to set alerts in Grafana Alerts. Getting the below error  
**Failed to evaluate queries and expressions: failed to execute conditions: failed to query data: parse “10.92.xx.xx:9090”: first path segment in URL cannot contain colon**.

10.92.xx.xx:9090 is my prometheus IP which i gave us a Datasource for a simple high CPU alert  
using Grafana v8.2.2 (6232fe07c0). Any help in this is much appreciated. I also enabled the Unified alerting and disabled Legacy alerting.

---

<div class="post-metadata">

**Author:** ![rinold83](https://avatars.discourse-cdn.com/v4/letter/r/258eb7/32.png) [@rinold83](https://community.grafana.com/u/rinold83)\
**Post date:** [November 29, 2021, 9:55pm UTC](https://community.grafana.com/t/i-am-unable-to-set-alerts-in-grafana/56901/2 "2021-11-29T21:55:25Z")

</div>

i resolved it now. My prometheus data source didn’t have an http:// in it. Once I added it, the alerts started working Thank you.

---

<div class="post-metadata">

**Author:** ![hafizjoundys](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/hafizjoundys/32/21862_2.png) [@hafizjoundys](https://community.grafana.com/u/hafizjoundys)\
**Post date:** [March 7, 2022, 1:05pm UTC](https://community.grafana.com/t/i-am-unable-to-set-alerts-in-grafana/56901/3 "2022-03-07T13:05:49Z")

</div>

oh god, thanks dude, I just forgot to add the “http://” prefix in my Loki source lol
