Metrics Settings

Table of Contents

  1. workspaceTasks.metrics.scope
  2. workspaceTasks.metrics.maxDurationSamples
  3. workspaceTasks.metrics.retentionDays
  4. Related

v1.7: Task execution metrics collection and configuration options.

workspaceTasks.metrics.scope

Type: string Default: "workspace" Options: "workspace", "global", "both", "disabled"

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

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

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
}


© 2026 Ryan Conrad. All rights reserved.

This site uses Just the Docs, a documentation theme for Jekyll.