Perceptor: The "Performance Metrics Gathering Interceptor For Java EE" Released 📎
-
perceptor (metrics available via injection only):
<dependency> <groupId>com.airhacks</groupId> <artifactId>perceptor</artifactId> <version>0.0.1</version> </dependency>
-
perceptor-spy (metrics are exposed via:
/monitoring/methods
endpoint):<dependency> <groupId>com.airhacks</groupId> <artifactId>perceptor-spy</artifactId> <version>0.0.1</version> </dependency>
Metrics are accessbile under:curl [YOUR_THIN_WAR]/resources/monitoring/methods/[exceptional|recent|slowest|unstable]
Usage:
import com.airhacks.interceptor.monitoring.boundary.PerformanceSensor;
@Interceptors(PerformanceSensor.class)
public class Invoker {
public String slow() {}
public String fast() {}
}
Checkout https://github.com/AdamBien/perceptor for more information. You may also like https://github.com/AdamBien/porcupine
See you at Java EE Workshops at Munich Airport, Terminal 2 and particularly at Java EE Performance, Monitoring and Troubleshooting. Is Munich's airport too far? Learn from home: airhacks.io.