-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dead processes metrics #53
Conversation
mikha1lov
commented
Mar 22, 2024
•
edited
edited
- Counting processes
- Sending last pack of metrics after app was stopped
61df202
to
4ba99af
Compare
aqueduct/metrics/collect.py
Outdated
@@ -30,13 +30,15 @@ def __init__(self): | |||
self.queue_sizes = MetricsItems() | |||
self.tasks_stats = TasksStats() | |||
self.memory_usage = MetricsItems() | |||
self.dead_processes_count = MetricsItems() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
word 'count' in dead_processes_count
seems like unnecessary, it will be simplier id you make just self.dead_processes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now it is processes_stats
70b9f08
to
f078814
Compare
aqueduct/metrics/processes.py
Outdated
|
||
def add_dead_process(self): | ||
self.dead += 1 | ||
self.running = 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self.running = 0
looks like a crutch, can we deal without need self.running = 0
, maybe we dont need stop metcrics manager when we stoppping flow
@@ -25,6 +25,7 @@ | |||
from .metrics.collect import Collector, TasksStats |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please updade CHANGELOG and version