Skip to content

Commit

Permalink
Make pod.status_phase metric report value from prometheus
Browse files Browse the repository at this point in the history
  • Loading branch information
mwhittington21 committed Jul 3, 2018
1 parent eb5ad98 commit 949e0d5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ def kube_pod_status_phase(self, message, **kwargs):
tags = [self._label_to_tag("pod", metric.label), self._label_to_tag("namespace", metric.label),
self._label_to_tag("phase", metric.label)] + self.custom_tags
self._condition_to_tag_check(metric, check_basename, self.pod_phase_to_status, tags=tags)
self.gauge(metric_name, 1, tags)
self.gauge(metric_name, metric.gauge.value, tags)

def kube_pod_container_status_waiting_reason(self, message, **kwargs):
metric_name = self.NAMESPACE + '.container.status_report.count.waiting'
Expand Down

0 comments on commit 949e0d5

Please sign in to comment.