# Multi Dimensional Alerting with Graphite

**URL:** <https://community.grafana.com/t/multi-dimensional-alerting-with-graphite/89521>\
**Category:** Alerting\
**Created:** [June 13, 2023, 2:30pm UTC](https://community.grafana.com/t/multi-dimensional-alerting-with-graphite/89521 "2023-06-13T14:30:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![lsamuel](https://avatars.discourse-cdn.com/v4/letter/l/9de053/32.png) [@lsamuel](https://community.grafana.com/u/lsamuel)\
**Post date:** [June 13, 2023, 2:30pm UTC](https://community.grafana.com/t/multi-dimensional-alerting-with-graphite/89521/1 "2023-06-13T14:30:46Z")

</div>

Grafana v9.4.3

I’m trying to create a multi-dimensional alert rule using Graphite as the data source. I can get the alert to work fine for a single series, but not for multiple series.

Here are the results of the Graphite query. I’m aliasing them using aliasByNode to alias the metric by its unique id

 ![Screen Shot 2023-06-13 at 8.28.13 AM](https://us1.discourse-cdn.com/grafana/original/3X/3/8/38077d8be85cb25a1d199b09afb042a7d1aec98c.png)

However in the ‘B’ expression when I reduce each series, they’re just labeled as series 0, series 1, series 2 and so on. I can see it grabs the right value for each series, but I would expect the series to be labeled by whatever I’m aliasing it with

If I save this alert rule and get it to fire, I get an error saying - _ **invalid format of evaluation results for the alert definition : frame cannot uniquely be identified by its labels: has duplicate results with labels {}** _

Any help would be much appreciated.

---

<div class="post-metadata">

**Author:** ![grant2](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/grant2/32/42281_2.png) [@grant2](https://community.grafana.com/u/grant2)\
**Post date:** [June 14, 2023, 9:53am UTC](https://community.grafana.com/t/multi-dimensional-alerting-with-graphite/89521/2 "2023-06-14T09:53:51Z")

</div>

Welcome @lsamuel to the Grafana forum.

In just a regular time series graph (not the alerting section), could you please post query A (showing all the options available) and a screenshot showing the legend? My feeling is that the alias needs some adjusting.

Looking for something like this:

 ![image](https://us1.discourse-cdn.com/grafana/original/3X/e/2/e2a2235e333dbe38df358c214e6d8ea1fc9d4b50.png)

---

<div class="post-metadata">

**Author:** ![lsamuel](https://avatars.discourse-cdn.com/v4/letter/l/9de053/32.png) [@lsamuel](https://community.grafana.com/u/lsamuel)\
**Post date:** [June 14, 2023, 2:06pm UTC](https://community.grafana.com/t/multi-dimensional-alerting-with-graphite/89521/3 "2023-06-14T14:06:08Z")

</div>

Thanks @grant2 for the response!

Here is query A from the panel, not the alerting section

 ![Screen Shot 2023-06-14 at 8.07.05 AM](https://us1.discourse-cdn.com/grafana/original/3X/e/9/e98d876ff335c79d993032d3855f354e48a3fd39.png)

I’m just aliasing it by the wildcard

---

<div class="post-metadata">

**Author:** ![grant2](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/grant2/32/42281_2.png) [@grant2](https://community.grafana.com/u/grant2)\
**Post date:** [June 14, 2023, 2:47pm UTC](https://community.grafana.com/t/multi-dimensional-alerting-with-graphite/89521/4 "2023-06-14T14:47:09Z")

</div>

In your alerting query A, what happens if you replace the wildcard (\*)…  
 ![image](https://us1.discourse-cdn.com/grafana/original/3X/6/a/6a5e731fd74b14d8ffdec0950c59c824e50220db.png)

with this:  
 ![image](https://us1.discourse-cdn.com/grafana/original/3X/3/c/3c119b190565ff19124cf773bc1c24a0ff2fbc20.png)

Does the reduce function (B) and threshold (C) work with the series’ names and is an error message still appearing?

---

<div class="post-metadata">

**Author:** ![lsamuel](https://avatars.discourse-cdn.com/v4/letter/l/9de053/32.png) [@lsamuel](https://community.grafana.com/u/lsamuel)\
**Post date:** [June 14, 2023, 2:52pm UTC](https://community.grafana.com/t/multi-dimensional-alerting-with-graphite/89521/5 "2023-06-14T14:52:12Z")

</div>

Hi, so, that is basically what I had in query A to begin with in my initial screenshot. I just had the metric blocked out.

Here it is again. You can see they’re the same. The only difference is replacing $env with the actual value since variables are not supported in alerting.

But yes, this still produces the error and you can see the series are not labeled how I’d expect them to be. They should all be the 4-digit IDs

 ![image](https://us1.discourse-cdn.com/grafana/original/3X/1/5/1548c6b67000474c1dc6150e673025ed85ef6e18.png)

---

<div class="post-metadata">

**Author:** ![lsamuel](https://avatars.discourse-cdn.com/v4/letter/l/9de053/32.png) [@lsamuel](https://community.grafana.com/u/lsamuel)\
**Post date:** [June 14, 2023, 10:31pm UTC](https://community.grafana.com/t/multi-dimensional-alerting-with-graphite/89521/6 "2023-06-14T22:31:22Z")

</div>

As an update, I tested this out with a different Graphite data source and I’m no longer encountering the issue. The data that is returned from the new data source has a `tags` key and so is able to properly label each series. My data source, however, does not have the `tags` key. Is this something that can be fixed on Grafana’s end? Or what do I need to do on my end to have this `tags` key? Thank you!
