Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Fix the metric names towards alerts to be <resid>.status.{code,duration}
Browse files Browse the repository at this point in the history
  • Loading branch information
pilhuhn committed Feb 25, 2015
1 parent 510e47a commit 8966d51
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,10 @@ private void reportResults(List<PingStatus> results) {


// for the topic to alerting
SingleMetric singleMetric = new SingleMetric(status.destination.name() + ".duration",
SingleMetric singleMetric = new SingleMetric(status.destination.resourceId + ".status.duration",
status.getTimestamp(), (double) status.getDuration());
singleMetrics.add(singleMetric);
singleMetric = new SingleMetric(status.destination.name() + ".code",
singleMetric = new SingleMetric(status.destination.resourceId + ".status.code",
status.getTimestamp(), (double) status.getCode());
singleMetrics.add(singleMetric);

Expand Down

0 comments on commit 8966d51

Please sign in to comment.