Hi Francois,

The metrics are exposed when you deploy an app, so you need to have an app 
deployed and then the metrics should be available in 
http://localhost:8080/APP_CONTEXT/metrics 
<http://localhost:8080/APP_CONTEXT/metrics>

Are you running TomEE with the MicroProfile classifier?

Have you tried any of the samples that I’ve sent you?

Cheers,
Roberto

> On 4 Jan 2019, at 09:33, COURTAULT Francois <francois.courta...@gemalto.com> 
> wrote:
> 
> Hello Roberto,
> 
> Regarding TomEE 8 metrics issue, according to the MP-Metrics spec (§2.1.1),  
> the Metrics MP provider has to implement some required metrics described in 
> Chapiter 4. Required Metrics.
> 
> My question is how to get those with TomEE 8.0.0 M1 ? which URL I have to 
> invoke ? I have tried several like localhost:8080/metrics/base, 
> localhost:8080/metrics, localhost:8080/rest-mp-metrics, 
> localhost:8080/mp-metrics,  localhost:8080/mp-metrics/base, ,  
> localhost:8080/mp-metrics-base but all of those return 404 :-(
> 
> Best Regards.
> 
> -----Original Message-----
> From: Roberto Cortez [mailto:radcor...@yahoo.com.INVALID]
> Sent: jeudi 3 janvier 2019 20:01
> To: us...@tomee.apache.org
> Cc: dev@tomee.apache.org
> Subject: Re: TomEE 7.1 release note issue ? and Metrics not working on TomEE 
> 8.0.0 M1 ?
> Importance: High
> 
> Hi Francois,
> 
> You are right. Geronimo Metrics 1.0.0 implementation, unfortunately is not 
> compatible with TomEE 7 due to CDI 2.0 requirement.
> 
> The release notes are somehow misleading. We had the task there to add it, 
> and we tried until we found the issue, so the issue was resolved as 
> Incomplete. We probably need to adjust the template to not include these.
> 
> Regarding TomEE 8, they should work. Did you have a look in any of the 
> samples?
> 
> https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Ftomee%2Ftree%2Fmaster%2Fexamples%2Fmp-metrics-counted&amp;data=02%7C01%7CFrancois.COURTAULT%40gemalto.com%7Cb3bc96c403464f65d0f808d671ade6d2%7C37d0a9db7c464096bfe31add5b495d6d%7C0%7C0%7C636821389050504460&amp;sdata=ikiJZZLGGn4GUzOVClM4N6rOVTNK3Ey6Hzo4aDnJ8Vc%3D&amp;reserved=0
>  
> <https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Ftomee%2Ftree%2Fmaster%2Fexamples%2Fmp-metrics-counted&amp;data=02%7C01%7CFrancois.COURTAULT%40gemalto.com%7Cb3bc96c403464f65d0f808d671ade6d2%7C37d0a9db7c464096bfe31add5b495d6d%7C0%7C0%7C636821389050504460&amp;sdata=ikiJZZLGGn4GUzOVClM4N6rOVTNK3Ey6Hzo4aDnJ8Vc%3D&amp;reserved=0>
> https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Ftomee%2Ftree%2Fmaster%2Fexamples%2Fmp-metrics-histogram&amp;data=02%7C01%7CFrancois.COURTAULT%40gemalto.com%7Cb3bc96c403464f65d0f808d671ade6d2%7C37d0a9db7c464096bfe31add5b495d6d%7C0%7C0%7C636821389050504460&amp;sdata=MRiLH%2FXGvRY9UVCUDtAiVT23bzdt%2BsCX1LoShfS4MQ8%3D&amp;reserved=0
>  
> <https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Ftomee%2Ftree%2Fmaster%2Fexamples%2Fmp-metrics-histogram&amp;data=02%7C01%7CFrancois.COURTAULT%40gemalto.com%7Cb3bc96c403464f65d0f808d671ade6d2%7C37d0a9db7c464096bfe31add5b495d6d%7C0%7C0%7C636821389050504460&amp;sdata=MRiLH%2FXGvRY9UVCUDtAiVT23bzdt%2BsCX1LoShfS4MQ8%3D&amp;reserved=0>
> https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Ftomee%2Ftree%2Fmaster%2Fexamples%2Fmp-metrics-metered&amp;data=02%7C01%7CFrancois.COURTAULT%40gemalto.com%7Cb3bc96c403464f65d0f808d671ade6d2%7C37d0a9db7c464096bfe31add5b495d6d%7C0%7C0%7C636821389050504460&amp;sdata=y4kgaKw915TkY4A6OaJsrBoIQuR2VQP3NbDn%2BNDjCpE%3D&amp;reserved=0
>  
> <https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Ftomee%2Ftree%2Fmaster%2Fexamples%2Fmp-metrics-metered&amp;data=02%7C01%7CFrancois.COURTAULT%40gemalto.com%7Cb3bc96c403464f65d0f808d671ade6d2%7C37d0a9db7c464096bfe31add5b495d6d%7C0%7C0%7C636821389050504460&amp;sdata=y4kgaKw915TkY4A6OaJsrBoIQuR2VQP3NbDn%2BNDjCpE%3D&amp;reserved=0>
> https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Ftomee%2Ftree%2Fmaster%2Fexamples%2Fmp-metrics-timed&amp;data=02%7C01%7CFrancois.COURTAULT%40gemalto.com%7Cb3bc96c403464f65d0f808d671ade6d2%7C37d0a9db7c464096bfe31add5b495d6d%7C0%7C0%7C636821389050504460&amp;sdata=hMoAOMnouWcWADZCFrh8JtSPOiUiRVNzdKsp0xCAw00%3D&amp;reserved=0
>  
> <https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Ftomee%2Ftree%2Fmaster%2Fexamples%2Fmp-metrics-timed&amp;data=02%7C01%7CFrancois.COURTAULT%40gemalto.com%7Cb3bc96c403464f65d0f808d671ade6d2%7C37d0a9db7c464096bfe31add5b495d6d%7C0%7C0%7C636821389050504460&amp;sdata=hMoAOMnouWcWADZCFrh8JtSPOiUiRVNzdKsp0xCAw00%3D&amp;reserved=0>
> 
> Cheers,
> Roberto
> 
>> On 3 Jan 2019, at 17:23, COURTAULT Francois <francois.courta...@gemalto.com> 
>> wrote:
>> 
>> Hello,
>> 
>> Looking at
>> https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fiss
>> ues.apache.org%2Fjira%2Fsecure%2FReleaseNote.jspa%3Fversion%3D12343847
>> %26styleName%3DHtml%26projectId%3D12312320%26Create%3DCreate%26atl_tok
>> en%3DA5KQ-2QAV-T4JA-FDED%257C5568e1c4aa2bd4f868c2c534352d83971d50919e%
>> 257Clin&amp;data=02%7C01%7CFrancois.COURTAULT%40gemalto.com%7Cb3bc96c4
>> 03464f65d0f808d671ade6d2%7C37d0a9db7c464096bfe31add5b495d6d%7C0%7C0%7C
>> 636821389050504460&amp;sdata=xJMwmTfkowszaEaLvFgmd8CH4KKqalGhuoA1lqN1z
>> og%3D&amp;reserved=0
>> 
>> I see:
>> [TOMEE-2215<https://emea01.safelinks.protection.outlook.com/?url=https
>> %3A%2F%2Fissues.apache.org%2Fjira%2Fbrowse%2FTOMEE-2215&amp;data=02%7C
>> 01%7CFrancois.COURTAULT%40gemalto.com%7Cb3bc96c403464f65d0f808d671ade6
>> d2%7C37d0a9db7c464096bfe31add5b495d6d%7C0%7C0%7C636821389050504460&amp
>> ;sdata=%2FfeTW8EAyPcIROL6ceUFwIob62zk8ZkmLWLU6B1md%2BE%3D&amp;reserved
>> =0>] - MicroProfile Metrics 1.0
>> 
>> This seems quite confusing because, we might think that TomEE 7.1 support 
>> metrics but if we look at 
>> TOMEE-2215<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fissues.apache.org%2Fjira%2Fbrowse%2FTOMEE-2215&amp;data=02%7C01%7CFrancois.COURTAULT%40gemalto.com%7Cb3bc96c403464f65d0f808d671ade6d2%7C37d0a9db7c464096bfe31add5b495d6d%7C0%7C0%7C636821389050504460&amp;sdata=%2FfeTW8EAyPcIROL6ceUFwIob62zk8ZkmLWLU6B1md%2BE%3D&amp;reserved=0>],
>>  it is written:
>> "Apparently the Metrics implementation requires CDI 2.0 and is only 
>> available in TomEE 8."
>> So, it means that Geronimo Metrics 1.0.0 requires CDI 2.0, right ?
>> And then it means that Metrics is not supported by TomEE 7.1, right ? So why 
>> is it listed in the TomEE 7.1 release note ?
>> 
>> I was wondering if Metrics is working on TomEE 8.0.0 M1: I ran it but
>> if , through a browser, I want to have access at  
>> http://localhost:8080/metrics/base, nothing is displayed :( (got a 404) 
>> Could you confirm or not if Metrics is working on TomEE 8.0.0 M1 ?
>> 
>> Best Regards.
>> ________________________________
>> This message and any attachments are intended solely for the addressees and 
>> may contain confidential information. Any unauthorized use or disclosure, 
>> either whole or partial, is prohibited.
>> E-mails are susceptible to alteration. Our company shall not be liable for 
>> the message if altered, changed or falsified. If you are not the intended 
>> recipient of this message, please delete it and notify the sender.
>> Although all reasonable efforts have been made to keep this transmission 
>> free from viruses, the sender will not be liable for damages caused by a 
>> transmitted virus.
> 
> ________________________________
> This message and any attachments are intended solely for the addressees and 
> may contain confidential information. Any unauthorized use or disclosure, 
> either whole or partial, is prohibited.
> E-mails are susceptible to alteration. Our company shall not be liable for 
> the message if altered, changed or falsified. If you are not the intended 
> recipient of this message, please delete it and notify the sender.
> Although all reasonable efforts have been made to keep this transmission free 
> from viruses, the sender will not be liable for damages caused by a 
> transmitted virus.

Reply via email to