-
Notifications
You must be signed in to change notification settings - Fork 598
Add https support for monit collector. #543
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
base: master
Are you sure you want to change the base?
Conversation
Can you fix the pep8 errors? also update the doc and testing? |
int(self.config['port'])) | ||
|
||
if self.config['selfsigned'] and sys.hexversion >= 0x020709f0 and hasattr(ssl, '_create_unverified_context'): |
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.
Can you add a comment as to what version 0x020709f0
correlates to? or use sys.version_info
instead?
More compliance PEP8 format source code. Domumentation update.
I update doc and bit more accurate PEP8. |
@@ -21,6 +21,8 @@ measure_collector_time | False | Collect the collector run time in ms | bool | |||
metrics_blacklist | None | Regex to match metrics to block. Mutually exclusive with metrics_whitelist | NoneType | |||
metrics_whitelist | None | Regex to match metrics to transmit. Mutually exclusive with metrics_blacklist | NoneType | |||
send_totals | False | Send cpu and memory totals | bool | |||
scheme | http | Select scheme http or https | str |
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.
alphabetize
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.
The descriptions need to be added to the get_default_config_help method in the collector file since this doc is actually generated from that.
1 pep8 error left For testing, PR540 would be a good reference for the scheme checking |
Use private methods, but worked.