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

cleanup(userspace, config): improve metrics UX, add include_empty_values option #2593

Merged
merged 5 commits into from
May 31, 2023

Conversation

incertum
Copy link
Contributor

@incertum incertum commented May 29, 2023

What type of PR is this?

Uncomment one (or more) /kind <> lines:

/kind bug

/kind cleanup

/kind design

/kind documentation

/kind failing-test

/kind feature

/kind release

Any specific area of the project related to this PR?

Uncomment one (or more) /area <> lines:

/area build

/area engine

/area tests

/area proposals

/area CI

What this PR does / why we need it:

Improve metrics UX: add send_numeric_zero_values config to allow users to save space
when using metrics option, while still also allowing to send all keys (especially because we don't document the schema)

@jasondellaluce will add to the falco.yaml description after rebasing given the current merge conflict with another PR.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

cleanup(userspace, config): improve metrics UX, add include_empty_values option

@leogr
Copy link
Member

leogr commented May 29, 2023

/milestone 0.35.0

/cc @jasondellaluce

@poiana poiana requested a review from jasondellaluce May 29, 2023 09:06
@poiana poiana added this to the 0.35.0 milestone May 29, 2023
incertum added 2 commits May 29, 2023 13:50
add send_numeric_zero_values config to allow users to save space
when using metrics option, while still also allowing
to send all keys (especially because we don't document the schema)

Signed-off-by: Melissa Kilby <melissa.kilby.oss@gmail.com>
Signed-off-by: Melissa Kilby <melissa.kilby.oss@gmail.com>
@incertum incertum force-pushed the metrics-numeric-zero-config branch from 2a7dbff to 972a66e Compare May 29, 2023 14:00
Copy link
Contributor

@jasondellaluce jasondellaluce left a comment

Choose a reason for hiding this comment

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

LGTM Melissa, thanks!

Only suggestion: can we rename send_numeric_zero_values to something like include_empty_values? This way the concept could generalize also to to empty string values, not sticking to just numbers in the future. WDTY?

incertum and others added 2 commits May 30, 2023 17:04
Co-authored-by: Jason Dellaluce <jasondellaluce@gmail.com>
Signed-off-by: Melissa Kilby <melissa.kilby.oss@gmail.com>
Signed-off-by: Melissa Kilby <melissa.kilby.oss@gmail.com>
@poiana poiana added size/L and removed size/M labels May 30, 2023
@incertum
Copy link
Contributor Author

Thanks @jasondellaluce in addition, there was a small hiccup and n_drops_perc got misplaced somehow, moved it back out to the correct location as it was initially, PTAL.

@incertum incertum changed the title cleanup(userspace, config): improve metrics UX, add send_numeric_zero_values option cleanup(userspace, config): improve metrics UX, add include_empty_values option May 30, 2023
Signed-off-by: Melissa Kilby <melissa.kilby.oss@gmail.com>
@poiana
Copy link
Contributor

poiana commented May 31, 2023

LGTM label has been added.

Git tree hash: c806a56385ce5bd667f75130cf84c909939bd3fe

@poiana
Copy link
Contributor

poiana commented May 31, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: incertum, jasondellaluce, leogr

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [jasondellaluce,leogr]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@poiana poiana merged commit 1e6d016 into falcosecurity:master May 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants