These are chat archives for spring-cloud/spring-cloud

17th
Aug 2018
Bambus
@vlatk0o
Aug 17 2018 08:40
Hello guys, how to expose hystrix metrics to prometheus?
worldtiki
@worldtiki
Aug 17 2018 08:50
there's probably a better way. but you can use hystrix plugins @vlatk0o
you can do HystrixPlugins.reset(); and the register your own plugins. you can register a MyHystrixMetricsPublisherImpl and get metrics for command executions and threadpools
just make sure that after calling the reset() you restore all the other plugins
Bambus
@vlatk0o
Aug 17 2018 09:46
image.png
I have only this metrics
@worldtiki that are all metrics from hystrix?
worldtiki
@worldtiki
Aug 17 2018 09:48
i dont know. the reason I mentioned using the plugins is that you can decide what metrics you are interested in
Bambus
@vlatk0o
Aug 17 2018 09:49
Btw I have found some hystrix dashboard for grafana
worldtiki
@worldtiki
Aug 17 2018 09:49
for example, if you only care about percentile 995 for command time executions you can just add this
yourMetricRegistry.register(createMetricName("p995"), (Gauge<Integer>) () -> metrics.getExecutionTimePercentile(99.5));
Bambus
@vlatk0o
Aug 17 2018 09:49
but its not working correctly
aham
i will go with the metrics from the actuator because i am in rush
do you have experience with some hystrix dashboard in grafana?
worldtiki
@worldtiki
Aug 17 2018 09:51
no
Bambus
@vlatk0o
Aug 17 2018 09:51
okay, thank you a lot!