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

FilterX expression eval metrics #398

Merged
merged 5 commits into from
Nov 29, 2024
Merged

Conversation

MrAnno
Copy link
Member

@MrAnno MrAnno commented Nov 28, 2024

Depends on #395

@MrAnno MrAnno force-pushed the filterx-expr-metrics branch from 4467917 to 63569a9 Compare November 28, 2024 11:54
MrAnno added a commit to MrAnno/axosyslog that referenced this pull request Nov 28, 2024
Signed-off-by: László Várady <laszlo.varady@anno.io>
MrAnno added a commit to MrAnno/axosyslog that referenced this pull request Nov 28, 2024
Signed-off-by: László Várady <laszlo.varady@anno.io>
@MrAnno MrAnno force-pushed the filterx-expr-metrics branch from 35791aa to 10dd75e Compare November 28, 2024 14:21
MrAnno added a commit to MrAnno/axosyslog that referenced this pull request Nov 28, 2024
Signed-off-by: László Várady <laszlo.varady@anno.io>
@MrAnno MrAnno force-pushed the filterx-expr-metrics branch from 10dd75e to 815384e Compare November 28, 2024 14:28
alltilla
alltilla previously approved these changes Nov 29, 2024
@MrAnno MrAnno dismissed alltilla’s stale review November 29, 2024 09:58

The merge-base changed after approval.

@alltilla
Copy link
Member

alltilla commented Nov 29, 2024

I might consider introducing the name field in Expr (functions already have this, now a lot of other exrps, too), and create one filterx_expr_evals_total counter in Expr with the name label. This could reduce some boilerplate in the expressions, and I think would make it cleaner on the metrics aggregation side.

Nevertheless, this is extremely useful as it is, so approve from me :)

@MrAnno
Copy link
Member Author

MrAnno commented Nov 29, 2024

That was the original idea, but I was really missing the expression type from the metric names (operator, function, etc.), but I didn't want to store that as a string in the expression, so I ended up with this boilerplate.
Maybe next time.

Signed-off-by: László Várady <laszlo.varady@anno.io>
For metrics, but it is also useful for debugging and internal logging.

Signed-off-by: László Várady <laszlo.varady@anno.io>
Signed-off-by: László Várady <laszlo.varady@anno.io>
Signed-off-by: László Várady <laszlo.varady@anno.io>
Signed-off-by: László Várady <laszlo.varady@anno.io>
@MrAnno MrAnno force-pushed the filterx-expr-metrics branch from 815384e to 9ba3447 Compare November 29, 2024 13:59
@alltilla alltilla merged commit fa90673 into axoflow:main Nov 29, 2024
22 checks passed
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.

2 participants