I tried adding this:
<Get id="oldhandler" name="handler" />
<Set name="handler">
<New id="StatsHandler"
class="org.eclipse.jetty.server.handler.StatisticsHandler">
<Set name="handler"><Ref refid="oldhandler" /></Set>
</New>
</Set>
but that just breaks everything, webconsole or my applications does not
startup.. I do get the nice view of stats in jmx..
On Tue, Aug 29, 2017 at 1:56 PM, nino martinez wael <
[email protected]> wrote:
> Hi
>
> How am I able to add this http://www.eclipse.org/
> jetty/documentation/9.4.6.v20170531/statistics-handler.html to all
> handlers.. In my project we are both using https and http, and I want to
> know the basic information such as number of requests et.
>
> I've gotten so far that I can see that I can configure jetty here:
>
> https://ops4j1.jira.com/wiki/spaces/paxweb/pages/12059279/
> Advanced+Jetty+Configuration
>
> But I do not know what the handlers are called..
>
> I tried this as the last thing in jetty.xml, and it did not work:
>
> <Get name="handler">
>
> <Call name="addBean">
> <Arg>
> <New id="ConnectionStatistics" class="org.eclipse.jetty.io.
> ConnectionStatistics"/>
> </Arg>
> </Call>
>
> </Get>
>
> --
> --
> ------------------
> OPS4J - http://www.ops4j.org - [email protected]
>
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "OPS4J" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/ops4j/3F1AHyICa38/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/d/optout.
>
--
Best regards / Med venlig hilsen
Nino Martinez
--
--
------------------
OPS4J - http://www.ops4j.org - [email protected]
---
You received this message because you are subscribed to the Google Groups
"OPS4J" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.