-
Notifications
You must be signed in to change notification settings - Fork 34
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
Implement DRBD metrics for disk-state #26
Conversation
Add function to get raw JSON
doesn't have any SBD_DEVICE set. In this case just catch the error and continue. The rationale behind is that in some systems user could forget to set this in config file so we don't want to panic the exporter because an index error
We need to sleep the same timeout if a X metric encounter an error, so they metrics are executed always at same time. Example: if sbd metric fail and we continue without timeout, the execution will be 10X or more faster then a normal metric with timeout.
- add reset for drbd metric, this is needed in case we lost a disk and since a disk is a label, if we wouldn't destroy/reset a metric at each time, we could contain a zombie disk metric - implement map from value to number
Just a nitpicky remark about naming (yeah, I might be kind of a naming freak): |
Good point. I think we can remove the last 2 words |
@storresi can web merge? |
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.
sorry @MalloZup I actually forgot to hit the green button 😝
OK THX! I have added it to the release draft. We will wait a bit this time before releasing a new rpm since we need to do some refactoring etc |
Description
This pr will implement this metric:
Usage:
what is it is missing: