GithubHelp home page GithubHelp logo

cuba-platform / cuba-jm Goto Github PK

View Code? Open in Web Editor NEW
4.0 23.0 3.0 242 KB

CUBA app component that brings JavaMelody monitoring functionality

License: Apache License 2.0

Java 100.00%
cuba-component cuba-platform javamelody monitoring

cuba-jm's Introduction

CUBA JavaMelody Monitoring Integration Add-On

license Build Status

Overview

The add-on adds an ability to use JavaMelody monitoring in CUBA-based applications.

JavaMelody: monitoring of JavaEE applications [GitHub].

JavaMelody Monitoring dashboard

Installation

The add-on can be added to your project in one of the ways described below. Installation from the Marketplace is the simplest way. The last version of the add-on compatible with the used version of the platform will be installed. Also, you can install the add-on by coordinates choosing the required version of the add-on from the table.

In case you want to install the add-on by manual editing or by building from sources see the complete add-ons installation guide in CUBA Platform documentation.

From the Marketplace

  1. Open your application in CUBA Studio. Check the latest version of CUBA Studio on the CUBA Platform site.
  2. Go to CUBA -> Marketplace in the main menu.

marketplace

  1. Find the JavaMelody add-on there.

addons

  1. Click Install and apply the changes. The add-on corresponding to the used platform version will be installed.

By Coordinates

  1. Open your application in CUBA Studio. Check the latest version of CUBA Studio on the CUBA Platform site.
  2. Go to CUBA -> Marketplace in the main menu.
  3. Click the icon in the upper-right corner.

by-coordinates

  1. Paste the add-on coordinates in the corresponding field as follows:

com.haulmont.addon.cubajm:cuba-jm-global:<add-on version>

where <add-on version> is compatible with the used version of the CUBA platform.

Platform Version Add-on Version
7.2.x 0.7.1
7.1.0 0.6.0
7.0.0 0.5.1
6.10.0 0.4.0
6.9.0 0.3.1
6.8.1 0.2.0
6.8.0 0.1.0
  1. Click Install and apply the changes. The add-on will be installed to your project.

Configuration

  1. Configure monitoring URLs with the cubajm.monitoringUrl application property. Default values are /core-jm/ and /web-jm/ for middleware and web tiers respectively;
  2. Configure monitoring dashboard authorization credentials with cubajm.authorizedUserLogin & cubajm.authorizedUserPassword application properties. The default values are admin, admin;

All described here application properties can also be found in the JavaMelodyConfig configuration interface.

Usage

When the add-on is installed and configured you can access to the monitoring dashboard by the URL: http://<host>:<tier_port>/<context>/<monitoring_url>/. Where:

  1. <host> and <tier_port> are the location of a tier that interests us;
  2. <context> is the name of the context of the tier;
  3. <monitoring_url> equals to a value that is used for the cubajm.monitoringUrl application property.

Pay attention: trailing slash should be present in the URL.

Example URLs for default settings:

  1. http://localhost:8080/app/web-jm/ - web client monitoring
  2. http://localhost:8080/app-core/core-jm/ - middleware monitoring

Pay attention: in case of SingleWAR deployment the single monitoring dashboard is used for both middleware and web tiers. It's available by the monitoring URL configured for the middleware block.

cuba-jm's People

Contributors

glebshalyganov avatar jreznot avatar knstvk avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cuba-jm's Issues

Easy default user and password is not secure

Having admin/admin by default is not secure. These values are easy to guess.

If deploying person forgets to change password (or he/she is not informed about this add-on attached to the system at all) - then we have an open administrative access window to the system to any who knows system URL and has access to web client.

Update installation instructions

Update the "Installation and configuration" section of readme.md: describe how to install the component using Add-ons Marketplace

JavaMelody statistics is cleared after tomcat restart

How to reproduce:

  • Deploy application with JavaMelody to a linux tomcat service. E.g. Ubuntu 18.04, "tomcat8" package.
  • Run for a while
  • Restart tomcat
  • Open /core-jm/ page again.

You will see that all graphs have been reset:
image

The reason is because JavaMelody by default stores its data in a temp directory. E.g. tomcat/temp/javamelody in tomcat-fast-deployment.
And linux tomcat service cleans temp directory on every server restart - which is reasonable thing. So javamelody stats are cleared during every tomcat service restart.

Suggestion: place javamelody stats to other place, e.g. work directory.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.