예제 #1
0
 @Override
 public void notify(ZuulFilter filter, ExecutionStatus status) {
   DynamicCounter.increment(
       METRIC_PREFIX + filter.getClass().getSimpleName(),
       "status",
       status.name(),
       "filtertype",
       filter.filterType());
 }
예제 #2
0
 /**
  * Increment a counter based on a given {@link MonitorConfig} by a given delta.
  *
  * @param config The monitoring config
  * @param delta The amount added to the current value
  */
 public static void increment(MonitorConfig config, long delta) {
   INSTANCE.get(config).increment(delta);
 }
예제 #3
0
 /** Increment a counter based on a given {@link MonitorConfig}. */
 public static void increment(MonitorConfig config) {
   INSTANCE.get(config).increment();
 }