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:
@@ -271,6 +271,7 @@ curl -X GET http://coder-server:8080/api/v2/deployment/config \
|
||||
"host": "string",
|
||||
"port": "string"
|
||||
},
|
||||
"collect_agent_stats": true,
|
||||
"enable": true
|
||||
},
|
||||
"provisioner": {
|
||||
|
||||
+8
-4
@@ -1901,6 +1901,7 @@ CreateParameterRequest is a structure used to create a new parameter value for a
|
||||
"host": "string",
|
||||
"port": "string"
|
||||
},
|
||||
"collect_agent_stats": true,
|
||||
"enable": true
|
||||
},
|
||||
"provisioner": {
|
||||
@@ -2244,6 +2245,7 @@ CreateParameterRequest is a structure used to create a new parameter value for a
|
||||
"host": "string",
|
||||
"port": "string"
|
||||
},
|
||||
"collect_agent_stats": true,
|
||||
"enable": true
|
||||
},
|
||||
"provisioner": {
|
||||
@@ -3155,16 +3157,18 @@ Parameter represents a set value for the scope.
|
||||
"host": "string",
|
||||
"port": "string"
|
||||
},
|
||||
"collect_agent_stats": true,
|
||||
"enable": true
|
||||
}
|
||||
```
|
||||
|
||||
### Properties
|
||||
|
||||
| Name | Type | Required | Restrictions | Description |
|
||||
| --------- | ------------------------------------ | -------- | ------------ | ----------- |
|
||||
| `address` | [clibase.HostPort](#clibasehostport) | false | | |
|
||||
| `enable` | boolean | false | | |
|
||||
| Name | Type | Required | Restrictions | Description |
|
||||
| --------------------- | ------------------------------------ | -------- | ------------ | ----------- |
|
||||
| `address` | [clibase.HostPort](#clibasehostport) | false | | |
|
||||
| `collect_agent_stats` | boolean | false | | |
|
||||
| `enable` | boolean | false | | |
|
||||
|
||||
## codersdk.ProvisionerConfig
|
||||
|
||||
|
||||
Reference in New Issue
Block a user