Alerts - Webhook
Objective
This document provides instructions on how to configure alert notifications in F5® Distributed Cloud Services to route alert messages to your webhook. For information on alerts, see Alerts.
Prerequisites
- A valid Account is required.
Note: If you do not have an account, see Create an Account.
- A webhook.
Configuration
Configuring to send alerts requires you to create alert receiver, and policy in the F5® Distributed Cloud Console.
Alerts can be created in different services and namespaces. Alert functionality is available in Multi-Cloud Network Connect
, Multi-Cloud App Connect
, Web App & API Protection
, Distributed Apps
, Audit Logs and Alerts
and Shared Configuration
.
This example shows alert notifications for Webhook
setup in Shared Configuration
.
Step 1: Create Alert Policy.
- Open
F5 Distributed Cloud Console
homepage, selectShared Configuration
box.
Note: Homepage is role based, and your homepage may look different due to your role customization. Select
All Services
drop-down menu to discover all options. Customize Settings:Administration
>Personal Management
>My Account
>Edit work domain & skills
button >Advanced
box > checkWork Domain
boxes >Save changes
button.
Figure: Homepage
Note: Confirm
Namespace
feature is in correct namespace, drop-down selector located in upper-left corner. Not available in all services.
- Select
Manage
in left column menu > selectAlerts Management
>Alert Policies
.
Note: If options are not showing available, select
Show
link inAdvanced nav options visible
in bottom left corner. If needed, selectHide
to minimize options from Advanced nav options mode.
- Select
+ Add Alert Policy
button.
Figure: Alert Receiver
Step 2: Setup Alert Policy.
-
Enter
Name
. -
Enter
Labels
andDescription
as needed.
Note: Toggle
Show Advanced Fields
to showConfigure
Receiver Default Notification Parameters
.
-
Select Item
inAlert Receivers
drop-down menu inAlert Receivers Configuration
box. -
Select your
Alert Receivers
if available in list you created in Create Alert Receiver chapter. -
Select
+ Add Item
button inAlert Receivers
page to Create Alert Receiver.
Note:
+ Add Item
button inAlert Receivers Configuration
box to add multiple Alert Receivers.
Figure: Alert Policy Configuration
Step 3: Start configuring Alert Receiver.
-
Enter
Name
. -
Enter
Labels
andDescription
as needed. -
Select
Webhook
inReceiver
drop-down menu.Figure: Alert Receiver Name and Receiver Type
-
Select
Configure
link inWebhook URL
box.Figure: Alert Receiver
-
Select
Secret Type
in drop-down menu.-
Select
Action
in drop-down menu. -
Select
Policy Type
if needed, -
Enter
Secret to Blindfold
in box. -
Select
Apply
button.
-
Figure: Alert Receiver
-
Select
Authentication
drop-down menu option:-
None
. -
Basic Authentication
. -
Token Authentication
. -
Enable TLS Wuth With Certificate Object
.
-
-
Select
TLS
drop-down menu option:-
Enable
-
Disable
.
-
-
Select
SNI Value
drop-down menu option:-
SNI Value
: SNI value to be used. EnterSNI Value
in box below. -
No SNI
: Do not use SNI.
-
Figure: Alert Receiver
-
Select
Server Verification
drop-down menu option:-
Use Default Trusted CA List
-
Use Custom CA List
> selectCertificate Object
drop-down menu inTrusted CA List
box.
-
-
Select
Minimum TLS version
drop-down menu option:-
Automatic
, F5 Distributed Cloud will choose the optimal TLS version. -
TLSv1.0
-
TLSv1.1
-
TLSv1.2
-
TLSv1.3
-
-
Select
Maximum TLS version
drop-down menu option:-
Automatic
, F5 Distributed Cloud will choose the optimal TLS version. -
TLSv1.0
-
TLSv1.1
-
TLSv1.2
-
TLSv1.3
-
-
Check
Enable HTTP2
orFollow Redirects
boxes if needed. -
Select
Contiue
button.
Figure: Alert Receiver
Step 4: Setup Receiver Default Notification Parameters.
-
Toggle
Show Advanced Fields
inAlert Receiver Configuration
box toConfigure
Receiver Default Notification Parameters
.- Select
Configure
link.
- Select
Figure: Alert Policy Receiver
-
Toggle
Show Advanced Fields
inNotifications Parameters
andNotifications Grouping
and select notification intervals in boxes provided. -
Confirm
Notification Parameters
andNotification Grouping
is in two number format. Example: 60m not 1h. -
Toggle
Show Advanced Fields
inNotification Grouping
to showGroup Notifications By
drop-down menu.Note: Update from default
Individual
if you want to receive alerts.-
Individual
: This option disables grouping of alerts. -
F5XC Defined Group
: Group the alerts by severity, group name and alert name. -
Custom
: Specify set of labels for grouping the alerts. -
Default
: Group the alerts by severity, group name and alert name.
Note: All fields must be in 2-digit form (60m, 60s) in
Policy Rule Notification Parameters
for intervals and group notifications for your policy rules to apply correctly and not error. -
-
Select
Apply
button.
Figure: Alert Policy Receiver
Step 5: Setup Policy Rules.
A minimum of one policy rule is populated by default with Any
as match condition, and Send
as Action
. You can select different match conditions, and actions from the drop-down list for the Select Alerts
and Action
fields respectively. You can use combination of more than one policy rule. Select Add item
to add more policy rules.
- Select
Configure
link inPolicy Rules
box.
Figure: Alert Policy
- Select
+ Add Item
button.
Figure: Alert Policy Created
Select Alerts
drop-down menu option.
Note:
Matching Custom Criteria
>Alertname
Configure
link >Select Matcher Type
> selectApply
button > selectApply
button.
-
Select
Action
drop-down menu option. -
Toggle
Show Advanced Fields
to showPolicy Rule Notification Parameters
toConfigure
. -
Confirm
Notification Parameters
andNotification Grouping
is in two number format. Example: 60m not 1h.
Note: All fields must be in 2-digit form (60m, 60s) for intervals and group notifications for your policy rules to apply correctly and not error.
-
Toggle
Show Advanced Fields
to showGroup Notifications By
drop-down menu.- Update from default
Individual
if you want to receive alerts.
- Update from default
-
Select
Apply
button. -
Order rules by dragging in
Policy Rules
page.
Note: Select
+ Add Item
button to add additional rules.
- Select
Apply
button, order rules by dragging.
Note: This applies the policy object to the policy set configuration and returns to the policy page.
Figure: Alert Policy
Step 6: Complete creating Alert Policy.
Select Save and Exit
button to create policy.
Step 7: Verify alerts are sent.
Select Manage
> Alerts Management
> select Alert Receivers
.
Step 7.1: Verify receiver.
-
Depending on your receiver type, do one of the following:
-
Select
...
>Verify Webhook
for receiver of webhook type.- Select
Send Webhook
button in confirmation box.
- Select
-
-
Obtain verification code from verification email or SMS sent to your email address or phone number.
-
Select
...
>Enter Verification Code
for your receiver object. -
Enter
code
inVerify Receiver
window. -
Select
Verify Receiver
button.
Note: Wait for the notification that the verification is successful.
Step 7.2: Send test alert.
-
Select
...
>Send Test Alert
for your receiver object or SMS. -
Select
Send Test Alert
button in confirmation window. -
Check your inbox, verify alert is received.
Create Active Alert Policies
Step 1: Start creating active alert policies.
- In
Multi-Cloud Network Connect
> SelectManage
.
Note:
Active Alert Policies
can be created and edited inMulti-Cloud Network Connect
,Multi-Cloud App Connect
,Web App & API Protection
, andDistributed Apps
services by selectingManage
>Alerts Management
>+ Select Active Alert Policies
.
-
Select
Alerts Management
> selectActive Alert Policies
. -
+ Select Active Alert Policies
.
Figure: Active Alert Policy Configuration
Step 2: Add active alert policies to the policy.
-
Select Item
drop-down menu to select created alert policy needed. -
+ Add Item
button inActive Alert Policies
pop-up window to add policy selection drop-down menus.
Figure: Active Alert Policy Configuration
Step 3: Complete creating the active alert policies.
Select Save and Exit
button to complete creating the alert policy.