-
Notifications
You must be signed in to change notification settings - Fork 4
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 custom metrics config option #20
Conversation
3d85f6b
to
5299662
Compare
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.
It's looking good.
It's a personal preference but one of the highlights to me from pytest is that it's not necessary to create classes like when using unittest. I prefer not having classes, but no strong opinion
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.
looks good, changes requested simply because I agree with Gabriel's comments
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.
One small suggestion
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.
nice!
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.
Nice job!
Just some small details to polish
4c09171
dcgm-exporter-metrics-file
.TestDCGMComponents
andTestDCGMConfigs
.The user can set that config with the filename of the metrics file placed in
/var/snap/dcgm/common
prior. Thedcgm-exporter
wrapper will then check if the file exists in the directory above and supply it to the service.The custom metrics file we developed will not be added alongside with the PR. It will be moved to the charm later when the feature is merged.