mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: use flag to enable Prometheus (#12345)
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -184,3 +184,14 @@ goes offline, the session will fall back to the primary proxy. This could take
|
||||
up to 60 seconds.
|
||||
|
||||

|
||||
|
||||
## 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.
|
||||
|
||||
Reference in New Issue
Block a user