Alertmanager: Support limits for silences (#90826)

* Alertmanager: support limits for silences

* update grafana/alerting to latest main
This commit is contained in:
Santiago
2024-07-24 14:22:29 +02:00
committed by GitHub
parent 7180f8a7d1
commit b79b38f02c
13 changed files with 64 additions and 45 deletions
@@ -127,6 +127,10 @@ func NewAlertmanager(ctx context.Context, orgID int64, cfg *setting.Cfg, store A
PeerTimeout: cfg.UnifiedAlerting.HAPeerTimeout,
Silences: silencesOptions,
Nflog: nflogOptions,
Limits: alertingNotify.Limits{
MaxSilences: cfg.UnifiedAlerting.AlertmanagerMaxSilencesCount,
MaxSilenceSizeBytes: cfg.UnifiedAlerting.AlertmanagerMaxSilenceSizeBytes,
},
}
l := log.New("ngalert.notifier.alertmanager", "org", orgID)