-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
✨ Add metrics endpoint #389
Conversation
26c441f
to
08b567d
Compare
8bed38d
to
0472589
Compare
pass | ||
|
||
|
||
class TasksInState(Metric): |
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.
I would rather like to have this as TaskChanis or TaskGraphs in state. Otherwise this number is not really saying much (Transcode is much faster, yadayada)
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.
I think the nicer way would be to have the task type as a label as well, I'll change that
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.
I would prefer some other task parameters (that influence needed computing time) as labels then too
|
||
class Queue(Metric): | ||
def __init__(self): | ||
self.collector = Gauge("queue", "Queue length in seconds") |
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.
Same here. I would like to have every task chain only counted once
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.
Or maybe we introduce some unit here that is not seconds (maybe something like estimated compute seconds on some specific platform? the mac mini?)
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.
Yes and no. Doing a better calculation that takes into account the real time factor of different machines etc would be a nice addition, but I'd rather do that in a seperate PR, as this has some more open questions to me (and probably needs some database changes as well)
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.
Then for the time being only count transcription tasks?
82b6463
to
8db05ec
Compare
No description provided.