Short answer: yes you can.
What I did: (found in some tutorials)
Thats's it - at least this works for me
Hope that helps
First of all thank you very much :) . you saved big amount of time for me. I am already using Java-melody with Bamboo. for bamboo I was using only javamelody.jar file, and it was working fine. When I tried to follow same steps for Stash, it didn't work. I just updated web.xml file in addition to javamelody.jar file and it is working for Stash too. I think you don't need itext jar file. I can see PDF output without using that.
The implementation of the Java Melody into Bitbucket is considered a customization. Customizations are out of our support scope as can seen in our Atlassian Support Offerings. Atlassian does not provide support for this integration or any other 3rd-party monitoring integration.
Yes, it possible to integrate Java Melody with Bitbucket 5.X. The process is a bit different from the previous versions and worked on our tests. Below are all the details.
2. Stop Bitbucket's service
3. Add the following to the bitbucket.properties file:
# Enable JavaMelody auto-configuration (optional, default: true)
# Disable monitoring of Spring services and controllers (optional, default: true) - this is not allowed by Bitbucket Server itself and it would not have any effect if set to true
# Initialization parameters for JavaMelody (optional)
# See: https://github.com/javamelody/javamelody/wiki/UserGuide#6-optional-parameters
# log http requests
4. Start Bitbucket's service
5. Browse to <Bitbucket_URL>/monitoring to get access to the JavaMelody console
- Only Memory, CPU and Http sessions will be tracked;
- Bitbucket does not allow specifying a DataSource via JNDI, so it won't possible to get any SQL monitoring;
- It's be possible for JavaMelody, when loaded from a plugin, to interact with the host application's Spring underpinnings -> That's why we recommend setting javamelody.spring-monitoring-enabled=false
- javamelody.excluded-datasources=secretSource,topSecretSource can't be used either, since JNDI is not allowed.
Hope that helps
Thanks Douglas for tests and the process.
There were a few problems with that process:
So, there is now an official process to install the javamelody plugin in Bitbucket and it is declared compatible with Bitbucket in the marketplace: https://github.com/javamelody/javamelody/wiki/AtlassianPlugin#Bitbucket
And I would like to improve the plugin by importing a Spring post-processor for the datasource (to monitor jdbc connections and SQL requests) and also by getting the current authenticated user if any from the plugin's filter.
I have started a new discussion for that.
Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs