# Count value of ingested Gauge metric not  in DQL

**URL:** <https://community.dynatrace.com/t/count-value-of-ingested-gauge-metric-not-in-dql/56246>\
**Category:** Dynatrace API\
**Tags:** dynatrace-managed, data-ingest, dynatrace-api\
**Created:** [June 19, 2026, 8:50pm UTC](https://community.dynatrace.com/t/count-value-of-ingested-gauge-metric-not-in-dql/56246 "2026-06-19T20:50:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![macosta](https://avatars.discourse-cdn.com/v4/letter/m/a3d4f5/32.png) [@macosta](https://community.dynatrace.com/u/macosta)\
**Post date:** [June 19, 2026, 8:50pm UTC](https://community.dynatrace.com/t/count-value-of-ingested-gauge-metric-not-in-dql/56246/1 "2026-06-19T20:50:58Z")

</div>

Sorry if this was asked before but I couldn’t find a clear explanation documented.  
We are ingesting a gauge metric using “api/v2/metrics/ingest”&nbsp; like this:

**test-metric-ingest.novedades.cantidadGa,dt.entity.custom\_device=“CUSTOM\_DEVICE-B558D0293AAAAAAA”,entidad=suplementos&nbsp; gauge,min=17.1,max=17.3,sum=34.4,count=2**

If i check the metric in Data Explorer using the Count aggregation it shows **2** , as expected sisnce that was what we ingested:

 ![macosta_0-1781901945929.png](https://global.discourse-cdn.com/dynatrace/original/1X/09eed0211347b0be94663004dce4121ac9aefadf.png)

But, when moving to Grail and DQL,&nbsp; modern Dashboards/Notebook panel always shows count=1 :

 ![macosta_1-1781902031778.png](https://global.discourse-cdn.com/dynatrace/original/3X/7/2/7288c73c6e235589bbfb6862794423f4d19e0e73.png)

So, is it useless to ingest gauge metrics with different counts for modern panels? Will this be corrected in the future?

---

<div class="post-metadata">

**Author:** ![sujit\_k\_singh](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@sujit\_k\_singh](https://community.dynatrace.com/u/sujit_k_singh)\
**Post date:** [June 22, 2026, 5:14am UTC](https://community.dynatrace.com/t/count-value-of-ingested-gauge-metric-not-in-dql/56246/2 "2026-06-22T05:14:42Z")

</div>

Hi&nbsp;[@macosta](https://community.dynatrace.com/user/92962)

Grail no longer distinguishes between gauge and count formats at ingest time — it treats each ingested data point as a single observation regardless of the count parameter you pass&nbsp;[Troubleshooting — Dynatrace Docs](https://docs.dynatrace.com/docs/analyze-explore-automate/metrics/troubleshooting)

In Grail’s model, your single API call = 1 data point, so&nbsp;count=1. The&nbsp;count=2&nbsp;in your ingest payload is metadata the classic engine honors but Grail does not propagate the same way.

This Means. Data Explorer: Respects the full gauge envelope (min, max, sum, count) as ingested  
Grail/DQL (modern panels): Treats each ingest call as one sample — the count field from the gauge payload is effectively ignored for aggregation purposes.

This appears to be a known architectural difference rather than a bug that will be “fixed,” as Grail was designed with a different data model.

Thanks,

Sujit
