From d2f721c18e7bcb1044d51db07c6d1fe82621abff Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Wed, 26 Oct 2022 19:26:48 +0200 Subject: [PATCH] Docs: (Whats new 9.2) Prom Stream Parser (#57603) (#57693) * Docs: (Whats new 9.2) Prom Stream Parser * Update docs/sources/whatsnew/whats-new-in-v9-2.md Co-authored-by: Garrett Guillotte <100453168+gguillotte-grafana@users.noreply.github.com> Co-authored-by: Garrett Guillotte <100453168+gguillotte-grafana@users.noreply.github.com> (cherry picked from commit dfdc9bcbc1491beb746914fcb8645436819d8aee) Co-authored-by: Kyle Brandt --- docs/sources/whatsnew/whats-new-in-v9-2.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/sources/whatsnew/whats-new-in-v9-2.md b/docs/sources/whatsnew/whats-new-in-v9-2.md index df46a65e4f9..baaf519f9fb 100644 --- a/docs/sources/whatsnew/whats-new-in-v9-2.md +++ b/docs/sources/whatsnew/whats-new-in-v9-2.md @@ -226,3 +226,12 @@ Prometheus users running Prometheus v2.24 and higher can use the [labels endpoin This decreases load times for templated high-cardinality Prometheus instances. If you want to benefit from this endpoint you must first configure the Prometheus type and version in any Prometheus data sources' [configuration]({{< relref "../datasources/prometheus/" >}}). + +## New Prometheus streaming parser + +In Grafana v9.2, you can enable the `prometheusStreamingJSONParser` [feature toggle]({{< relref "../setup-grafana/configure-grafana/#feature_toggles" >}}) to use a better-performing, memory-efficient streaming JSON client for Prometheus. +We'll make this client the default in Grafana v9.3. + +When Prometheus returns `NaN` values, this new client doesn't change them, neither to the value `null` nor to `0` as in recent Grafana versions. +If you use this new Prometheus streaming parser with Grafana Managed Alerts, this change in behavior might trigger alerts. +To avoid this, select the "Drop non-numeric values" option in the Reduce expression to drop `NaN` values.