Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

Commit 4d2de6e

Browse files
committed
SignalFlow editor draft
1 parent db1b852 commit 4d2de6e

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

alerts-detectors-notifications/slo/create-slo.rst

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -48,19 +48,20 @@ Follow these steps to create an SLO.
4848

4949
To use a custom metric as the system health indicator for your SLI configuration, follow these steps:
5050

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:
5553

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.
6465

6566
.. 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.
6667

0 commit comments

Comments
 (0)