From 5d57236a0c92cd4287b7704817ced3e4c53dc7b6 Mon Sep 17 00:00:00 2001 From: Tom Ratcliffe Date: Mon, 24 Feb 2025 10:00:22 +0000 Subject: [PATCH] Alerting: Add webhook timeout option for upstream alertmanagers (#101154) --- .../unified/utils/cloud-alertmanager-notifier-types.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/public/app/features/alerting/unified/utils/cloud-alertmanager-notifier-types.ts b/public/app/features/alerting/unified/utils/cloud-alertmanager-notifier-types.ts index a172c9cd19d..96bc19b4aff 100644 --- a/public/app/features/alerting/unified/utils/cloud-alertmanager-notifier-types.ts +++ b/public/app/features/alerting/unified/utils/cloud-alertmanager-notifier-types.ts @@ -400,6 +400,14 @@ export const cloudNotifierTypes: Array> = [ }, } ), + option( + 'timeout', + 'Timeout', + 'The maximum time to wait for a webhook request to complete, before failing the request and allowing it to be retried. The default value of 0s indicates that no timeout should be applied. NOTE: This will have no effect if set higher than the group_interval.', + { + placeholder: 'Use duration format, for example: 1.2s, 100ms', + } + ), httpConfigOption, ], },