Giter Site home page Giter Site logo

Comments (1)

donbourne avatar donbourne commented on July 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.