-
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
Send all metrics and remove typesDB config option #35
Conversation
Signed-off-by: Dominik Rosiek <drosiek@sumologic.com>
Signed-off-by: Dominik Rosiek <drosiek@sumologic.com>
Signed-off-by: Dominik Rosiek <drosiek@sumologic.com>
Signed-off-by: Dominik Rosiek <drosiek@sumologic.com>
b24a120
to
9c3b3d6
Compare
@@ -51,7 +51,12 @@ def write_callback(self, raw_data, _=None): | |||
Write callback | |||
""" | |||
|
|||
metrics = convert_to_metrics(raw_data, self.met_config.types) | |||
try: | |||
data_set = self.collectd.get_dataset(raw_data.type) |
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.
Do we need to handle the None
case as well as mentioned in get_datset
return values here https://collectd.org/documentation/manpages/collectd-python.5.shtml ?
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.
min
and max
has not been taken into account so far, and in case dataset gets invalid metric type it raises TypeError
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 open new issue to track this: #36
Use
collectd.get_dataset
to obtain dataset definition instead of usinttypesDb