package Ġp 1 nk un 1 c 0 r ns . status metrics Ċ Ċ import Ġio . prometheus . client . Collector Registry Ċ import Ġio . prometheus . client . exporter . common . Text Format Ċ import Ġio . quarkus . vertx . web . Route Ċ import Ġio . quarkus . vertx . web . Routing Exchange Ċ import Ġjava . io . String Writer Ċ import Ġjavax . enterprise . context . Application Scoped Ċ Ċ @ Application Scoped Ċ class ĠRoutes Ġ{ ĊĊĠĠĠ Ġ@ Route ( path Ġ= Ġ"/ live ") ĊĠĠĠ Ġfun Ġlive ( re : ĠRouting Exchange ) Ġ= Ġre . ok (" Live ") ĊĊĠĠĠ Ġ@ Route ( path Ġ= Ġ"/ ready ") ĊĠĠĠ Ġfun Ġready ( re : ĠRouting Exchange ) Ġ= Ġre . ok (" Ready ") ĊĊĠĠĠ Ġ@ Route ( path Ġ= Ġ"/ metrics ", Ġproduces Ġ= Ġ[ Text Format . CONTENT _ TYPE _ 0 0 4 ]) ĊĠĠĠ Ġfun Ġmetrics ( re : ĠRouting Exchange ) Ġ{ ĊĠĠĠĠĠĠĠ ĠString Writer (). use Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠText Format . write 0 0 4 ( it , ĠCollector Registry . default Registry . metric Family Samples ()) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġre . ok ( it . toString ()) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ }