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: docs/tutorials/best-practices/scale-coder.md
+27-33Lines changed: 27 additions & 33 deletions
Original file line number
Diff line number
Diff line change
@@ -13,59 +13,53 @@ operating smoothly with a high number of active users and workspaces.
13
13
Observability is one of the most important aspects to a scalable Coder
14
14
deployment.
15
15
16
-
Identify potential bottlenecks before they negatively affect the end-user
17
-
experience. It will also allow you to empirically verify that modifications you
18
-
make to your deployment to increase capacity have their intended effects.
16
+
[Monitor your Coder deployment](../../admin/monitoring/index.md) with log output and metrics to identify potential bottlenecks before they negatively affect the end-user experience and measure the effects of modifications you make to your deployment.
19
17
20
-
- Capture log output from Coder Server instances and external provisioner
21
-
daemons and store them in a searchable log store.
18
+
**Log output**
22
19
23
-
- For example: Loki, CloudWatch Logs, etc.
20
+
- Capture log output from Loki, CloudWatch logs, and other tools on your Coder Server instances and external provisioner
21
+
daemons and store them in a searchable log store.
24
22
25
23
- Retain logs for a minimum of thirty days, ideally ninety days. This allows
26
24
you to look back to see when anomalous behaviors began.
27
25
28
-
-Metrics:
26
+
**Metrics**
29
27
30
-
- Capture infrastructure metrics like CPU, memory, open files, and network I/O
31
-
for all Coder Server, external provisioner daemon, workspace proxy, and
32
-
PostgreSQL instances.
28
+
- Capture infrastructure metrics like CPU, memory, open files, and network I/O for all Coder Server, external provisioner daemon, workspace proxy, and PostgreSQL instances.
33
29
34
-
- Capture metrics from Coder Server and external provisioner daemons via
35
-
Prometheus.
30
+
### Capture Coder server metrics with Prometheus
36
31
37
-
- On Coder Server
32
+
To capture metrics from Coder Server and external provisioner daemons with [Prometheus](../../admin/integrations/prometheus.md):
38
33
39
-
- Enable Prometheus metrics:
34
+
1. Enable Prometheus metrics:
40
35
41
-
```yaml
42
-
CODER_PROMETHEUS_ENABLE=true
43
-
```
36
+
```yaml
37
+
CODER_PROMETHEUS_ENABLE=true
38
+
```
44
39
45
-
-Enable database metrics:
40
+
1. Enable database metrics:
46
41
47
-
```yaml
48
-
CODER_PROMETHEUS_COLLECT_DB_METRICS=true
49
-
```
42
+
```yaml
43
+
CODER_PROMETHEUS_COLLECT_DB_METRICS=true
44
+
```
50
45
51
-
-Configure agent stats to avoid large cardinality:
46
+
1. Configure agent stats to avoid large cardinality:
0 commit comments