-
Notifications
You must be signed in to change notification settings - Fork 905
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
fix(userspace/falco): properly format numeric values in metrics #2569
Conversation
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
/milestone 0.35.0 |
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.
I don't like too much using nlohmann::json
, but I can't think of a better solution right now.
So, LGTM.
LGTM label has been added. Git tree hash: 7f7f4dbad72727cc9848553c1efb314c0d66ecf7
|
Same 😸 |
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
LGTM label has been added. Git tree hash: c5d429cfd86661daa76b3ec35128b49ceaa512d2
|
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.
@jasondellaluce
please consider fixing #2333 (comment) here :)
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; left a comment about strncat
issue.
/hold
@FedeDP please note in libs we do it the way it currently is for example |
Thanks @jasondellaluce for uniformly changing this. Wouldn't we need a LGTM! |
I don't think so, this changes the types only for the new metrics internal alerts, which is something we haven't released yet. |
Co-authored-by: Federico Di Pierro <nierro92@gmail.com> Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
Wait so |
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.
/approve
LGTM label has been added. Git tree hash: 4a70a7d640c90185e5124c8d5f833a7a6c23272e
|
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: FedeDP, 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:
Approvers can indicate their approval by writing |
Interesting, seems like there is an opportunity to consolidate more in the future. |
/unhold |
What type of PR is this?
/kind bug
/kind cleanup
Any specific area of the project related to this PR?
/area engine
What this PR does / why we need it:
Following up #2333, this makes sure that numeric values are formatted as numbers in the JSON outputs of the new metrics system.
Which issue(s) this PR fixes:
Special notes for your reviewer:
cc @incertum
Does this PR introduce a user-facing change?: