Hi Gagan,

if you already have custom instrumentation with client_java, there is no
need to use the jmx_exporter. You can get standard JMX exports by just
including the simpleclient_hotspot module as a dependency and then call
DefaultExports.initialize().

Fabian


On Thu, May 5, 2022 at 9:38 AM Gagan Singhal <[email protected]>
wrote:

> Hey, it's alright.
>
> The custom instrumentation jetty metrics problem is solved. Thankyou.
>
> Now I am trying to use auto instrumentation using jmx exporter to get the
> metrics to prometheus.
> My jetty is running through Tanuki Wrapper.
> When i try to get the metrics by including the agent, I can see all the
> jvm metrics and jetty metrics. But for the jetty metrics, the values are
> stuck at 0.
> I have included jmx and stats modules too.
>
> Java version is Java 1.8
> Jetty version is 9.4.26
>
> Any help is appreciated, Thanks
> On Wednesday, May 4, 2022 at 8:09:28 PM UTC+5:30 [email protected] wrote:
>
>> Hi Gagan,
>>
>> Sorry for the late reply, your mail ended up in my Spam folder for some
>> reason. Could you let me know which Jetty version you are using?
>>
>> Fabian
>>
>> On Wed, Apr 27, 2022 at 3:43 PM Gagan Singhal <[email protected]>
>> wrote:
>>
>>> I have configured the Jetty metrics in my code as mentioned in the
>>> prometheus client_java documentation.
>>> I can see the jetty metrics on the mentioned endpoint (/metrics) but
>>> they all show the value as 0. I don't know how to proceed further. Any help
>>> is appreciated.
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Prometheus Users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/prometheus-users/a499c069-4c5d-475c-bb46-80813d7a07abn%40googlegroups.com
>>> <https://groups.google.com/d/msgid/prometheus-users/a499c069-4c5d-475c-bb46-80813d7a07abn%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Prometheus Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/prometheus-users/40c483bb-b013-4e4c-8375-98ec83e276b4n%40googlegroups.com
> <https://groups.google.com/d/msgid/prometheus-users/40c483bb-b013-4e4c-8375-98ec83e276b4n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/CAPX310jN8Zo_H3FTVfrOQz07Jxqew6KaxSkKdL0ZCtevi8cs_Q%40mail.gmail.com.

Reply via email to