Skip to content

Commit 56d52a6

Browse files
replace other revenue example with more o11y oriented example for break down by option
1 parent 106a53a commit 56d52a6

File tree

3 files changed

+18
-14
lines changed

3 files changed

+18
-14
lines changed
386 KB
Loading
-196 KB
Binary file not shown.

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

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,23 @@ The following examples show various configuration options that you can use for b
229229

230230
![Metric with below target successful request percentage](../../images/metric-example-successful-requests-rate.png "=70%")
231231

232+
**Ratio of successful requests per origin**
233+
: This example builds on the previous one to display the percentage of successful requests for the 10 countries with the most incoming requests on a monitoring dashboard:
234+
235+
* **Title**: "Successful requests (2xx)"
236+
* **Primary metric**: `count(kql='response.code >= "200" and response.code < "300"') / count(response.code)`
237+
* **Value format**: `Percent`
238+
* **Color by value**: Green when above 95%, yellow between 75% and 95%, red when below
239+
* **Supporting visualization:** "Line" to show evolution over time
240+
* **Secondary metric**: `0.95` formula
241+
* **Name**: `Target:`
242+
* **Value format**: `Percent`
243+
* **Break down by**: `geo.dest`
244+
* **Number of values**: `10`
245+
* **Rank by**: `Custom` > `Count` > `Records` to get countries generating most requests
246+
247+
![Metric with below target successful request percentage](../../images/metric-example-successful-requests-rate-top-countries.png "=70%")
248+
232249
**Website traffic with trend**
233250
: Monitor current traffic and show whether it's increasing or decreasing compared to the previous period:
234251

@@ -242,17 +259,4 @@ The following examples show various configuration options that you can use for b
242259
* **Label**: "Compared to last week"
243260
* **Color palette**: Green for increases (more traffic is positive)
244261

245-
![Metric showing weekly visits with weekly comparison trend](../../images/metric-website-views-weekly-trend-example.png "=70%")
246-
247-
**Sales per day of the week**
248-
: Compare revenue across days of the week using breakdown:
249-
250-
* **Title**: "Revenue per weekday"
251-
* **Primary metric**: `sum(sales.total)`
252-
* **Value format**: Currency with no decimal. You can use a custom format to add symbols such as `$`
253-
* **Color by value**: Red below $30,000, yellow between $30,000-$35,000, green above $35,000
254-
* **Break down by**: `day_of_week`
255-
* **Number of values**: `7`
256-
* **Layout columns**: `4`
257-
258-
![Metric showing revenue broken down per day of the week](../../images/metric-revenue-breakdown-example.png "=70%")
262+
![Metric showing weekly visits with weekly comparison trend](../../images/metric-website-views-weekly-trend-example.png "=70%")

0 commit comments

Comments
 (0)