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

add tomcat Plugin #763

Closed
arthtux opened this issue Feb 28, 2016 · 8 comments
Closed

add tomcat Plugin #763

arthtux opened this issue Feb 28, 2016 · 8 comments
Labels
feature request Requests for new plugin and for new features to existing plugins
Milestone

Comments

@arthtux
Copy link
Contributor

arthtux commented Feb 28, 2016

Plugin to collect datas /manager/status

@haowells
Copy link

haowells commented Mar 1, 2016

need jmx plugin also

@sparrc
Copy link
Contributor

sparrc commented Mar 1, 2016

@haowells we have the jolokia plugin: https://github.com/influxdata/telegraf/blob/master/plugins/inputs/jolokia/jolokia.go which is the only way to access jmx in a non-Java environment, afaik

@arthtux
Copy link
Contributor Author

arthtux commented Mar 3, 2016

@haowells example of /manager/status?XML=true

tomcat-manager status xml true

@sparrc sparrc added the help wanted Request for community participation, code, contribution label Mar 24, 2016
@puckpuck
Copy link
Contributor

puckpuck commented Nov 9, 2016

A little late, but these metrics are all available via the jolokia agent deployed to Tomcat.

Once deployed, this URL: http://<myserver>/jolokia/read/java.lang:name=*,type=MemoryPool/Usage

will return what all the memory pool information above. Thread and request info is also available. http://<myserver>/jolokia/list will return all available metrics in JSON format. This list can be quite large even on simple websites.

@xulz
Copy link

xulz commented Jan 23, 2017

Fetch the Tomcat ThreadPool information in following way did not work, any ideas?

update with below config in telegraf.conf

[[inputs.jolokia]]
...
[[inputs.jolokia.metrics]]
name = "threadpool_usage"
mbean = "Catalina:type=ThreadPool,name=%22http-bio-8080%22"
attribute = "currentThreadCount,currentThreadsBusy,maxThreads"

and access web also works by http://127.0.0.1:8080/jolokia/read/Catalina:type=ThreadPool,name=%22http-nio-8080%22/currentThreadCount

So how to get the threadpool infomation?
Thanks

@xulz
Copy link

xulz commented Jan 23, 2017

I have found the root cause:
The double quote should be escaped in way of:

mbean = "Catalina:type=ThreadPool,name=\"http-bio-8080\""

Then it works.

@mlindes mlindes mentioned this issue Feb 20, 2017
3 tasks
@toni-moreno
Copy link
Contributor

:+1

@danielnelson danielnelson added this to the 1.4.0 milestone Aug 12, 2017
@danielnelson danielnelson added feature request Requests for new plugin and for new features to existing plugins and removed plugin request help wanted Request for community participation, code, contribution labels Aug 12, 2017
@danielnelson
Copy link
Contributor

Tomcat input plugin is merged for 1.4, thanks to @mlindes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Requests for new plugin and for new features to existing plugins
Projects
None yet
Development

No branches or pull requests

7 participants