Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add config param for autocomplete filtering #2433

Merged
merged 5 commits into from
May 8, 2023

Conversation

mapno
Copy link
Member

@mapno mapno commented May 5, 2023

What this PR does:

Add new param autocomplete_filtering_enabled to configure filtering results in tag value search /api/v2/search/<tag>/values. If disabled, no filtering is done.

It also fallbacks to no filtering if there is no query or it's invalid. It's much faster.

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

docs/sources/tempo/configuration/_index.md Show resolved Hide resolved
go.mod Outdated Show resolved Hide resolved
@mapno mapno enabled auto-merge (squash) May 5, 2023 13:35
Copy link
Member

@electron0zero electron0zero left a comment

Choose a reason for hiding this comment

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

one small nit, rest lgtm 👍

@@ -749,3 +750,90 @@ func BenchmarkInstanceSearchUnderLoad(b *testing.B) {
// exiting and cleaning up
time.Sleep(1 * time.Second)
}

func TestExtractMatchers(t *testing.T) {
Copy link
Member

Choose a reason for hiding this comment

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

nit: let's also test a query that does math, so something like {.http.status_code = 200} = 1+1

@mapno mapno merged commit 451ed3b into grafana:main May 8, 2023
14 checks passed
@mapno mapno deleted the fallback-old-tag-value-search branch May 8, 2023 10:39
mapno added a commit that referenced this pull request May 8, 2023
* Add config param for autocomplete filtering

* Docs

* Fix

* Fix test

* Address comments
mapno added a commit to mapno/tempo that referenced this pull request May 10, 2023
* Add config param for autocomplete filtering

* Docs

* Fix

* Fix test

* Address comments
mapno added a commit that referenced this pull request May 10, 2023
…2447)

* Add config param for autocomplete filtering (#2433)

* Add config param for autocomplete filtering

* Docs

* Fix

* Fix test

* Address comments

* Add job & instance labels to span metrics, a new target_info metrics, and the ability to customize dimension label mapping (#2261)

* add job, instance, target_info

* add test & gofmt

* fmt & test

* fix e2e test

* add custom dimension mapping

* updated test for custom mapping and changelog

* fmt

* changed the dimension mapping logic

* fix test

* update logic for job instance

* fix test & lint

* add service back and add gauge for target_info

* added overrides and docs

* undo config test change

* typo

* change traces_spanmetrics_target_info to just target_info

* lint

* fix overrides

* handle batches with different resource attributes

* redo counter

* refactor registry

* refactor label pair

* oops

* oops

* rebase mishap

* remove job instance by default

* refactor

* rebase hell

* count

* lint

* remove arbitary number

* traces_target_info

* comments

* sanitize labels for target info

* small refactor to improve perf

* rebased

* rebased

---------

Co-authored-by: Jennie Pham <94262131+ie-pham@users.noreply.github.com>
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.

None yet

2 participants