Adam Bien's Weblog

Perceptor: The "Performance Metrics Gathering Interceptor For Java EE" Released

perceptor v0.0.1 released. Perceptor is "Performance Metrics Gathering Interceptor" for Java EE 7. It comes as a 9kB, zero dependencies, Thin JAR with "plug and play" installation and two flavors:

  1. perceptor (metrics available via injection only):
        
    <dependency>
        <groupId>com.airhacks</groupId>
        <artifactId>perceptor</artifactId>
        <version>0.0.1</version>
    </dependency>
        
    
  2. 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.


NEW workshop: HTML 5 and JavaScript Essentials, Three days in April 2017: from Java EE 7 Architectures over Microservices to Performance, Troubleshooting and Monitoring
On demand workshops: Java EE 7: Bootstrap, Effective, Testing and Microservices available for streaming.

Newsletter: airhacks.news

A book about rethinking Java EE Patterns

Comments:

Hi Adam, is it me or is the response only returned in XML and there is no way to get it as JSON?

Regards,
Daniel

Posted by Daniel W. on April 10, 2017 at 03:03 PM CEST #

Post a Comment:
  • HTML Syntax: NOT allowed
realworldpatterns.com
Online Workshops
...the last 150 posts
...the last 10 comments
License