# Query contains recording rules. Expand rules , cut in the middle

**URL:** <https://community.grafana.com/t/query-contains-recording-rules-expand-rules-cut-in-the-middle/42628>\
**Category:** Grafana\
**Created:** [February 3, 2021, 9:20pm UTC](https://community.grafana.com/t/query-contains-recording-rules-expand-rules-cut-in-the-middle/42628 "2021-02-03T21:20:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![valdemarpavesi1](https://avatars.discourse-cdn.com/v4/letter/v/e68b1a/32.png) [@valdemarpavesi1](https://community.grafana.com/u/valdemarpavesi1)\
**Post date:** [February 3, 2021, 9:20pm UTC](https://community.grafana.com/t/query-contains-recording-rules-expand-rules-cut-in-the-middle/42628/1 "2021-02-03T21:20:49Z")

</div>

if prometheus have rules:

 ![image](https://us1.discourse-cdn.com/grafana/original/2X/1/128a4d6944069e16b51a4224e398bb0b38f56b50.png)

if try to Expand rules, It will cut in the middle:

 ![image](https://us1.discourse-cdn.com/grafana/original/2X/5/58a01cfee374f078d75c40c2f093c64c807a27ab.png)  
 ![image](https://us1.discourse-cdn.com/grafana/original/2X/5/5179123ddf3e569ad5f73b47aca1e0fb9a1aa4df.png)

Grafana v7.3 or:  
Grafana v7.4.0-beta1 (228d804962)

regards!

---

<div class="post-metadata">

**Author:** ![wlargou](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/wlargou/32/14374_2.png) [@wlargou](https://community.grafana.com/u/wlargou)\
**Post date:** [February 4, 2021, 3:38pm UTC](https://community.grafana.com/t/query-contains-recording-rules-expand-rules-cut-in-the-middle/42628/2 "2021-02-04T15:38:00Z")

</div>

Hi,

I thought this was fixed by this PR :

> <https://github.com/grafana/grafana/pull/24977>

Can you comment in this PR, maybe you have a specific case which was not handled.

Btw it’s 9 month old.

Hope it helps.

Good Luck

---

<div class="post-metadata">

**Author:** ![valdemarpavesi1](https://avatars.discourse-cdn.com/v4/letter/v/e68b1a/32.png) [@valdemarpavesi1](https://community.grafana.com/u/valdemarpavesi1)\
**Post date:** [February 8, 2021, 5:03pm UTC](https://community.grafana.com/t/query-contains-recording-rules-expand-rules-cut-in-the-middle/42628/3 "2021-02-08T17:03:02Z")

</div>

I did, thanks @wlargou

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/grafana/original/2X/e/ef5308cc58c9e5a13187b5012eb99f406928462f.png) [@system](https://community.grafana.com/u/system)\
**Post date:** [February 3, 2022, 9:21pm UTC](https://community.grafana.com/t/query-contains-recording-rules-expand-rules-cut-in-the-middle/42628/4 "2022-02-03T21:21:15Z")

</div>

Closed on February 3, 2022, 9:21pm UTC

This topic was automatically closed after 365 days. New replies are no longer allowed.
