Dne 21. 03. 19 v 0:42 Guillaume Smet napsal(a):
> Hi,
>
> Ken has a good point here about us starting to significantly pollute the
> endpoint namespace with the extensions:
> https://github.com/quarkusio/quarkus/pull/1573#issuecomment-474506344 .
>
> /health, /openapi, /metrics, now /swagger-ui and probably others in the
> future.
>
> While I don't think /admin/ is a good choice of prefix, I wonder if we
> should have all these endpoints hosted by default with a /quarkus/ prefix.
>
> They can be configured if needed but at least, by default, we won't
> pollute the endpoint namespace and the /quarkus/ name makes it clear
> that it's a "reserved" namespace.
I like the idea of a configurable base path for all non-app endpoints.
>
> What I'm wondering is: for the MicroProfile extensions, are these
> default endpoints in the spec? Or can we safely change them?
MP Health spec: "This /health endpoint is expected to be associated with
a configurable context, such as a web application deployment, that can
be configured with settings such as port, virtual-host, security, etc."
However, I'm not so sure about MP Metrics and OpenAPI. @Jan Martiska
@Eric Wittmann?
>
> Thoughts?
>
> --
> Guillaume
>
> --
> You received this message because you are subscribed to the Google
> Groups "Quarkus Development mailing list" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to quarkus-dev...@googlegroups.com
> <mailto:quarkus-dev+unsub...@googlegroups.com>.
> <mailto:quarkus-dev...@googlegroups.com>.
> Visit this group at https://groups.google.com/group/quarkus-dev.
> For more options, visit https://groups.google.com/d/optout.
--
Martin Kouba
Senior Software Engineer
Red Hat, Czech Republic
--
You received this message because you are subscribed to the Google Groups "Quarkus Development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to quarkus-dev...@googlegroups.com.
On 21 Mar 2019, at 14:34, Ken Finnigan <k...@kenfinnigan.me> wrote:I agree it makes sense to consolidate non app endpoints under a single one.Currently most MP specs mandate the path be at the root, but we can always customize that once we get to the point of running TCK tests. It's also something that MP specs should support as there will be people that want different names.
/metrics
. So this default job is scraping via the URL: http://localhost:9090/metrics.@ConfigRoot(name = "smallrye-metrics")
static final class SmallRyeMetricsConfig {
/**
* The path to the metrics Servlet.
*/
@ConfigItem(defaultValue = "/metrics")
String path;
}
SmallRyeMetricsConfig metrics;
...
@BuildStep
ServletBuildItem createServlet() {
ServletBuildItem servletBuildItem = ServletBuildItem.builder("metrics", SmallRyeMetricsServlet.class.getName())
.addMapping(metrics.path + (metrics.path.endsWith("/") ? "*" : "/*"))
.build();
return servletBuildItem;
}
--
You received this message because you are subscribed to the Google Groups "Quarkus Development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to quarkus-dev...@googlegroups.com.
Visit this group at https://groups.google.com/group/quarkus-dev.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/c7537248-962c-4fc3-adb1-f692254689a0%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to quarkus-dev...@googlegroups.com.
Visit this group at https://groups.google.com/group/quarkus-dev.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/a3a86a88-c444-f5d5-d97f-49b45de3a32e%40redhat.com.
--
You received this message because you are subscribed to the Google Groups "Quarkus Development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to quarkus-dev...@googlegroups.com.
Visit this group at https://groups.google.com/group/quarkus-dev.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/817797ec-fb1f-405a-92f1-fa8cef261b8a%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/CAMsYBfUZ16RbTYnewadrWkO03wN%2BT5NnvwFVfT6cgv0SqkKbnA%40mail.gmail.com.