Skip to content

Commit

Permalink
Dawde duckling to: Sanitise cluster and host names going into metric …
Browse files Browse the repository at this point in the history
…names.

  ref: Convert cluster names for Graphite ingestion #385 – #385
  • Loading branch information
michaelsembwever committed Apr 4, 2018
1 parent 8bb930d commit d7689fa
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -421,7 +421,7 @@ private static String metricNameForPostpone(Optional<RepairUnit> unit, RepairSeg
SegmentRunner.class,
"postpone",
Optional.fromNullable(segment.getCoordinatorHost()).or("null").replace('.', '-'),
unit.get().getClusterName(),
unit.get().getClusterName().replace('.', '-'),
unit.get().getKeyspaceName())
: MetricRegistry.name(
SegmentRunner.class,
Expand All @@ -434,7 +434,7 @@ private String metricNameForRepairing(RepairSegment rs) {
SegmentRunner.class,
"repairing",
Optional.fromNullable(rs.getCoordinatorHost()).or("null").replace('.', '-'),
clusterName,
clusterName.replace('.', '-'),
repairUnit.getKeyspaceName());
}

Expand All @@ -443,7 +443,7 @@ private String metricNameForRunRepair(RepairSegment rs) {
SegmentRunner.class,
"runRepair",
Optional.fromNullable(rs.getCoordinatorHost()).or("null").replace('.', '-'),
clusterName,
clusterName.replace('.', '-'),
repairUnit.getKeyspaceName());
}

Expand Down

0 comments on commit d7689fa

Please sign in to comment.