# Understanding query count in Cloud

**URL:** https://community.influxdata.com/t/understanding-query-count-in-cloud/22839
**Category:** InfluxDB 2
**Tags:** influxdb-cloud-2-0
**Created:** [December 6, 2021, 3:33pm UTC](https://community.influxdata.com/t/understanding-query-count-in-cloud/22839 "2021-12-06T15:33:57Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![PHL](https://avatars.discourse-cdn.com/v4/letter/p/919ad9/32.png) [@PHL](https://community.influxdata.com/u/PHL)
#### Post date: [December 6, 2021, 3:33pm UTC](https://community.influxdata.com/t/understanding-query-count-in-cloud/22839/1 "2021-12-06T15:33:57Z")

</div>

I tried to understand my latest InfluxDB Cloud invoice and when doing so I try to understand where the queries generating the query count numbers come from.

It seems like some thousand queries per hour are generated by a Grafana dashboard. The Flux queries executed to get the data are executed every minute but the query count is far higher than that. The Pricing FAQ hints that the query count “broadly” equals a Flux query. Are there cases a Flux query is not the same as a billable query?

I also have a steady stream of 2000 queries per hour that I have no idea where they are coming from. How do I find out where these queries come from? The data from the \_monitoring bucket/`usage.from()` doesn’t tell.

---

<div class="post-metadata">

### Author: ![JimWilk](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/jimwilk/32/13095_2.png) [@JimWilk](https://community.influxdata.com/u/JimWilk)
#### Post date: [September 16, 2023, 9:34am UTC](https://community.influxdata.com/t/understanding-query-count-in-cloud/22839/2 "2023-09-16T09:34:04Z")

</div>

Hi PHL did you ever get a reply to this? I am also trying to monitor the query count in real-time to prevent issues like this.  
I know in Grafana you can set the Cache per Data Source to 300000ms (customisable) which can help.  
They can also set a refresh limit (on request) to prevent the 5sec auto refreshes.

---

<div class="post-metadata">

### Author: ![PHL](https://avatars.discourse-cdn.com/v4/letter/p/919ad9/32.png) [@PHL](https://community.influxdata.com/u/PHL)
#### Post date: [September 18, 2023, 7:30am UTC](https://community.influxdata.com/t/understanding-query-count-in-cloud/22839/3 "2023-09-18T07:30:52Z")

</div>

Unfortunately not. After concluding Grafana was causing the queries I ended up moving this statistics to an existing RDB instead. My business rely heavily on InfluxDB in our own product and there are no uncertainties in query count when we control our queries ourself.

---

<div class="post-metadata">

### Author: ![Anaisdg](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/anaisdg/32/6401_2.png) [@Anaisdg](https://community.influxdata.com/u/Anaisdg)
#### Post date: [September 20, 2023, 7:52pm UTC](https://community.influxdata.com/t/understanding-query-count-in-cloud/22839/4 "2023-09-20T19:52:04Z")

</div>

Hello @PHL and @JimWilk,  
I know that clustered will provide users with far more operator control and custom partitioning to optimize query performance.

> **[Prototype your app on InfluxDB Cloud Serverless | InfluxDB Cloud Dedicated...](https://docs.influxdata.com/influxdb/cloud-dedicated/guides/prototype-evaluation/#performance-differences)**
>
> Utilize InfluxDB Cloud Serverless to prototype your production application and then move it to InfluxDB Cloud Dedicated. Learn about important differences between Cloud Serverless and Cloud Dedicated and best practices for building an application...

> **[InfluxDB Clustering - High Availability and Scalability | InfluxData](https://www.influxdata.com/blog/influxdb-clustering/)**
>
> InfluxDB clustering is available as part of InfluxDatas commercial product offered in both managed and self-managed capacities.

> **[InfluxDB Clustered Documentation](https://docs.influxdata.com/influxdb/clustered/)**
>
> InfluxDB Clustered is a highly available InfluxDB 3.0 cluster hosted and managed on your own infrastructure. The InfluxDB time series platform is designed to handle high write and query loads. Learn how to use and leverage InfluxDB Clustered for your...

However I don’t know about product plans for improved monitoring of InfluxDB.
