grafana / explore-logs

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

Patterns: changing time range to something far into the past returns no patterns #491

Closed gtk-grafana closed 1 week ago

gtk-grafana commented 3 months ago

Users don't know that patterns are currently stored in memory, and are only visible for the past few(?) hours.

Can we add a message to let users know when they're out of a time range where patterns are shown?

If there's not an error from the patterns API, we currently show this when the time range is too old:

image

Can we detect that patterns are configured, but the time range is too old and display a different message?

gtk-grafana commented 3 months ago

@cyriltovena @matryer is there a doc that we can link to that shows some more information on how users should expect patterns to work? Is it the last 2 hours? The loki HTTP API doc doesn't say: https://grafana.com/docs/loki/latest/reference/loki-http-api/#patterns-detection, and we probably want something more user focused.

gtk-grafana commented 1 week ago

Fixed by https://github.com/grafana/explore-logs/pull/618