From 381abd5f3e88b5c46bd73c5b02421fbc318a4860 Mon Sep 17 00:00:00 2001 From: Colin Gagnaire Date: Tue, 23 Jul 2019 15:54:43 +0200 Subject: [PATCH] fix prometheus cadvisor storage --- cloud/prometheus/exporters/cadvisor/mode/storage.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloud/prometheus/exporters/cadvisor/mode/storage.pm b/cloud/prometheus/exporters/cadvisor/mode/storage.pm index 85fe4f830..a2c92c482 100644 --- a/cloud/prometheus/exporters/cadvisor/mode/storage.pm +++ b/cloud/prometheus/exporters/cadvisor/mode/storage.pm @@ -47,7 +47,7 @@ sub custom_usage_perfdata { value => $value_perf, warning => $self->{perfdata}->get_perfdata_for_output(label => 'warning-' . $self->{thlabel}, %total_options), critical => $self->{perfdata}->get_perfdata_for_output(label => 'critical-' . $self->{thlabel}, %total_options), - min => 0, max => $self->{result_values}->{total} + min => 0, max => $self->{result_values}->{total}, instances => $self->use_instances(extra_instance => $options{extra_instance}) ? $self->{result_values}->{display} : undef, ); }