@@ -13,6 +13,26 @@ You can monitor [Coder logs](../../admin/monitoring/logs.md) through the
13
13
system-native tools on your deployment platform, or stream logs to tools like
14
14
Splunk, Datadog, Grafana Loki, and others.
15
15
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
+
16
36
### Coder Observability Chart
17
37
18
38
Use the [ Observability Helm chart] ( https://github.com/coder/observability ) for a
@@ -39,26 +59,6 @@ You can
39
59
[ install it separately] ( https://prometheus.io/docs/prometheus/latest/getting_started/ )
40
60
if you prefer.
41
61
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
-
62
62
## Provisioners
63
63
64
64
` coder server ` defaults to three provisioner daemons. Each provisioner daemon
0 commit comments