# Grafana can't show more than 3 loki panels in a dashbaord

**URL:** <https://community.grafana.com/t/grafana-cant-show-more-than-3-loki-panels-in-a-dashbaord/71591>\
**Category:** Grafana Loki\
**Tags:** configuration\
**Created:** [September 1, 2022, 11:55am UTC](https://community.grafana.com/t/grafana-cant-show-more-than-3-loki-panels-in-a-dashbaord/71591 "2022-09-01T11:55:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![cursedclock](https://avatars.discourse-cdn.com/v4/letter/c/ebca7d/32.png) [@cursedclock](https://community.grafana.com/u/cursedclock)\
**Post date:** [September 1, 2022, 11:55am UTC](https://community.grafana.com/t/grafana-cant-show-more-than-3-loki-panels-in-a-dashbaord/71591/1 "2022-09-01T11:55:30Z")

</div>

I am trying to use loki and grafana for generating and visualising a number of metrics based on logs. When I add a 4th panel to my dashboard all panels start failing when trying to query loki for durations longer than a couple of hours with the error: “Too many outstanding requests”.

I am using a simple monolith deployment (target=all) of loki with the following configuration added as mentioned in some other issue threads similar to mine:

```auto
limits_config:
  split_queries_by_interval: 24h

frontend:
  max_outstanding_per_tenant: 2048

```

But these settings did not help in a noticeable way.  
I also tried deploying a separate query-frontend as the documentation did not make it clear if the monolith deployment included the query frontend or not but that seemed to have made the issue worse.

I was not able to find any useful logs from either loki or grafana, grafana seems to be receiving response code 400 from loki and loki logs state that the query fails because the context has been cancelled. There are no proxies between loki and grafana and they are running on the same machine. Dump logs are quite hard to look through as I don’t really know what to look for.

Is there anything I can try to figure out why this is happening or fix the issue?  
Also the documentation for configuring loki seems to be quite lacking, and the little documentation there is is mostly geared towards kubernetes.

---

<div class="post-metadata">

**Author:** ![travisbear](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/travisbear/32/24403_2.png) [@travisbear](https://community.grafana.com/u/travisbear)\
**Post date:** [February 2, 2023, 11:23pm UTC](https://community.grafana.com/t/grafana-cant-show-more-than-3-loki-panels-in-a-dashbaord/71591/2 "2023-02-02T23:23:39Z")

</div>

Same issue. Tough to find guidance.

---

<div class="post-metadata">

**Author:** ![cursedclock](https://avatars.discourse-cdn.com/v4/letter/c/ebca7d/32.png) [@cursedclock](https://community.grafana.com/u/cursedclock)\
**Post date:** [December 15, 2023, 9:47am UTC](https://community.grafana.com/t/grafana-cant-show-more-than-3-loki-panels-in-a-dashbaord/71591/3 "2023-12-15T09:47:11Z")

</div>

Forgot about this post but I eventually found what parameters to tweak, adding the following lines fixed it for me:

```auto
limits_config:
    split_queries_by_interval: 24h # default value is too low and causes queries for long periods to hang and eventually be rejected
query_scheduler:
    max_outstanding_requests_per_tenant: 2048 # default value is too low and limits number of concurrent queries and therefore dashboards

```

---

<div class="post-metadata">

**Author:** ![cursedclock](https://avatars.discourse-cdn.com/v4/letter/c/ebca7d/32.png) [@cursedclock](https://community.grafana.com/u/cursedclock)\
**Post date:** [December 15, 2023, 9:48am UTC](https://community.grafana.com/t/grafana-cant-show-more-than-3-loki-panels-in-a-dashbaord/71591/4 "2023-12-15T09:48:29Z")

</div>

Yeah, Loki documentation is quite lacking. especially when it comes to setting up a monolith deployment and tuning it ☹ I do feel like it’s gotten slightly better over the last year or so.

---

<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:** [December 14, 2024, 9:48am UTC](https://community.grafana.com/t/grafana-cant-show-more-than-3-loki-panels-in-a-dashbaord/71591/5 "2024-12-14T09:48:53Z")

</div>

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