Skip to content

Conversation

@arturminchukov
Copy link
Contributor

@arturminchukov arturminchukov commented Dec 10, 2025

First part of issue #108

Describe Your Changes

Added quick level filter, which allows filtering logs by level according to Log Level Rules and the base level field.
You can select several levels using shift.
How it works:

  1. if no query, then use the level query
  2. if the query exists, then looking for pipe function ----> filterName1: filterValue1 | filterName2: filterValue2
  3. if no pipe, go to step (5) ----> filterName1: filterValue2
  4. if a pipe exists, find the first part of the query ----> filterName1: filterValue1
  5. looking for other level filters in the query ----> filterName1: filterValue1 level: info
  6. If the level filter exists, add a new level filter at the beginning of the query ----> level: newinfo filterName1: filterValue1 level: info ...
  7. if the level filter doesn't exist, add a new pipe, and before pipe add level filter ----> level: newinfo | filterName1 ...

The "Unknown" filter has a different behavior:

  1. Selecting the unknown filter will deselect other filters.
  2. Selecting the 'other' filter when the unknown filter is selected will deselect the unknown filter.

Demo video:

Screen.Recording.2025-12-10.at.17.51.51.mov

Checklist

The following checks are mandatory:

@arturminchukov arturminchukov linked an issue Dec 10, 2025 that may be closed by this pull request
@arturminchukov arturminchukov force-pushed the 108-add-helpstooltips-for-most-common-queries-in-grafana branch 3 times, most recently from 502d9da to 293c807 Compare December 10, 2025 15:23
…g to `Log Level Rules` and the base level field
@arturminchukov arturminchukov force-pushed the 108-add-helpstooltips-for-most-common-queries-in-grafana branch from 293c807 to ae349f2 Compare December 10, 2025 15:27
@arturminchukov arturminchukov marked this pull request as ready for review December 11, 2025 07:26
Copy link
Contributor

@dmitryk-dk dmitryk-dk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@arturminchukov arturminchukov self-assigned this Dec 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add helps&tooltips for most common queries in Grafana

2 participants