Skip to content

Commit 5a0ab2a

Browse files
committed
move build timeline up in monitoring
1 parent 209671d commit 5a0ab2a

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

docs/tutorials/best-practices/speed-up-templates.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,26 @@ You can monitor [Coder logs](../../admin/monitoring/logs.md) through the
1313
system-native tools on your deployment platform, or stream logs to tools like
1414
Splunk, Datadog, Grafana Loki, and others.
1515

16+
### Workspace build timeline
17+
18+
Use the **Build timeline** to monitor the time it takes to start specific
19+
workspaces. Identify long scripts, resources, and other things you can
20+
potentially optimize within the template.
21+
22+
![Screenshot of a workspace and its build timeline](../../images/best-practice/build-timeline.png)
23+
24+
Adjust this request to match your Coder access URL and workspace:
25+
26+
```shell
27+
curl -X GET https://coder.example.com/api/v2/workspacebuilds/{workspacebuild}/timings \
28+
-H 'Accept: application/json' \
29+
-H 'Coder-Session-Token: API_KEY'
30+
```
31+
32+
Visit the
33+
[API documentation](../../reference/api/builds.md#get-workspace-build-timings-by-id)
34+
for more information.
35+
1636
### Coder Observability Chart
1737

1838
Use the [Observability Helm chart](https://github.com/coder/observability) for a
@@ -39,26 +59,6 @@ You can
3959
[install it separately](https://prometheus.io/docs/prometheus/latest/getting_started/)
4060
if you prefer.
4161

42-
### Workspace build timeline
43-
44-
Use the **Build timeline** to monitor the time it takes to start specific
45-
workspaces. Identify long scripts, resources, and other things you can
46-
potentially optimize within the template.
47-
48-
![Screenshot of a workspace and its build timeline](../../images/best-practice/build-timeline.png)
49-
50-
Adjust this request to match your Coder access URL and workspace:
51-
52-
```shell
53-
curl -X GET https://coder.example.com/api/v2/workspacebuilds/{workspacebuild}/timings \
54-
-H 'Accept: application/json' \
55-
-H 'Coder-Session-Token: API_KEY'
56-
```
57-
58-
Visit the
59-
[API documentation](../../reference/api/builds.md#get-workspace-build-timings-by-id)
60-
for more information.
61-
6262
## Provisioners
6363

6464
`coder server` defaults to three provisioner daemons. Each provisioner daemon

0 commit comments

Comments
 (0)