GraphiteWriter: Add downtime depth as additional metric

fixes #6946
This commit is contained in:
Michael Friedrich 2014-10-10 21:31:34 +02:00
parent 273a5eddc5
commit 51589d82b5
1 changed files with 1 additions and 0 deletions

View File

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