Added different intervals for collectors and made them configurable.

This commit is contained in:
2025-05-22 09:57:21 +02:00
parent 85154fcd60
commit 6e6f22f5d4
6 changed files with 186 additions and 67 deletions

View File

@@ -5,6 +5,9 @@ import time
from datetime import datetime
from typing import Dict, Any
# Default update interval in seconds
DEFAULT_INTERVAL = 60 # 1 minute
def collect_metrics() -> Dict[str, Any]:
"""Collect system metrics and return them in the required format."""
# Get system metrics