Giter Site home page Giter Site logo

Comments (4)

pilhuhn avatar pilhuhn commented on August 22, 2024 1

from microprofile-metrics.

mikecroft avatar mikecroft commented on August 22, 2024

I've been thinking about this - my first reaction was just "no" because I think those sorts of tests are the responsibility of vendors and it would mean we would need to keep the TCK updated each time someone wants to implement the spec.

Could Metrics report metadata about itself? like available metrics and their types? We could then automate basic testing of vendor endpoints, i.e. testing for something rather than nothing or that the result is an Integer when we expect it to be. Not sure if we could maybe hook into the OpenAPI proposal for that (although I haven't seen any work on it since the repo was created)

from microprofile-metrics.

pilhuhn avatar pilhuhn commented on August 22, 2024

from microprofile-metrics.

mikecroft avatar mikecroft commented on August 22, 2024

Yes, that is what OPTIONS /metrics/ is for.

Does the mention of sub-trees in the description cover things like /metrics/vendor/group1/fooVal? E.g. we make heavy use of Hazelcast in Payara, so we may want to expose some Hazelcast metrics under something like /metrics/payara/hazelcast/${cacheName} or something.

Is there a requirement for all metrics to be "flat" (meaning no hierarchy below the 3rd tier) or would something like the above be permitted? I can't see anywhere in the spec where it defines the metadata for an endpoint which exposes no data directly.

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.