Hello,
I try to write an extension to export Prometheus metrics with the Promtheus
Java client library and
I am stuck with the exporting part[1].
I need my Guacamole extension to serve a `MetricsServlet` which extends an
`HttpServlet`[2].
To do so, I tried to extend extend a `ServletModule` that implements the
Listener interface with an override of the `configureServlets` method which
contains the following code:
```
serve("/metrics").with(new MetricsServlet());
```
Unfortunately, the `configureServlets` method doesn't seems to be called
and Tomcat does not find the `/metrics` path.
I wonder if it is possible to serve a servlet within a Guacamole extension.
Does anyone can give me some assistance on this project ?
Thank you.
[1]https://github.com/prometheus/client_java#exporting
[2]
https://github.com/prometheus/client_java/blob/a3547124bcd8879094774ecadeb9078374c3b343/simpleclient_servlet/src/main/java/io/prometheus/client/exporter/MetricsServlet.java
--
Tucky