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
The Prometheus endpoint can be enabled in the [Helm chart's](https://github.com/coder/coder/tree/main/helm)`values.yml` by setting the environment variable `CODER_PROMETHEUS_ADDRESS` to `0.0.0.0:2112`.
26
26
The environment variable `CODER_PROMETHEUS_ENABLE` will be enabled automatically.
27
27
28
+
### Prometheus configuration
29
+
30
+
To allow Prometheus to scrape the Coder metrics, you will need to create a `scape_config`
31
+
in your `prometheus.yml` file, or in the Prometheus Helm chart values. Below is an
32
+
example `scrape_config`:
33
+
34
+
```yaml
35
+
scrape_configs:
36
+
- job_name: "coder"
37
+
scheme: "http"
38
+
static_configs:
39
+
- targets: ["<ip>:2112"] # replace with the the IP address of the Coder pod or server
40
+
labels:
41
+
apps: "coder"
42
+
```
43
+
28
44
## Available metrics
29
45
30
46
<!-- Code generated by 'make docs/admin/prometheus.md'. DO NOT EDIT -->
0 commit comments