Skip to content

Conversation

@SoloJacobs
Copy link
Contributor

@SoloJacobs SoloJacobs commented Dec 12, 2025

This PR is an update of #3491 that's updated to work against main, which in turn is an update of #3139 .
So far, I have held off on making some changes myself, except for what was necessary to get CI green again. I also have a small laundry list of things I would fix here, but I would like a second pair of eyes on this request first.

This PR is an extension of @OktarianTB's 9-month old PR #3139 that's updated to work against the latest code in main, to hopefully increase its likelihood of being merged.

Credit for this work goes to @OktarianTB - I believe I've marked the commit authorship correctly, please let me know if I made any mistakes here.

This PR aims to make progress towards #2845 by adding a new command to amtool to send test notifications to every receiver in an alertmanager config file. The command takes in an alertmanager config file and optionally an alert file to mock values for labels and annotations. This is the MVP for the command, potentially a few other options can be added later if deemed of use. This largely re-uses the equivalent implementation in grafana/grafana.

I have only tested this with Slack so far.

OktarianTB and others added 18 commits December 12, 2025 08:44
Signed-off-by: Oktarian TB <[email protected]>
Signed-off-by: Alex Weaver <[email protected]>
Signed-off-by: Solomon Jacobs <[email protected]>
Signed-off-by: Oktarian TB <[email protected]>
Signed-off-by: Alex Weaver <[email protected]>
Signed-off-by: Solomon Jacobs <[email protected]>
Co-authored-by: Solomon Jacobs <[email protected]>
Signed-off-by: Oktarian TB <[email protected]>
Signed-off-by: Alex Weaver <[email protected]>
Signed-off-by: Solomon Jacobs <[email protected]>
Signed-off-by: Oktarian TB <[email protected]>
Signed-off-by: Alex Weaver <[email protected]>
Signed-off-by: Solomon Jacobs <[email protected]>
Signed-off-by: Oktarian TB <[email protected]>
Signed-off-by: Alex Weaver <[email protected]>
Signed-off-by: Solomon Jacobs <[email protected]>
Signed-off-by: Oktarian TB <[email protected]>
Signed-off-by: Alex Weaver <[email protected]>
Signed-off-by: Solomon Jacobs <[email protected]>
Signed-off-by: Oktarian TB <[email protected]>
Signed-off-by: Alex Weaver <[email protected]>
Signed-off-by: Solomon Jacobs <[email protected]>
Signed-off-by: Oktarian TB <[email protected]>
Signed-off-by: Alex Weaver <[email protected]>
Signed-off-by: Solomon Jacobs <[email protected]>
Signed-off-by: Alex Weaver <[email protected]>
Signed-off-by: Solomon Jacobs <[email protected]>
Signed-off-by: Alex Weaver <[email protected]>
Signed-off-by: Solomon Jacobs <[email protected]>
Signed-off-by: Alex Weaver <[email protected]>
Signed-off-by: Solomon Jacobs <[email protected]>
Signed-off-by: Alex Weaver <[email protected]>
Signed-off-by: Solomon Jacobs <[email protected]>
Signed-off-by: Solomon Jacobs <[email protected]>
* Update logging
* Add argument to notify.NewIntegration

Signed-off-by: Solomon Jacobs <[email protected]>
Signed-off-by: Solomon Jacobs <[email protected]>
Signed-off-by: Solomon Jacobs <[email protected]>
@SoloJacobs SoloJacobs changed the title (WIP) amtool: command to test receivers amtool: command to test receivers Dec 12, 2025
@SoloJacobs SoloJacobs marked this pull request as ready for review December 12, 2025 16:00
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.

3 participants