Skip to content

Commit 106a53a

Browse files
update revenue example to something more o11y related
1 parent 137c10e commit 106a53a

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed
151 KB
Loading
-129 KB
Binary file not shown.

explore-analyze/visualize/charts/metric-charts.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -215,17 +215,19 @@ When creating or editing a visualization, you can customize several appearance o
215215

216216
The 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-
![Metric with a total revenue below the target](../../images/metric-total-revenue-example.png "=70%")
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+
![Metric with below target successful request percentage](../../images/metric-example-successful-requests-rate.png "=70%")
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

Comments
 (0)