Skip to content

Commit

Permalink
include node condition value in check message (#2362)
Browse files Browse the repository at this point in the history
  • Loading branch information
dwradcliffe authored and xvello committed Oct 11, 2018
1 parent e30858f commit e28210d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ def _condition_to_tag_check(self, sample, base_sc_name, mapping, scraper_config,
else:
node = self._label_to_tag('node', sample[self.SAMPLE_LABELS], scraper_config)
condition = self._label_to_tag('condition', sample[self.SAMPLE_LABELS], scraper_config)
message = "{} is currently reporting {}".format(node, condition)
message = "{} is currently reporting {} = {}".format(node, condition, label_value)

if condition_map['service_check_name'] is None:
self.log.debug("Unable to handle {} - unknown condition {}".format(service_check_name, label_value))
Expand Down

0 comments on commit e28210d

Please sign in to comment.