package Ġcom . pre z . config Ċ Ċ import Ġcom . pre z . lib . health . Accept able Mean Indicator Ċ import Ġcom . pre z . lib . health . External Service Health Indicator Ċ import Ġio . micro meter . core . instrument . Distribution Summary Ċ import Ġorg . springframework . beans . factory . annotation . Value Ċ import Ġorg . springframework . boot . act uate . health . Reactive Health Indicator Ċ import Ġorg . springframework . context . annotation . Bean Ċ import Ġorg . springframework . context . annotation . Configuration Ċ Ċ @ Configuration Ċ class ĠHealth Check Config Ġ{ ĊĊĠ Ġ// ĠExternal Ġweb service ĊĠ Ġ@ Bean (" customer Source H isto Health Indicator ") ĊĠ Ġ/* Ġyou Ġneed Ġto Ġset Ġa Ġname Ġor Ġthe Ġmethod Ġname Ġwill Ġbe Ġsuff ixed Ġby Ġthe Ġapp Ġname Ġ*/ ĊĠ Ġinternal Ġfun Ġcustomer Source H isto Health Indicator ( ĊĠĠĠĠĠ Ġcustomer W SS um mary : ĠDistribution Summary , ĊĠĠĠĠĠ Ġ@ Value ("\ ${ customer . ws . accept able . mean : 0 . 9 8 }") Ġacceptable Mean : ĠDouble ĊĠ Ġ): ĠReactive Health Indicator ? Ġ{ ĊĠĠĠ Ġreturn ĠAccept able Mean Indicator ( customer W SS um mary , Ġacceptable Mean , Ġ" Customer Source ") ĊĠ Ġ} ĊĊĠ Ġ@ Bean (" customer Source Url Health Indicator ") ĊĠ Ġ/* Ġyou Ġneed Ġto Ġset Ġa Ġname Ġor Ġthe Ġmethod Ġname Ġwill Ġbe Ġsuff ixed Ġby Ġthe Ġapp Ġname Ġ*/ ĊĠ Ġinternal Ġfun Ġcustomer Source Url Health Indicator (@ Value ("\ ${ customer . ws . base - path }") Ġurl : ĠString ): ĠReactive Health Indicator ? Ġ{ ĊĠĠĠ Ġreturn ĠExternal Service Health Indicator (" customer Ġsource ", Ġurl ) ĊĠ Ġ} ĊĊĠ Ġ// ĠMongo Ġ& ĠRedis Ġhave Ġout - of - the - box Ġindicators Ġavailable Ċ Ċ }