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:
@@ -555,6 +555,16 @@ URL of a PostgreSQL database. If empty, PostgreSQL binaries will be downloaded f
|
||||
|
||||
The bind address to serve prometheus metrics.
|
||||
|
||||
### --prometheus-collect-agent-stats
|
||||
|
||||
| | |
|
||||
| ----------- | --------------------------------------------------------- |
|
||||
| Type | <code>bool</code> |
|
||||
| Environment | <code>$CODER_PROMETHEUS_COLLECT_AGENT_STATS</code> |
|
||||
| YAML | <code>introspection.prometheus.collect_agent_stats</code> |
|
||||
|
||||
Collect agent stats (may increase charges for metrics storage).
|
||||
|
||||
### --prometheus-enable
|
||||
|
||||
| | |
|
||||
|
||||
Reference in New Issue
Block a user