lablup / lablup/backend.ai

Implement sliding window observer for kernel metrics

Open
#7,537 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
670
Forks
183
Avg merge
17h 7m
Merged PRs (30d)
358

Description

## Goal

Implement timestamp-based cleanup mechanism for kernel metrics.

## Requirements

- Track last collection timestamp for each kernel metric
- Configurable cleanup window (multiple of 5 minutes, the metric collection interval)
- Auto-remove metrics not updated within the window
- Integrate with existing StatContext

## Implementation

Add sliding window observer to `stats.py`:

- New class or method to track timestamps
- Configuration parameter for window size
- Periodic cleanup task

## Dependencies

Should be implemented after bug fix (BA-3521 subtask 1).

JIRA Issue: BA-3523

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.