Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding filter name="http-bio-8080" instead of "*" to the query in JMXtransagent.xml to obtain metrics from Globalrequestprocessor mbean doesn't give any data #101

Open
SubhaSrini opened this issue Mar 22, 2017 · 2 comments

Comments

@SubhaSrini
Copy link

SubhaSrini commented Mar 22, 2017

I want to get the processingTime metrics for only HTTP connector from the Globalrequestprocessor mbean. Hence I had given the query in jmxtransagent.xml like

query objectName="Catalina:type=GlobalRequestProcessor,name=http-nio-8080" attribute="processingTime" resultAlias="tomcat.processingTime"

instead of

query objectName="Catalina:type=GlobalRequestProcessor,name=*" attribute="processingTime"
resultAlias="tomcat.processingTime"

I am not getting any data related to processingTime in the outputwriter(influxdb, console or fileoutputwriter).

Can anyone let me know what wrong am I doing ?

@liuyangc3
Copy link

liuyangc3 commented Aug 18, 2017

on my PC, objectName is Catalina:type=GlobalRequestProcessor,name="http-nio-8080"
and you should use " instadd of '"' in xml
here is an example

<query objectName="Catalina:type=GlobalRequestProcessor,name=&quot;http-nio-8080&quot;" 
attribute="processingTime" resultAlias="tomcat.processingTime" />

@simmel
Copy link
Contributor

simmel commented Dec 20, 2017

Did that solve your problem @SubhaSrini ? Can this be closed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants