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

feat(alertmanager): fix labels for alertmanager #870

Merged
merged 4 commits into from
May 22, 2024

Conversation

Umaaz
Copy link
Contributor

@Umaaz Umaaz commented Apr 30, 2024

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

Any specific area of the project related to this PR?

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

/area build

/area config

/area outputs

/area tests

What this PR does / why we need it:
The labels used by alertmanager need to match the regex [a-zA-Z_][a-zA-Z0-9_]*.

When adding a custom rule to get the AWS session name the label passed in is json.value[/user/extra/sessionName] which is currently passes out to alertmanager as json_value_/user/extra/sessionName which doesn't work in Alertmanager as the / are invalid.

Special notes for your reviewer:

@poiana poiana requested review from cpanato and Issif April 30, 2024 16:37
@poiana poiana added the size/M label Apr 30, 2024
@Issif Issif added this to the 2.29.0 milestone Apr 30, 2024
@Issif Issif self-assigned this Apr 30, 2024
outputs/alertmanager.go Outdated Show resolved Hide resolved
outputs/alertmanager_test.go Outdated Show resolved Hide resolved
@Issif
Copy link
Member

Issif commented May 15, 2024

Can you fix the CI error please?

@Umaaz
Copy link
Contributor Author

Umaaz commented May 16, 2024

Can you fix the CI error please?

will do - sorry I have been away.

@poiana poiana added size/L and removed size/M labels May 16, 2024
@Umaaz
Copy link
Contributor Author

Umaaz commented May 22, 2024

Is there anything else pending on this? I think it is ready.

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.

Sorry for the delay, I was off then I traveled for work. It's good to me. Thanks.

@poiana poiana added the lgtm label May 22, 2024
@poiana
Copy link

poiana commented May 22, 2024

LGTM label has been added.

Git tree hash: 16e88b5b39b3f1e7b86c41a55e932690fc53c149

@poiana
Copy link

poiana commented May 22, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Issif, Umaaz

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 poiana merged commit 615ca18 into falcosecurity:master May 22, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants