Closed andreaminutoibm closed 1 year ago
Hello @andreaminutoibm, 1. CDI does not consider all targets on a servlet to be "intercept-able". We recommend to use a RestfulWS (formerly JAX-RS) if you intend to instrument with annotations.
In mpMetrics-5.0
the underlying implementation is now using micrometer metrics. As a consequence of this, the exporting of metrics to /metrics
uses the Prometheus client library which formats the metrics into float values.
@andreaminutoibm Is this okay to close?
It’s ok to close for me. Thank you.
Andrea Minuto
Andrea Minuto Executive IT Specialist IBM Expert Labs Red Hat Certified Architect
39 335 143 3009 Mobile @.**@.> Via Luigi Stipa, 150 00148 ROMA (Italia)
From: David Chan @.> Sent: mercoledì 24 maggio 2023 20:17 To: OpenLiberty/open-liberty @.> Cc: Andrea Minuto @.>; Mention @.> Subject: [EXTERNAL] Re: [OpenLiberty/open-liberty] Metrics 5.0 (MicroProfile 6.0) implementation uncorrect behaviours (Issue #25032)
@andreaminutoibm Is this okay to close? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned. Message ID: OpenLiberty/open-liberty/issues/25032/1561727205@ github. com ZjQcmQRYFpfptBannerStart This Message Is From an External Sender This message came from outside your organization. ZjQcmQRYFpfptBannerEnd
@andreaminutoibmhttps://github.com/andreaminutoibm Is this okay to close?
— Reply to this email directly, view it on GitHubhttps://github.com/OpenLiberty/open-liberty/issues/25032#issuecomment-1561727205, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANSHAZZOHQWPT5M5Q42LJDLXHZGCBANCNFSM6AAAAAAXCGV6GQ. You are receiving this because you were mentioned.Message ID: @.***>
Unless otherwise stated above:
IBM Italia S.p.A. Sede Legale: Circonvallazione Idroscalo - 20090 Segrate (MI) Cap. Soc. euro 347.256.998,80 C. F. e Reg. Imprese MI 01442240030 - Partita IVA 10914660153 Società con unico azionista Società soggetta all'attività di direzione e coordinamento di International Business Machines Corporation
Gauge metrics from Metrics 5.0 implementation don't work as expected, at least for my understanding of the specification.
Versions:
Features:
Problems:
@Gauge
annotation, a gauge metric is not registered at runtime and doesn't show up when called by /metrics APIScenario: Suppose we are implementing a servlet that must contain a gauge metric to report the number of active requests.
Problem 1: Sample code (the metric is not registered at runtime)
Problem 2: Sample code (the metric is registered but it shows up as a float number)
The /metrics?scope=application api reports: