Metrics Settings
Table of Contents
- workspaceTasks.metrics.scope
- workspaceTasks.metrics.maxDurationSamples
- workspaceTasks.metrics.retentionDays
- Related
v1.7 Task execution metrics collection and configuration options.
workspaceTasks.metrics.scope
| ย | ย |
|---|---|
| Type: | string |
| Default: | "workspace" |
| Options: | "workspace", "global", "both", "disabled" |
| Scope: | application |
Controls where task execution metrics are stored.
- workspace - Metrics are stored in the workspace storage only
- global - Metrics are stored in global storage only (shared across workspaces)
- both - Metrics are stored in both workspace and global storage
- disabled - Metrics collection is disabled entirely
Example:
{
"workspaceTasks.metrics.scope": "workspace"
}
workspaceTasks.metrics.maxDurationSamples
| ย | ย |
|---|---|
| Type: | number |
| Default: | 100 |
| Minimum: | 10 |
| Maximum: | 1000 |
| Scope: | application |
The maximum number of duration samples to store per task. Once this limit is reached, the oldest samples are removed as new ones are added. Higher values give more accurate long-term statistics at the cost of slightly more storage.
Example:
{
"workspaceTasks.metrics.maxDurationSamples": 100
}
workspaceTasks.metrics.retentionDays
| ย | ย |
|---|---|
| Type: | number |
| Default: | 0 |
| Minimum: | 0 |
| Scope: | application |
The number of days to retain task execution metrics. Set to 0 to retain metrics indefinitely. When set to a positive value, metrics older than the specified number of days are automatically removed.
Example:
{
"workspaceTasks.metrics.retentionDays": 30
}