Skip to content

Commit 67bb7f7

Browse files
committed
[skip ci] worker: default worker_metrics_per_task setting to 0/off
1 parent ca66b82 commit 67bb7f7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/divbase-api/src/divbase_api/worker/worker_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class WorkerMetricsSettings:
4747
# ENABLE_WORKER_METRICS controls whether the Prometheus metrics server is started (system metrics, etc.)
4848
enabled: bool = os.getenv("ENABLE_WORKER_METRICS", "1") == "1"
4949
# ENABLE_WORKER_METRICS_PER_TASK controls whether per-task metrics (task/bcftools/VCF download) are collected and exposed
50-
enabled_per_task: bool = os.getenv("ENABLE_WORKER_METRICS_PER_TASK", "1") == "1"
50+
enabled_per_task: bool = os.getenv("ENABLE_WORKER_METRICS_PER_TASK", "0") == "1"
5151
# Prometheus scrapes every 15 seconds in DivBase setup. A TTL of 5 min means it is available for 20 scrapes.
5252
# Once Prometheus has scraped it, it will store the data in its own volume for its retention time (default 15d).
5353
cache_ttl_minutes: int = int(os.getenv("TASK_METRICS_CACHE_TTL_MINUTES", "5"))

0 commit comments

Comments
 (0)