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

Include numeric values from falco payloads in alertmanager alerts #177

Merged
merged 1 commit into from
Jan 28, 2021

Conversation

alsm
Copy link
Contributor

@alsm alsm commented Jan 28, 2021

Use the json UseNumber() option to not decode numbers as float64 then
when creating the am payload can just call .String on the json.Number
this means that ints don't get unnecessary precision and floats
aren't cut off short.

resolves #176

/kind feature
/area outputs

@poiana
Copy link

poiana commented Jan 28, 2021

Welcome @alsm! It looks like this is your first PR to falcosecurity/falcosidekick 🎉

@poiana poiana requested review from Issif and leogr January 28, 2021 14:31
@poiana poiana added the size/S label Jan 28, 2021
Use the json UseNumber() option to not decode numbers as float64 then
when creating the am payload can just call .String on the json.Number
this means that ints don't get unnecessary precision and floats
aren't cut off short.

resolves falcosecurity#176

Signed-off-by: Al Stockdill-Mander <asm@uk.ibm.com>
Copy link
Member

@Issif Issif left a comment

Choose a reason for hiding this comment

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

👍

@poiana
Copy link

poiana commented Jan 28, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Issif

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@poiana
Copy link

poiana commented Jan 28, 2021

LGTM label has been added.

Git tree hash: 5e4a895d25db4a1b18be628e3b6b2e6bc4139b65

@poiana poiana merged commit d5255d1 into falcosecurity:master Jan 28, 2021
@alsm alsm deleted the am_numbers branch January 28, 2021 15:47
@Issif Issif added this to the 2.21.0 milestone Feb 11, 2021
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.

Alertmanager forwarder only add fields for string values.
3 participants