java - Unable to view Hystrix metrics in Dropwizard app via hystrix-metrics-event-stream servlet -


i have dropwizard 0.8.1 app have added number of hystrixcommand classes calling out various external services. want visualize stats related calls services, can't seem app play nice hystrix dashboard. documentation seems imply if hystrix-metrics-event-stream servlet working in app should work, when call servlet endpoint directly (curl http://localhost:8080/hystrix.stream) long stream of ping: lines, implying there no metrics available published. have cron job repeatedly calling hystrixcommand objects try generate stats, no avail.

is there i'm not doing? have added dependency pom.xml:

<dependency>     <groupid>com.netflix.hystrix</groupid>     <artifactid>hystrix-metrics-event-stream</artifactid>     <version>1.4.5</version> </dependency> 

i have integrated servlet dropwizard in app.java:

public void run(final appconfig configuration, final environment environment) throws exception { ... environment.getapplicationcontext().addservlet("com.netflix.hystrix.contrib.metrics.eventstream.hystrixmetricsstreamservlet", "/hystrix.stream"); 

is possible need manually publish metrics data picked hystrixmetricspoller? or maybe need tweak config dev environment? appreciated!

sorted it! turned out version of hystrix-metrics-event-stream artifact 1.4.5 version of hystrix-core 1.3.8. didn't spot @ first because stored in pom file. i'm using same version across hystrix packages , getting data fine hystrix.stream servlet.

as related aside, found hystrix-dropwizard-bundle looks easier , flexible way integrate dropwizard hystrix people doing scratch or using complex tenacity. includes support hystrixcodahalemetricspublisher might of use people using dropwizard metrics (we're not).


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -