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
+10
View File
@@ -98,6 +98,16 @@ Deprecated and ignored.
The bind address to serve prometheus metrics.
### --prometheus-enable
| | |
| ----------- | ------------------------------------- |
| Type | <code>bool</code> |
| Environment | <code>$CODER_PROMETHEUS_ENABLE</code> |
| Default | <code>false</code> |
Serve prometheus metrics on the address defined by prometheus address.
### --psk
| | |