Skip to content

chore: improves logging around webhook dispatch failure#4511

Merged
SuperQ merged 1 commit intoprometheus:mainfrom
CameronJHall:main
Nov 5, 2025
Merged

chore: improves logging around webhook dispatch failure#4511
SuperQ merged 1 commit intoprometheus:mainfrom
CameronJHall:main

Conversation

@CameronJHall
Copy link
Contributor

description

Tying the alerts that are being processed to failures reported under the dispatcher can be tricky, especially if there are many possible alerts that go through the same integration with different origins, etc.

There are a few different ways we could associate these like using the aggrGroup logger instead of the dispatcher logger, including the alerts list in the log directly. It felt cleanest to just attach the aggrGroup key to the log so that it can be associated with any logs that come from the aggrGroup logger. I'm open to alternatives though.

changes

  • adds aggrGroup key to logs reporting dispatcher execution errors
  • adds matching debug log to webhook notifier as it was missing

Signed-off-by: CameronHall <cameron.hall@target.com>
@CameronJHall
Copy link
Contributor Author

CameronJHall commented Aug 18, 2025

It's not clear why the cli tests would have failed here. Debug logs show there was only one alert in the group. 😃

Copy link
Contributor

@Spaceman1701 Spaceman1701 left a comment

Choose a reason for hiding this comment

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

Also LGTM

@SuperQ SuperQ merged commit 80d0265 into prometheus:main Nov 5, 2025
11 checks passed
@SoloJacobs SoloJacobs mentioned this pull request Nov 24, 2025
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.

4 participants