Comments (1)
I verified that the MP Starter, with "metrics" selected, works fine with Open Liberty.
here's what I did...
download and unzip mp starter for Open Liberty with metrics selected
download and unzip Open Liberty 22.0.0.13-beta
try it as is
mvn -DinstallDirectory=/Users/donbourne/garbage/20221123/wlp liberty:dev
http://localhost:9080/
http://localhost:9080/data/metric/timed
http://localhost:9080/metrics
works as expected
try it with mp metrics 5
change pom.xml to use mp metrics 5 instead of mp 5 dependency
code pom.xml
<dependencies>
<!--
<dependency>
<groupId>org.eclipse.microprofile</groupId>
<artifactId>microprofile</artifactId>
<version>5.0</version>
<type>pom</type>
<scope>provided</scope>
</dependency>
-->
<dependency>
<groupId>jakarta.ws.rs</groupId>
<artifactId>jakarta.ws.rs-api</artifactId>
<version>3.0.0</version>
<type>jar</type>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>jakarta.enterprise</groupId>
<artifactId>jakarta.enterprise.cdi-api</artifactId>
<version>3.0.0</version>
<type>jar</type>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.eclipse.microprofile.metrics</groupId>
<artifactId>microprofile-metrics-api</artifactId>
<version>5.0.0-RC4</version>
<type>jar</type>
<scope>provided</scope>
</dependency>
</dependencies>
mvn -DinstallDirectory=/Users/donbourne/garbage/20221123/wlp clean liberty:dev
http://localhost:9080/
http://localhost:9080/data/metric/timed
http://localhost:9080/metrics
works as expected
change server.xml to use mpMetrics 5
code ./src/main/liberty/config/server.xml
<featureManager>
<feature>mpMetrics-5.0</feature>
<feature>restfulWS-3.1</feature>
</featureManager>
mvn -DinstallDirectory=/Users/donbourne/garbage/20221123/wlp clean liberty:dev
http://localhost:9080/
http://localhost:9080/data/metric/timed
http://localhost:9080/metrics
works as expected
change server.xml to use mp 6
code ./src/main/liberty/config/server.xml
<featureManager>
<feature>microProfile-6.0</feature>
</featureManager>
mvn -DinstallDirectory=/Users/donbourne/garbage/20221123/wlp clean liberty:dev
http://localhost:9080/
http://localhost:9080/data/metric/timed
http://localhost:9080/metrics
works as expected
from microprofile-metrics.
Related Issues (20)
- [Potential] Re-instate @RegistryType and MetricRegistry.Type, but as deprecated instead. HOT 1
- Update to use MicroProfile Parent 3.0
- `@RegistryScope` should be a qualifier HOT 3
- Consider clarifying what period of time the JAX-RS metrics measure and assumptions about timeliness of metrics updates
- Outdated dependency versions HOT 12
- Open Liberty 22.0.0.13-beta: MicroProfile Metrics 5.0 Compatible Certification Request
- Address the redundancy of units for the Timer metric HOT 1
- The `@Timed` annotation defaults to SECONDS when it should be NANOSECONDS.
- Errors in MicroProfile 6.0 javadoc generation HOT 4
- requirement to have consistent tag sets causes problems for multi-app app server implementations
- Clarify naming convention when `@Metric` applies to a parameter
- Clarify: Which annotations can be used on private methods? HOT 1
- Add JPMS module-info.java
- Create spec for MP Metrics 5.1 HOT 1
- Consider changing TCK tests so they do not interfere with each other or rely on ordering
- Update to use the mp-parent 3.2
- Fix optional Base Metrics TCK test where `gc.time` is checked as a counter when it should be gauge. HOT 1
- Open Liberty 22.0.0.10-beta: MicroProfile Metrics 5.1 Compatible Certification Request
- build error when doclint checks are enabled
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from microprofile-metrics.