grafana / explore-logs

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

Different aggregation for fields #485

Open cyriltovena opened 3 months ago

cyriltovena commented 3 months ago

By default we currently do our best to figure if we should avg_over_time vs count_over_time a detected field value.

We should allow different aggregation using a select component.

https://ops.grafana-ops.net/a/grafana-lokiexplore-app/explore?var-ds=c-R8UWvVk&var-patterns=&var-lineFilter=&var-logsFormat=%20%7C%20logfmt&var-filters=service_name%7C%3D%7Cpyroscope%2Fdistributor&mode=service_details&actionView=fields&urlColumns=%5B%5D&visualizationType=%22logs%22&var-fieldBy=request_body_size&var-fields=orgID%7C%3D%7C217060

For instance in the screenshot below

image

We want to see the rate of data pushed for a single tenant over time.