Skip to content

Commit

Permalink
Add 'timestamp' annotation to AM alerts
Browse files Browse the repository at this point in the history
Bug: T273716
Change-Id: I156f32925f6938b20dbe36959d126cfb9ee4e490
  • Loading branch information
Filippo Giunchedi authored and denisse-dev committed Dec 6, 2023
1 parent 6f76e88 commit 80886c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions LibreNMS/Alert/Transport/Alertmanager.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ public function deliverAlert(array $alert_data): bool
'generatorURL' => $gen_url,
'annotations' => [
'summary' => $alert_data['title'],
'description' => $alertmanager_msg,
'timestamp' => $alert_data['timestamp'],
],
'labels' => [
'alertname' => $alert_data['name'],
Expand Down

0 comments on commit 80886c4

Please sign in to comment.