You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: synthetics/test-config/synth-alerts.rst
+44-8Lines changed: 44 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,32 +11,68 @@ In Splunk Observability Cloud, detectors monitor your tests and metrics for anom
11
11
12
12
To learn more about advanced alerts and detectors in Splunk Observability Cloud, see :ref:`get-started-detectoralert`. Read on to learn about creating static threshold detectors specific to Synthetics.
13
13
14
-
Use cases for detectors in Synthetics
14
+
Types of detectors in Synthetics
15
15
=======================================
16
16
17
-
You can use detectors to alert on metrics at the test level, or at the page level or synthetic transaction level for Browser tests. The following table provides example use cases for detectors at each of these levels:
17
+
In Synthetics, there are detectors to alert on metrics at the test level, at the page level, or at the synthetic transaction level for browser tests. The following table explains each of these detector types:
18
18
19
19
.. list-table::
20
20
:header-rows: 1
21
21
:widths: 25 75
22
22
23
23
* - :strong:`Detector type`
24
-
- :strong:`Use case`
24
+
- :strong:`Description`
25
25
26
26
* - Test-level detectors
27
-
- | Create test-level detectors to trigger alerts on metrics that correspond to the entire test.
27
+
- | Test-level detectors send alerts on metrics that correspond to an entire test.
28
28
|
29
-
|For example, alert when the count of failed runs, % Uptime, or duration of the entire test exceeds a given threshold.
29
+
|Examples: Send an alert when the count of failed runs, % uptime, or duration of the entire test exceeds a given threshold.
30
30
31
31
* - Page-level detectors
32
-
- | In Browser tests, create page-level detectors to trigger alerts on metrics corresponding to a single page within a test. For example, alert when the DOM load time, largest contentful paint (LCP), or total image size on a given page exceeds a given threshold.
32
+
- | Page-level detectors send alerts on metrics that correspond to a single page within a browser test.
33
+
|
34
+
|Examples: Send an alert when the DOM load time, largest contentful paint (LCP), or total image size on a given page exceeds a given threshold.
33
35
|
34
36
|If you don't scope your alerts to the page level for page-level metrics, the detector monitors the average metric value across pages. See :ref:`page-level-detector` to learn more.
35
37
36
38
* - Transaction-level detectors
37
-
- | In Browser tests, create synthetic transaction-level detectors to trigger alerts on metrics based on a synthetic transaction within a test.
39
+
- | Synthetic transaction-level detectors send alerts on metrics that correspond to a synthetic transaction within a browser test.
38
40
|
39
-
|You can alert on the three transaction-level metrics that Splunk Synthetic Monitoring captures: Duration, Requests, and Size. See :ref:`transaction-level-detector` to learn more.
41
+
|Examples: Send an alert on the three transaction-level metrics that Splunk Synthetic Monitoring captures (duration, requests, and size). See :ref:`transaction-level-detector` to learn more.
42
+
43
+
44
+
Best practices for sending an alert when a synthetic test fails
You can set up a detector while initially creating or editing a test, or from the results view for a particular test. A detector can track one or more synthetic tests.
48
+
49
+
To set up a detector, do one of the following:
50
+
51
+
* When creating or editing a test, select :guilabel:`Create detector` to open the detector dialog box.
52
+
* From the :guilabel:`Test results` page for a particular test, select :guilabel:`Create detector` to open the detector dialog box.
53
+
54
+
In the detector dialog box, enter the following fields:
55
+
56
+
#. In the test name list, select the tests you want to include in your detector. Best practice is to select tests that have a similar run length.
57
+
#. In the metric list, select :strong:`Uptime`. The uptime metric is 0 when the test fails.
58
+
#. In :strong:`+ Add filters` don't add filters for :guilabel:`failed` or :guilabel:`success`. Omit these filters to ensure that the detector sees all datapoints for the test run.
59
+
60
+
#. In the :guilabel:`Alert details` section, enter the following:
61
+
62
+
* :guilabel:`Trigger threshold`: The threshold to trigger the alert.
63
+
* :guilabel:`Orientation`: Whether the metric must fall below or exceed the threshold to trigger the alert.
64
+
* :guilabel:`Violates threshold`: How many times the metric must violate the threshold to trigger the alert.
65
+
* :guilabel:`Split by location`: Whether to split the detector by test location. If you don't split by location, the detector monitors the average value across all locations.
66
+
67
+
#. Use the severity selector to set the severity of the alert.
68
+
#. Add recipients.
69
+
#. Select :guilabel:`Activate`.
70
+
71
+
.. image:: /_images/synthetics/detector-one.png
72
+
:width:100%
73
+
:alt:Setting up a detector for failed tests.
74
+
75
+
Your detector is now set up to check for failed test runs every minute and to send an alert based on your settings in :guilabel:`Alert details`.
0 commit comments