Пример #1
0
 public static MetricsSource userSource(MetricsSystem ms, String queue, String user) {
   MetricsSource s =
       ms.getSource(QueueMetrics.sourceName(queue).append(",user=").append(user).toString());
   return s;
 }
Пример #2
0
 public static MetricsSource queueSource(MetricsSystem ms, String queue) {
   MetricsSource s = ms.getSource(QueueMetrics.sourceName(queue).toString());
   return s;
 }