Skip to content
New issue

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

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

Already on GitHub? # to your account

Sample war ready for deployment #76

Open
aadamovich opened this issue Mar 25, 2014 · 4 comments
Open

Sample war ready for deployment #76

aadamovich opened this issue Mar 25, 2014 · 4 comments

Comments

@aadamovich
Copy link

It would be nice to have a simple WAR project (maybe even publishied to Maven Central) that can be published to any servlet container out of the box and automatically read configuration from the application server's working directory. I've noticed there is already an application that shows to add embedded-jmxtrans into existing application, but in case of many applications, it would be better to just have an indepedent app that can be deployed for container-wide metric collection.

@cyrille-leclerc
Copy link
Member

Hi Andrey,

Did you look at jmxtrans-agent if you are interested in a solution that would monitor several apps?

@aadamovich
Copy link
Author

Yes, I did. But the fact that it is dependency-less (for a good reason), makes it harder to reuse some of the useful writers e.g. Slf4J writer. Also to enable the agent I need a restart (it's not a big problem, but in my situation I have a couple of servers that I can't really restart too often).

I ended up creating a simple Gradle build that creates such a WAR which takes jmxtrans.json from the current directory and logs performance metrics through logback. So, now I can deploy this WAR to many of our Tomcat and WebLogic instances and configure queries and writers and also reuse the features of the logging framework to rotate performance log files as needed.

If you are interested I can share the project.

@gehel
Copy link
Member

gehel commented Feb 13, 2015

Hello @aadamovich ! Nice to see you here as well !

I'd be interested in having a look at your project, and possibly incorporating it in JmxTrans2.

@aadamovich
Copy link
Author

Hi @gehel ! It is just a simple packaging of existing jars and configs, so, don't expect super smart things there :). Published the code here: https://github.com/aestasit/jmxtrans-embedded

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

No branches or pull requests

3 participants