mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: expose agent stats via Prometheus endpoint (#7115)
* WIP * WIP * WIP * Agents * fix * 1min * fix * WIP * Test * docs * fmt * Add timer to measure the metrics collection * Use CachedGaugeVec * Unit tests * WIP * WIP * db: GetWorkspaceAgentStatsAndLabels * fmt * WIP * gauges * feat: collect * fix * fmt * minor fixes * Prometheus flag * fix * WIP * fix tests * WIP * fix json * Rx Tx bytes * CloseFunc * fix * fix * Fixes * fix * fix: IgnoreErrors * Fix: Windows * fix * reflect.DeepEquals
This commit is contained in:
+3
@@ -90,6 +90,9 @@ Use a YAML configuration file when your server launch become unwieldy.
|
||||
--prometheus-address host:port, $CODER_PROMETHEUS_ADDRESS (default: 127.0.0.1:2112)
|
||||
The bind address to serve prometheus metrics.
|
||||
|
||||
--prometheus-collect-agent-stats bool, $CODER_PROMETHEUS_COLLECT_AGENT_STATS
|
||||
Collect agent stats (may increase charges for metrics storage).
|
||||
|
||||
--prometheus-enable bool, $CODER_PROMETHEUS_ENABLE
|
||||
Serve prometheus metrics on the address defined by prometheus address.
|
||||
|
||||
|
||||
+3
@@ -146,6 +146,9 @@ introspection:
|
||||
# The bind address to serve prometheus metrics.
|
||||
# (default: 127.0.0.1:2112, type: host:port)
|
||||
address: 127.0.0.1:2112
|
||||
# Collect agent stats (may increase charges for metrics storage).
|
||||
# (default: <unset>, type: bool)
|
||||
collect_agent_stats: false
|
||||
pprof:
|
||||
# Serve pprof metrics on the address defined by pprof address.
|
||||
# (default: <unset>, type: bool)
|
||||
|
||||
Reference in New Issue
Block a user