influxdata / flux

Flux is a lightweight scripting language for querying databases (like InfluxDB) and working with data. It's part of InfluxDB 1.7 and 2.0, but can be run independently of those.

Home Page:https://influxdata.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add parameter to `histogramQuantile` to control non-monotonic behavior

wolffcm opened this issue · comments

Often when users invoke histogramQuantile especially in cloud, they may be aggregating data from several sources. Due to the eventually consistent nature of InfluxDB, it's possible that missing data makes the bins not be monotonically increasing when sorted by upper bound.

The current behavior for this is to produce an error:

histogram record counts are not monotonic

We should instead provide a way for users to specify different behavior if that's what they want:

  • Produce no output
  • Force the bins to be monotonic