@@ -21,22 +21,19 @@ pre-built set of monitoring integrations.
21
21
With the Observability Helm chart, you can monitor [ which specific startup
22
22
metrics are a part of the Helm chart?]
23
23
24
- To install it with Helm:
25
-
26
- ``` shell
27
- helm repo add coder-observability https://helm.coder.com/observability
28
- helm upgrade --install coder-observability coder-observability/coder-observability --version 0.1.1 --namespace coder-observability --create-namespace
29
- ```
24
+ Visit the
25
+ [ observability repository] ( https://github.com/coder/observability?tab=readme-ov-file#installation )
26
+ to install it with Helm.
30
27
31
28
### Enable Prometheus metrics for Coder
32
29
33
- Our observability bundle gives you this for free which is nice and has
34
- instructions on how to do it with Coder
35
-
36
30
[ Prometheus.io] ( https://prometheus.io/docs/introduction/overview/#what-is-prometheus )
37
31
is included as part of the [ observability chart] ( #coder-observability-chart ) .It
38
32
offers a variety of
39
- [ available metrics] ( ../../admin/integrations/prometheus.md#available-metrics ) .
33
+ [ available metrics] ( ../../admin/integrations/prometheus.md#available-metrics ) ,
34
+ such as ` coderd_provisionerd_job_timings_seconds ` and
35
+ ` coderd_agentstats_startup_script_seconds ` , which measure how long the workspace
36
+ takes to provision and how long the startup script takes.
40
37
41
38
You can
42
39
[ install it separately] ( https://prometheus.io/docs/prometheus/latest/getting_started/ )
@@ -73,9 +70,10 @@ state until a provisioner becomes available.
73
70
74
71
Provisioners are queue-based to reduce unpredictable load to the Coder server.
75
72
However, they can be scaled up to allow more concurrent provisioners. You risk
76
- overloading the central Coder server if you use too many local provisioners, so
77
- we recommend a maximum of five provisioners. For more than five provisioners, we
78
- recommend that you move to [ external provisioners] ( ../../admin/provisioners.md ) .
73
+ overloading the central Coder server if you use too many built-in provisioners,
74
+ so we recommend a maximum of five provisioners. For more than five provisioners,
75
+ we recommend that you move to
76
+ [ external provisioners] ( ../../admin/provisioners.md ) .
79
77
80
78
If you can’t move to external provisioners, use the ` provisioner-daemons ` flag
81
79
to increase the number of provisioner daemons to five:
@@ -86,7 +84,8 @@ coder server --provisioner-daemons=5
86
84
87
85
Visit the
88
86
[ CLI documentation] ( ../../reference/cli/server.md#--provisioner-daemons ) for
89
- more information about increasing provisioner daemons and other options.
87
+ more information about increasing provisioner daemons, configuring external
88
+ provisioners, and other options.
90
89
91
90
### Adjust provisioner CPU/memory
92
91
@@ -115,24 +114,30 @@ Visit the
115
114
[ validated architecture documentation] ( ../../admin/infrastructure/validated-architectures/index.md#workspace-nodes )
116
115
for more information.
117
116
118
- ## Set up Terraform Provider Caching
117
+ ## Set up Terraform provider caching
119
118
120
- Use ` terraform init ` to cache providers:
119
+ By default, Coder downloads each Terraform provider when a workspace starts.
120
+ This can create unnecessary network and disk I/O.
121
121
122
- Pull the templates to your local device:
122
+ ` terraform init ` generates a ` .teraform.lock.hcl ` which instructs Coder
123
+ provisioners to cache specific versions of your providers.
123
124
124
- ``` shell
125
- coder templates pull
126
- ```
125
+ To use ` terraform init ` to cache providers:
127
126
128
- Run ` terraform init ` to initialize the directory :
127
+ 1 . Pull the templates to your local device :
129
128
130
- ``` shell
131
- terraform init
132
- ```
129
+ ``` shell
130
+ coder templates pull
131
+ ```
133
132
134
- Push the templates back to your Coder deployment :
133
+ 1 . Run ` terraform init ` to initialize the directory :
135
134
136
- ``` shell
137
- coder templates push
138
- ```
135
+ ``` shell
136
+ terraform init
137
+ ```
138
+
139
+ 1 . Push the templates back to your Coder deployment:
140
+
141
+ ``` shell
142
+ coder templates push
143
+ ```
0 commit comments