@@ -215,17 +215,19 @@ When creating or editing a visualization, you can customize several appearance o
215215
216216The following examples show various configuration options that you can use for building impactful metrics.
217217
218- ** Executive dashboard KPI**
219- : Display total revenue as a prominent number on an executive dashboard:
220-
221- * **Title**: "Total Revenue"
222- * **Primary metric**: `sum(sales.revenue)`
223- * **Value format**: Currency with no decimal. You can use a custom format to add symbols such as `$`
224- * **Subtitle**: "Current Quarter"
225- * **Color by value**: Green when above $250,000 target, red when below
226- * **Supporting visualization:** "Line" to show revenue evolution throughout the quarter
227-
228- 
218+ ** Ratio of successful requests**
219+ : Display the percentage of successful requests on a monitoring dashboard:
220+
221+ * **Title**: "Successful requests (2xx)"
222+ * **Primary metric**: `count(kql='response.code >= "200" and response.code < "300"') / count(response.code)`
223+ * **Value format**: `Percent`
224+ * **Color by value**: Green when above 95%, yellow between 75% and 95%, red when below
225+ * **Supporting visualization:** "Line" to show evolution over time
226+ * **Secondary metric**: `0.95` formula
227+ * **Name**: `Target:`
228+ * **Value format**: `Percent`
229+
230+ 
229231
230232** Website traffic with trend**
231233: Monitor current traffic and show whether it's increasing or decreasing compared to the previous period:
0 commit comments