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:
+3
@@ -93,6 +93,9 @@ Use a YAML configuration file when your server launch become unwieldy.
|
||||
--prometheus-collect-agent-stats bool, $CODER_PROMETHEUS_COLLECT_AGENT_STATS
|
||||
Collect agent stats (may increase charges for metrics storage).
|
||||
|
||||
--prometheus-collect-db-metrics bool, $CODER_PROMETHEUS_COLLECT_DB_METRICS (default: false)
|
||||
Collect database metrics (may increase charges for metrics storage).
|
||||
|
||||
--prometheus-enable bool, $CODER_PROMETHEUS_ENABLE
|
||||
Serve prometheus metrics on the address defined by prometheus address.
|
||||
|
||||
|
||||
+3
@@ -152,6 +152,9 @@ introspection:
|
||||
# Collect agent stats (may increase charges for metrics storage).
|
||||
# (default: <unset>, type: bool)
|
||||
collect_agent_stats: false
|
||||
# Collect database metrics (may increase charges for metrics storage).
|
||||
# (default: false, type: bool)
|
||||
collect_db_metrics: false
|
||||
pprof:
|
||||
# Serve pprof metrics on the address defined by pprof address.
|
||||
# (default: <unset>, type: bool)
|
||||
|
||||
Reference in New Issue
Block a user