-
Notifications
You must be signed in to change notification settings - Fork 454
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
[query] Add parse expression functionality #2278
Conversation
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 (but also not required, if you write before status code sent it will default to 200=ok)
0884506
to
91aa625
Compare
var req *prompb.ReadRequest | ||
var rErr *xhttp.ParseError | ||
switch { | ||
case r.Method == http.MethodGet && strings.TrimSpace(r.FormValue("expr")) != "": |
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.
Do we have to change this to "query" or what have you to make it compatible with the PromQL query client library methods?
Adds parse functionality to expose the raw fetches within a query.