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