New proposal: Add support for x-functions in MQE#10305
New proposal: Add support for x-functions in MQE#10305wilfriedroset wants to merge 1 commit intografana:mainfrom
Conversation
|
I believe this could related to #10067 which centralize the work around MQE. |
Signed-off-by: Wilfried Roset <wilfriedroset@users.noreply.github.com>
d0e3c9a to
12e88c7
Compare
|
Hi @wilfriedroset o/ Thanks for working on this and putting together the proposal! My apologies for the slow response, it's been a busy holiday period. Firstly, I think this proposal puts forward two things that I think are better to reason about separately. (A): That Mimir should accept custom functions, and From discussions with the Mimir team there is generally no opposition to (A). That is, where it makes sense, Mimir has the option to consider functions outside of the PromQL feature set. "Where it makes sense" needs to take many things into account such as: does it fit upstream, is it a Mimir only query, does it benefit users, what is the maintenance overhead, the amount of complexity and so on. Given the number of factors to consider it's difficult to blanket say we'll accept "x-functions" or similar. As such, I think it's okay to assume that Mimir is open to custom functions and we will discuss each one on their own merits. So for the purposes for this PR I will consider it as a proposal to add This was discussed at Grafana and had the following notes:
All that is not to say we would reject this proposal for Mimir, but I think we need to do two things first:
Hope that makes sense, and sorry for the amount of hurdles to overcome on this one! |
|
I added a TODO to my list to write up a braindump about the whole “xrate complex”. I wanted to do this for a long time, and maybe it's the right time now. It will be very rough, but I'll explain it in person once it is done. I'll let you know. |
|
Thank you for your contribution. This pull request has been marked as stale because it has had no activity in the last 150 days. It will be closed in 30 days if there is no further activity. If you need more time, you can add a comment to the PR. |
|
This is not staled please do not close it. WDYT @beorn7 ? |
|
prometheus/proposals#52 is different from "add support for x-functions". It adds two new modifiers to range selectors as an attempt to distill the many proposals and thoughts of the past into something that hopefully will do the job. (It is in itself an experimental feature and will be iterated upon depending on the outcome when it is used in real life.) With prometheus/proposals#52 implemented in Prometheus, I would assume MQE will re-implement the same feature. This will then re-establish feature parity with PromQL (rather than creating an additional deviation as proposed in this PR). Given that prometheus/proposals#52 is well underway, I actually don't see any need to still implement "X-functions" in MQE. |
|
Thank you for your contribution. This pull request has been marked as stale because it has had no activity in the last 150 days. It will be closed in 30 days if there is no further activity. If you need more time, you can add a comment to the PR. |
|
Closing in favour of prometheus/proposals#52, which we're actively working to bring into MQE (#13398) |
What this PR does
This PR follows a discussion on slack. It introduce a new proposal regarding the support for x-functions in MQE.
Which issue(s) this PR fixes or relates to
N/A
Checklist
CHANGELOG.mdupdated - the order of entries should be[CHANGE],[FEATURE],[ENHANCEMENT],[BUGFIX].about-versioning.mdupdated with experimental features.