trinodb / grafana-trino

The Trino datasource allows to query and visualize Trino data from within Grafana.
Apache License 2.0
35 stars 10 forks source link

Add an option to "trim edges" #213

Open sjones94549 opened 1 year ago

sjones94549 commented 1 year ago

The first- and last- buckets in date histograms are often incomplete. Rather than showing artificially-low values near the edges (which look like steep declines in whatever metric is aggregated), it'd be nice to optionally "trim" N buckets off the ends. The ES data source allows this in its Date Histogram with the "Trim Edges" option.

For my current use-case, I can get away with AND date(field) < date(NOW() - INTERVAL '1' day), but the option would be extra snazzy.