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

[8.x] ESQL: Implement a MetricsAware interface (#120527) #120989

Closed
wants to merge 2 commits into from

Conversation

bpintea
Copy link
Contributor

@bpintea bpintea commented Jan 28, 2025

This implements an interface that export the names of the plan nodes and functions that need to be counted in the metrics.

Also, the metrics are now counted from within the parser. This should allow correct accounting for the cases where some nodes can appear both standalone or part other nodes' children (like Aggregate being a child of INLINESTATS, so no STATS counting should occur).

The functions counting now also validates that behind a name there is actually a function registered.

Closes #115992.

(cherry picked from commit a4482d4)

This implements an interface that export the names of the plan nodes and
functions that need to be counted in the metrics.

Also, the metrics are now counted from within the parser. This should
allow correct accounting for the cases where some nodes can appear both
standalone or part other nodes' children (like Aggregate being a child
of INLINESTATS, so no STATS counting should occur).

The functions counting now also validates that behind a name there is
actually a function registered.

Closes elastic#115992.

(cherry picked from commit a4482d4)
@bpintea bpintea added >enhancement backport auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) :Analytics/ES|QL AKA ESQL v8.18.0 labels Jan 28, 2025
Copy link
Contributor

@alex-spies alex-spies left a comment

Choose a reason for hiding this comment

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

Can we hold this for a bit? I think we need to revert it on main as it can contribute to OOMs.

@alex-spies alex-spies removed the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Jan 28, 2025
@bpintea
Copy link
Contributor Author

bpintea commented Jan 28, 2025

#120527 reverted in main (#121036).

@bpintea bpintea closed this Jan 28, 2025
@bpintea bpintea deleted the port/8.x_120527 branch January 28, 2025 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants