Sending priority from Grafana
Asked by Arthur Kerpician:

I'm using Grafana 6.5.2 and I'd like to map each configured alert in Grafana to a priority in Opsgenie. Is this even possible with the Free plan?

I see the Priority configuration in the Integration screen, but I don't understand how the {{priority}} field is parsed from the request sent by Grafana.

![Screen Shot 2019-12-30 at 20.04.25.png](https://community.atlassian.com/t5/image/serverpage/image-id/77395i6557267D070B469F/image-dimensions/576x356?v=v2 "Screen Shot 2019-12-30 at 20.04.25.png")

Thank you!


Answers:
author: Kate Clavet
body: Hi there [@Arthur Kerpician](/t5/user/viewprofilepage/user-id/924869) yes this is because you are on the free plan. This functionality is only available for Standard and Enterprise. Hope that helps!

Best,

Kate

comments: author: Arthur Kerpician
body: Thank you for the reply, Kate


author: Jordi Reina
body: I was able to make it work after finding this <https://github.com/grafana/grafana/pull/21298>

In your grafana contact point configuration for OpsGenie you need to

- Enable Override Priority in your contact

- Add Label as **org_priority** in your alerts and use the values from OpsGenie: P1, ..., P5  

![Screenshot 2024-06-19 at 12.44.37.png](https://community.atlassian.com/t5/image/serverpage/image-id/330576i58160F4CE63360EF/image-size/large?v=v2&px=999 "Screenshot 2024-06-19 at 12.44.37.png")


author: borysov.oleksandr
body: [@Arthur Kerpician](/t5/user/viewprofilepage/user-id/924869) How do you setup priority in grafana alerts?

comments: author: Arthur Kerpician
body: You need the advanced integration feature, available in Standard or Enterprise plans, as [@Kate Clavet](/t5/user/viewprofilepage/user-id/2156162) mentioned. From the docs, I think the priority is parsed from the message itself (<https://docs.opsgenie.com/docs/priority-field>).


author: borysov.oleksandr
body: Thank you!  
[@Kate Clavet](/t5/user/viewprofilepage/user-id/2156162) Can opgenie grafana integration use tags in notifications? <https://grafana.com/docs/grafana/latest/alerting/notifications/#alert-rule-tags>


author: Kate Clavet
body: [@borysov.oleksandr](/t5/user/viewprofilepage/user-id/3701235) Yes, the integration can use tags in notifications :) ![Screen Shot 2020-01-13 at 4.42.08 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/78796i5126085FE63ED40B/image-dimensions/429x243?v=v2 "Screen Shot 2020-01-13 at 4.42.08 PM.png")


author: borysov.oleksandr
body: Thank you, there is a problem with their documentation. I read only the end part)

![Screen Shot 2020-01-14 at 12.58.53 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/78885iEF9839C7C1359A65/image-size/large?v=v2&px=999 "Screen Shot 2020-01-14 at 12.58.53 PM.png")


author: Kate Clavet
body: Hi [@borysov.oleksandr](/t5/user/viewprofilepage/user-id/3701235) yes, for sure it is confusing! :)


author: borysov.oleksandr
body: [@Kate Clavet](/t5/user/viewprofilepage/user-id/2156162)

Can you help me understand how I can use tags from grafana in opsgenie (I cant find examples in docs). When I add key=value in grafana alert I can't see it in opsgenie alerts.  

Grafana v6.3.5


author: Kate Clavet
body: Hi there [@borysov.oleksandr](/t5/user/viewprofilepage/user-id/3701235) where in Grafana are you adding the key values? Can you give me a bit more information please? Thanks!


author: borysov.oleksandr
body: Hi! It was very fresh feature and as I understand not released yet, only on master branch <https://github.com/grafana/grafana/pull/20810> (opsgenie support pointed me to that issue when we try to resolve my question with tags).


author: borysov.oleksandr
body: Grafana 6.6 has just released and tags works good with opsgenie!


author: Nigel Earle
body: Im also trying to retrieve alert rule tags from Grafana via a Logz.io integration to Opsgenie. Currently, I'm unable to see the values from the Alert view. Curently using Grafana v7.3.1.

I've set an alert rule tag in grafana from the Alert panel (shown in the image below)

![alert-rule-tags.png](https://community.atlassian.com/t5/image/serverpage/image-id/120585iCBD0041A3C28AFE0/image-size/large?v=v2&px=999 "alert-rule-tags.png")

If I set {{alert_tags}} as an 'extraProperty' from the logz.io integrations, I see that it comes in as an empty array on the Opsgenie Alert. Also worth mentioning that I am on the free plan of Opsgenie.

![alert_tags.png](https://community.atlassian.com/t5/image/serverpage/image-id/120586iB62F28D921F24870/image-size/large?v=v2&px=999 "alert_tags.png")

Alert View with empty array as 'Tags' property value![extra-properties.png](https://community.atlassian.com/t5/image/serverpage/image-id/120588i39A332DEB5CCE5A1/image-size/large?v=v2&px=999 "extra-properties.png")

Any ideas [@Kate Clavet](/t5/user/viewprofilepage/user-id/2156162) [@borysov.oleksandr](/t5/user/viewprofilepage/user-id/3701235)?? Thanks!


author: borysov.oleksandr
body: Hi!  
Did you use {{tags}} instead of {{alert_tags}}?  
If you want to set priority from Grafana you should use the special tag name **og_priority** .  
For example og_priority=P1.


author: Nigel Earle
body: [@borysov.oleksandr](/t5/user/viewprofilepage/user-id/3701235) Hmm, still no result. I think this might be a constraint for the free plan. Thanks for your help!


Tags: grafana