Ejemplo n.º 1
0
 @Override
 public void notify(ZuulFilter filter, ExecutionStatus status) {
   DynamicCounter.increment(
       METRIC_PREFIX + filter.getClass().getSimpleName(),
       "status",
       status.name(),
       "filtertype",
       filter.filterType());
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 3
0
 /** Increment a counter based on a given {@link MonitorConfig}. */
 public static void increment(MonitorConfig config) {
   INSTANCE.get(config).increment();
 }