]> granicus.if.org Git - icinga2/commitdiff
GraphiteWriter: Add downtime depth as additional metric
authorMichael Friedrich <michael.friedrich@gmail.com>
Fri, 10 Oct 2014 19:31:34 +0000 (21:31 +0200)
committerMichael Friedrich <michael.friedrich@gmail.com>
Sat, 11 Oct 2014 15:01:52 +0000 (17:01 +0200)
fixes #6946

components/perfdata/graphitewriter.cpp

index e4bf521a52cf59c24e652763b57904b753ffd661..9226f57916cd98ae99aa483e03b92ce80fe28323 100644 (file)
@@ -127,6 +127,7 @@ void GraphiteWriter::CheckResultHandler(const Checkable::Ptr& checkable, const C
        SendMetric(prefix, "max_check_attempts", checkable->GetMaxCheckAttempts());
        SendMetric(prefix, "state_type", checkable->GetStateType());
        SendMetric(prefix, "reachable", checkable->IsReachable());
+       SendMetric(prefix, "downtime_depth", checkable->GetDowntimeDepth());
        SendMetric(prefix, "latency", Service::CalculateLatency(cr));
        SendMetric(prefix, "execution_time", Service::CalculateExecutionTime(cr));
        SendPerfdata(prefix, cr);