# Dynamic max gauge in single stat is avaialble?

**URL:** <https://community.grafana.com/t/dynamic-max-gauge-in-single-stat-is-avaialble/658>\
**Category:** General\
**Created:** [April 24, 2017, 9:38pm UTC](https://community.grafana.com/t/dynamic-max-gauge-in-single-stat-is-avaialble/658 "2017-04-24T21:38:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![arevur91](https://avatars.discourse-cdn.com/v4/letter/a/ac91a4/32.png) [@arevur91](https://community.grafana.com/u/arevur91)\
**Post date:** [April 24, 2017, 9:38pm UTC](https://community.grafana.com/t/dynamic-max-gauge-in-single-stat-is-avaialble/658/1 "2017-04-24T21:38:06Z")

</div>

Hi, I’m trying to create single stat panel for used\_capacity of the all the nodes. I have total\_used\_capacity and total\_capacity as separate values. It would be ideal to create single stat panel for total\_used\_capacity with threshold as the total\_capacity, meaning dynamic threshold. If not for single stat, other panels are also welcome. Is there any feature like this?

---

<div class="post-metadata">

**Author:** ![daniellee](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/daniellee/32/41_2.png) [@daniellee](https://community.grafana.com/u/daniellee)\
**Post date:** [April 25, 2017, 9:43am UTC](https://community.grafana.com/t/dynamic-max-gauge-in-single-stat-is-avaialble/658/2 "2017-04-25T09:43:14Z")

</div>

You can do this with your query depending on which time series database you are using. It is possible with Graphite and Prometheus but not with InfluxDB (as far as I know).

---

<div class="post-metadata">

**Author:** ![luvpreet](https://avatars.discourse-cdn.com/v4/letter/l/4bbf92/32.png) [@luvpreet](https://community.grafana.com/u/luvpreet)\
**Post date:** [April 25, 2017, 10:24am UTC](https://community.grafana.com/t/dynamic-max-gauge-in-single-stat-is-avaialble/658/3 "2017-04-25T10:24:50Z")

</div>

Yes, this feature will be good. I hope it is added to influxdb also.

---

<div class="post-metadata">

**Author:** ![arevur91](https://avatars.discourse-cdn.com/v4/letter/a/ac91a4/32.png) [@arevur91](https://community.grafana.com/u/arevur91)\
**Post date:** [April 25, 2017, 5:21pm UTC](https://community.grafana.com/t/dynamic-max-gauge-in-single-stat-is-avaialble/658/4 "2017-04-25T17:21:26Z")

</div>

I’m using Influxdb. Is there other plugin/panel that does this kind of job?

---

<div class="post-metadata">

**Author:** ![daniellee](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/daniellee/32/41_2.png) [@daniellee](https://community.grafana.com/u/daniellee)\
**Post date:** [April 25, 2017, 5:35pm UTC](https://community.grafana.com/t/dynamic-max-gauge-in-single-stat-is-avaialble/658/5 "2017-04-25T17:35:47Z")

</div>

Might be possible with the new subqueries feature in InfluxDB: [https://docs.influxdata.com/influxdb/v1.2/query\_language/data\_exploration/#subqueries](https://docs.influxdata.com/influxdb/v1.2/query_language/data_exploration/#subqueries)

You could try asking on the InfluxDB forum: [https://community.influxdata.com/](https://community.influxdata.com/)
