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
{{ message }}
This repository was archived by the owner on Sep 2, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: alerts-detectors-notifications/slo/create-slo.rst
+13-12Lines changed: 13 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,19 +48,20 @@ Follow these steps to create an SLO.
48
48
49
49
To use a custom metric as the system health indicator for your SLI configuration, follow these steps:
50
50
51
-
.. list-table::
52
-
:header-rows: 1
53
-
:widths: 40 60
54
-
:width: 100%
51
+
#. For the :guilabel:`Metric type` field, select :guilabel:`Custom metric` from the dropdown menu. The SignalFlow editor appears.
52
+
#. In the SignalFlow editor, you can see the following placeholder text:
55
53
56
-
* - :strong:`Field name`
57
-
- :strong:`Actions`
58
-
* - :guilabel:`Metric type`
59
-
- Select :guilabel:`Custom metric` from the dropdown menu
60
-
* - :guilabel:`Good events (numerator)`
61
-
- Search for the metric you want to use for the success request count
62
-
* - :guilabel:`Total events (denominator)`
63
-
- Search for the metric you want to use for the total request count
54
+
.. code-block:: none
55
+
56
+
G = data('good.metric', filter=filter('sf_error', 'false'))
57
+
T = data('total.metric')
58
+
59
+
* Line 1 defines the metric you want to use for the success request count as a variable named ``G``. Replace ``'good.metric'`` with the name of the metric you want to track.
60
+
* Line 2 defines the metric you want to use for the total request count as a variable named ``T``. Replace ``'total.metric'`` with the name of the metric you want to track.
61
+
62
+
You can also rename the variables.
63
+
64
+
#. If you rename the variables, select new variable names for the :guilabel:`Good events (numerator)` and :guilabel:`Total events (numerator)` dropdown menus.
64
65
65
66
.. note:: Custom metric SLO works by calculating the percentage of successful requests over a given compliance period. This calculation works better for counter and histogram metrics than for gauge metrics. Gauge metrics are not suitable for custom metric SLO, so you might get confusing data when selecting gauge metrics in your configuration.
0 commit comments