-
Notifications
You must be signed in to change notification settings - Fork 544
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
Search: parse tags from a tags query parameter #1055
Conversation
7e1599e
to
2f579ef
Compare
You can send a test request using curl:
This will send the following request:
|
# Conflicts: # modules/querier/querier_search.go
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Agree with using logfmt (to start at least). Addresses all of my concerns in #1038 (comment)
What this PR does:
Experiment to try out parsing search request tags from a
tags
query parameter.Instead of specifying every tag as it's own query parameter, we put them all in the
tags
query parameter, separated by a space (logfmt style).To remain compatible with the current Grafana search implementation we still parse top-level tag query parameters. As Grafana updates this can be removed.
The actual parsing of tags is handled by go-logfmt.
In a next PR I plan to move this code into
pkg/api
and reuse code withParseBackendSearch
(if it makes sense)Which issue(s) this PR fixes:
Experiment related to #1038
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]