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
Copy file name to clipboardExpand all lines: content/en/s4r/9-custom-dashboard/3-custom-chart.md
+14-13Lines changed: 14 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,24 +11,25 @@ In this part of the workshop we are going to create a chart that we will add to
11
11
* At the top of the dashboard click on the **+** and select **Chart**.
12
12

13
13
* First, use the {{% button style="grey" %}}Untitled chart{{% /button %}} input field and name the chart **Overall Test Duration**.
14
-
* For this exercise we want a bar or column chart, so click on the 3d icon {{% icon icon="chart-bar" %}} in the chart option box.
15
-
*We need to provide a signal or metric that we are going to display. In this case, we want *synthetics.run.duration.time.ms* (This is runtime in duration for our test)
14
+
* For this exercise we want a bar or column chart, so click on the 3rd icon {{% icon icon="chart-bar" %}} in the chart option box.
15
+
* In the **Plot editor** enter `synthetics.run.duration.time.ms` (this is runtime in duration for our test) in the **Signal** box and hit enter.
* Set the filter to successful ones by selecting *success:true*, the button now should contain that.
18
-
* Right now we see different colored bars, a different color for each region the test runs from. As this in not needed we can change that behavior by adding some analytics.
17
+
* Set the filter to successful ones by selecting `success:true`, the button now should contain that.
18
+
* Right now we see different colored bars, a different color for each region the test runs from. As this is not needed we can change that behavior by adding some analytics.
* From the drop-down choose the **Mean** option, then pick **mean**:*aggregation* and click outside the dialog. the button should now say **Mean**, and the bars should now have the same color as the *Metrics* are now aggregated.
21
-
* We now looking at the aggregated results of the tests instead of showing each region separately.
22
-
* Lets change the time scale, click on the settings *⚙️* icon at the end of the plot line. It will open the following dialog.
23
-

24
-
* Change the *Display units* in the drop-down box from *None* to *Time (autoscaling)/Milliseconds(ms)*. The dropdown changes to *Millisecond* and the label in front of the chart should now represent **Time**.
25
-
* Close the dialog, either clicking on the settings *⚙️* icon or the {{% button style="gray" %}}close{{% /button %}} button.
26
-
* Add our detector by clicking {{% button style="blue" %}}Link Detector{{% /button %}} and typing the name of the detector. (Start with your initials, assuming you used the recommended naming method.) the detector name should appear. A colored bar appears around your chart, indicating the status of the alert, (Green OK, Red Alert), as well as a bell signal at the top of the page as shown below.
20
+
* From the drop-down choose the **Mean** option, then pick `mean:aggregation` and click outside the dialog box. Notice how the chart changes to a single color as the metrics are now aggregated.
21
+
* Change the time scale, click on the settings {{% icon icon="cog" %}} icon at the end of the plot line. It will open the following dialog:
22
+

23
+
* Change the **Display units** (**2**) in the drop-down box from **None** to **Time (autoscaling)/Milliseconds(ms)**. The drop-down changes to **Millisecond** and the x-axis of the chart now represents **Time**.
24
+
* Close the dialog, either by clicking on the settings {{% icon icon="cog" %}} icon or the {{% button style="gray" %}}close{{% /button %}} button.
25
+
* Add our detector by clicking {{% button style="blue" %}}Link Detector{{% /button %}} button and start typing the name of the detector you created earlier.
26
+
* Click on the detector name to select it.
27
+
* Notice that a colored border appears around the chart, indicating the status of the alert, along with a new bell icon at the top of the dashboard as shown below.
27
28

28
29
* Click the {{% button style="blue" %}}Save and close{{% /button %}} button.
29
-
* In our dashboard, move the charts so they look like the screenshot below:.
30
+
* In the dashboard, move the charts so they look like the screenshot below:
30
31

31
-
*As the last task, find the three dots **...** at the top of the page (next to *Event Overlay*) and click on *View fullscreen*. This will be the view you would use on the TV monitor on the wall (press Esc to go back). For TV monitors, setting the background color to black seems to work best.
32
+
*For the final task, click three dots **...** at the top of the page (next to **Event Overlay**) and click on **View fullscreen**. This will be the view you would use on the TV monitor on the wall (press Esc to go back).
0 commit comments