There is an example implementation of the code at https://github.com/pilhuhn/mp-metrics available, that youcan check out and play with.
Hello Heiko and the community,
This is Felix Wong from IBM WebSphere development team. I will join you guys to work on the Microprofile Metrics proposal. I will take a look of the proposal and the sample implementation.
Hey,Are there any concerns that using host:port/metrics will collide with other microservices that were already using the /metrics context root?
Hi Heiko,
I have a few questions on the proposal.
1. Did you have a list of metrics collection tools (e.g. collectd) in mind that will work with the proposed http format?
2. It mentioned that the metadata shouldn't be changed for the life of the container. However, tags are included in the metadata. Does this mean tags can be set once and cannot be changed for the life of the container?
3. Are required metrics mandatory for all microprofile implementations?
4. The required metrics are not listed in the proposal. Do you have a list of required metrics in mind?
5. What is the purpose of the configuration yaml file?
6. In the configuration file, do we have to list the required metrics?
I was thinking something like /mp/metrics or /microprofile/metrics. Probably there will be more REST APIs that MP will want to expose in the future, so it would be nice to have a common API prefix that: (1) helps avoid collision with existing services, and (2) helps group together the set of APIs that are exposed by MP.
AFAIK, DropWizard has a MetricsServlet and it simply prints the metrics out in JSON.
"Metrics/Telemetry proposal and MP 1.1"). In case folks are wondering who I am, Felix Wong and I work together (we're both from WebSphere Liberty). Regards, Don |
Heiko, I think having metrics for other specs in MP would be good. JAX-RS in particular would likely have lots of possible metrics. Would you see that as being another branch next to /base /vendor and /application? See #2 below as it would have similar considerations.
A couple of thoughts on the list of metrics that I thought would be good to discuss...1. I don't see, in the current doc under review, a way to specify metrics for objects with multiple instances. For example, what would the name of a metric look like for a servlet response time (knowing that you might have 100 servlets and you want to track metrics separately for each of them). The same question could be asked for things like thread pools, connection pools, EJB hit counts, etc.
2. We might want to prescribe a set of metrics for servers providing JEE features. That may not need to be in the first official spec, but something that could perhaps be added in the future. We could potentially 'borrow' the set of metric names defined in the JSR77 spec. Maybe a /jee set?
Aug 3rd, 2pm GMT/10am ET
Aug 10th, 2pm GMT/10am ET
Aug 17th, 2pm GMT/10am ET