mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: make agent stats' cardinality configurable (#12468)
Closes #12221
This commit is contained in:
+5
@@ -123,6 +123,11 @@ INTROSPECTION / PROMETHEUS OPTIONS:
|
||||
--prometheus-address host:port, $CODER_PROMETHEUS_ADDRESS (default: 127.0.0.1:2112)
|
||||
The bind address to serve prometheus metrics.
|
||||
|
||||
--prometheus-aggregate-agent-stats-by string-array, $CODER_PROMETHEUS_AGGREGATE_AGENT_STATS_BY (default: agent_name,template_name,username,workspace_name)
|
||||
When collecting agent stats, aggregate metrics by a given set of
|
||||
comma-separated labels to reduce cardinality. Accepted values are
|
||||
agent_name, template_name, username, workspace_name.
|
||||
|
||||
--prometheus-collect-agent-stats bool, $CODER_PROMETHEUS_COLLECT_AGENT_STATS
|
||||
Collect agent stats (may increase charges for metrics storage).
|
||||
|
||||
|
||||
+9
@@ -188,6 +188,15 @@ introspection:
|
||||
# Collect agent stats (may increase charges for metrics storage).
|
||||
# (default: <unset>, type: bool)
|
||||
collect_agent_stats: false
|
||||
# When collecting agent stats, aggregate metrics by a given set of comma-separated
|
||||
# labels to reduce cardinality. Accepted values are agent_name, template_name,
|
||||
# username, workspace_name.
|
||||
# (default: agent_name,template_name,username,workspace_name, type: string-array)
|
||||
aggregate_agent_stats_by:
|
||||
- agent_name
|
||||
- template_name
|
||||
- username
|
||||
- workspace_name
|
||||
# Collect database metrics (may increase charges for metrics storage).
|
||||
# (default: false, type: bool)
|
||||
collect_db_metrics: false
|
||||
|
||||
Reference in New Issue
Block a user