grafana / explore-logs

Repo for the Loki log exploration app
GNU Affero General Public License v3.0
308 stars 14 forks source link

Detected fields: Use "type" to determine when to run avg_over_time queries #865

Closed gtk-grafana closed 2 weeks ago

gtk-grafana commented 2 weeks ago

Currently we're still using the hardcoded list of numeric fields instead of the detected_fields type.

We need to use the detected_field type of "duration", "bytes", "float" and run avg_over_time aggregations

svennergr commented 2 weeks ago

Types are according to https://github.com/grafana/loki/blob/1f9beae0cce4d3ca939bd54d7da0c27d79e0864a/pkg/querier-rf1/querier.go#L763