grafana / loki

Like Prometheus, but for logs.
https://grafana.com/loki
GNU Affero General Public License v3.0
23.42k stars 3.4k forks source link

Avg with quantile_over_time throws an error #13793

Open prajon84 opened 1 month ago

prajon84 commented 1 month ago

Describe the bug When building LogQL queries that contain avg by (...) (quantile_over_time(....) throws an error as: SelectSamples unimplemented: the query-frontend cannot evaluate an expression that selects samples. this is likely a bug in the query engine. please contact your system operator

To Reproduce Steps to reproduce the behavior:

  1. Using hosted Grafana Loki
  2. Any query (in dashboard or explore)
  3. Query: avg by(service) (quantile_over_time(0.75, {service="<service_name>"} | json | unwrap attributes_measurement_value [5m]))

receive SelectSamples unimplemented: the query-frontend cannot evaluate an expression that selects samples. this is likely a bug in the query engine. please contact your system operator

Expected behavior Avg by(...) (quantile_over_time(...)) should work.

Environment: Hosted

Screenshots, Promtail config, or terminal output image.

prajon84 commented 1 month ago

cc: @chaudum