fix: use flag to enable Prometheus (#12345)

This commit is contained in:
Marcin Tojek
2024-02-28 17:58:03 +01:00
committed by GitHub
parent bedd2c5922
commit 30d9d84758
8 changed files with 160 additions and 11 deletions
+14
View File
@@ -229,3 +229,17 @@ This can be disabled with a server-wide
```shell
coder server --provisioner-daemons=0
```
## Prometheus metrics
Coder provisioner daemon exports metrics via the HTTP endpoint, which can be
enabled using either the environment variable `CODER_PROMETHEUS_ENABLE` or the
flag `--prometheus-enable`.
The Prometheus endpoint address is `http://localhost:2112/` by default. You can
use either the environment variable `CODER_PROMETHEUS_ADDRESS` or the flag
`--prometheus-address <network-interface>:<port>` to select a different listen
address.
If you have provisioners daemons deployed as pods, it is advised to monitor them
separately.
+11
View File
@@ -184,3 +184,14 @@ goes offline, the session will fall back to the primary proxy. This could take
up to 60 seconds.
![Workspace proxy picker](../images/admin/workspace-proxy-picker.png)
## Step 3: Observability
Coder workspace proxy exports metrics via the HTTP endpoint, which can be
enabled using either the environment variable `CODER_PROMETHEUS_ENABLE` or the
flag `--prometheus-enable`.
The Prometheus endpoint address is `http://localhost:2112/` by default. You can
use either the environment variable `CODER_PROMETHEUS_ADDRESS` or the flag
`--prometheus-address <network-interface>:<port>` to select a different listen
address.