mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: only collect prometheus database metrics when explicitly enabled (#8045)
* fix: only collect prometheus database metrics when explicitly enabled * add missing test * de-duplicate wrapping
This commit is contained in:
@@ -565,6 +565,17 @@ The bind address to serve prometheus metrics.
|
||||
|
||||
Collect agent stats (may increase charges for metrics storage).
|
||||
|
||||
### --prometheus-collect-db-metrics
|
||||
|
||||
| | |
|
||||
| ----------- | -------------------------------------------------------- |
|
||||
| Type | <code>bool</code> |
|
||||
| Environment | <code>$CODER_PROMETHEUS_COLLECT_DB_METRICS</code> |
|
||||
| YAML | <code>introspection.prometheus.collect_db_metrics</code> |
|
||||
| Default | <code>false</code> |
|
||||
|
||||
Collect database metrics (may increase charges for metrics storage).
|
||||
|
||||
### --prometheus-enable
|
||||
|
||||
| | |
|
||||
|
||||
Reference in New Issue
Block a user