-
Notifications
You must be signed in to change notification settings - Fork 38
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
Metrics: basic start unit job reporting #265
Conversation
f248c5b
to
56d3842
Compare
b1bd76d
to
a4360f6
Compare
/cc @dougsland |
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.
Great job! Only got a few minor comments.
After manually testing a bit I found two interesting aspects:
[laptop] Agent systemd StartUnit job on cow.service net measured time: 87.3ms
[laptop] Start job /org/containers/hirte/job/8 on unit cow.service:
Hirte job gross measured time: 89.2ms
Unit net start time (from properties): 46.4ms
[laptop] Agent systemd StartUnit job on cow.service net measured time: 1.2ms
[laptop] Start job /org/containers/hirte/job/9 on unit cow.service:
Hirte job gross measured time: 3.6ms
Unit net start time (from properties): 46.4ms
[pi] Agent systemd StartUnit job on requesting.service net measured time: 153.4ms
[pi] Start job /org/containers/hirte/job/1 on unit requesting.service:
Hirte job gross measured time: 178.7ms
Unit net start time (from properties): 0.0ms I think it would be great to have a more detailed view - which can be done in a separate PR, of course. What do you think? @pypingou @mkemel |
@engelmi Thanks :)
|
This change allows the user to enable/disable metrics, and then if metrics are enabled - on every StartUnit job hirte manager will fetch unit start net time from properties, and subtract it from measured job time and report all the data via signal Signed-off-by: Mark Kemel <mkemel@redhat.com>
Yes, it is definitely fine like it is now :) I just wanted to mention it here so we are aware and know the cause - since others that are (not yet) familiar with it will likely ask.
Sounds good! But before starting, we should probably talk about it in our sync meeting. |
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.
LGTM
This change allows the user to enable/disable metrics, and then if metrics are enabled - on every StartUnit job hirte manager will measure gross method execution time, and also will fetch unit start net time from properties - and report them both via
StartUnitJobMetrics
signal.In addition, the hirte agent will measure systemd job net time and report it via
AgentJobMetrics
signal to the hirte manager, which would relay it to the user.Sample
hirtectl
outputSample
gdbus
output