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

Allow filtering silences by createdBy author #2718

Merged
merged 1 commit into from
Nov 9, 2021

Conversation

nre-ableton
Copy link
Contributor

This PR adds a --created-by argument to the amtool silence query command so that silences can be filtered by the author they were created with in amtool silence add --author=<name>.

Fixes #2410, fixes #2476.

@nre-ableton
Copy link
Contributor Author

I was unsure if the argument should be called --created-by to match the createdBy name, or --author to match amtool silence add --author. Please let me know if I should change it.

@nre-ableton nre-ableton force-pushed the nre/main/created-by branch 2 times, most recently from 9421d1b to 2ca21ae Compare September 27, 2021 14:45
@nre-ableton
Copy link
Contributor Author

Ping @roidelapluie @simonpasquier -- my team would really like to get this issue merged so we can filter silences more effectively. Would one of you mind reviewing this PR? Thanks! 👍

cli/silence_query.go Outdated Show resolved Hide resolved
@roidelapluie
Copy link
Member

sure :)

@nre-ableton
Copy link
Contributor Author

@roidelapluie Thanks for the review and the suggestion; I amended it to the commit.

cli/silence_query.go Outdated Show resolved Hide resolved
@roidelapluie
Copy link
Member

Thanks, last suggestions.

This commit adds a `--created-by` argument to the `amtool silence
query` command so that silences can be filtered by the author they
were created with in `amtool silence add --author=<name>`.

Signed-off-by: nre <nre@ableton.com>
@nre-ableton
Copy link
Contributor Author

@roidelapluie My CI build failed, but it's not clear to me at all why. I can't retrigger the build, and the docker build command works fine for me locally. What should I do?

@roidelapluie roidelapluie merged commit 5b825e2 into prometheus:main Nov 9, 2021
@roidelapluie
Copy link
Member

I relaunched it

@roidelapluie
Copy link
Member

Thanks!

@nre-ableton nre-ableton deleted the nre/main/created-by branch November 9, 2021 12:10
@nre-ableton
Copy link
Contributor Author

@roidelapluie Thanks so much for all your help! 👍

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.

Allow filtering silences by creator Silences UI Query Match
2 participants