Code Monkey home page Code Monkey logo

application-monitor's Introduction

Application Monitor

Monitor your applications easy using Application Monitor dash-board. Send data to Application Monitor via UDP Server in JSON format described below.

Application Monitor

Requisites

  • Gradle 2.3 +
  • Java 1.7+
  • Browser with HTML5 support

Servers Ports

  • UDP Server, default port 9090
  • HTTP Server, default port 9000

JSON Format

{
//MANDATORY FROM HERE
"Id" : "i001",
"Name" : "Customer",
"Type" : "JMS",
"Status" : "OK",

//DATA TO MONITOR "OPTIONAL" FROM HERE
"data":
[
{ "name" : "msgRecv", "value" : "1", "type" : "T" },
{ "name": "msgSend", "value" : "5", "type" : "C" },
{ "name": "Errors", "value" : "${rannum}", "type" : "V" },
{ "name": "ErrorXSLT", "value" : "true", "type" : "B" },
{ "name": "LastError", "value" : "NO ERRORS", "type" : "S" }
]
}
Type Description
C Counter
V Value
T TPS
S String

Heartbeat JSON Format

{
//MANDATORY
"AppId" : "app01",
"AppName" : "BankID Integration",
// Seconds Time To Wait
"ttw" : "60"

}

Heartbeat JSON Format to Webpage

{
"AppId" : "app01",
"AppName" : "BankID Integration",
"Status : "OK" / "NOK"    
}

Run from Gradle

With default ports

gradle run

Overriding ports

$ gradle run -DudpServer.port=8080 -DhttpServer.port=8000

Compile Fat jar

$ gradle fatJar

Run Fat jar

With default ports

$ java -jar build/libs/application-monitor-all-1.0.jar

Overriding ports


 $ java -DudpServer.port=8080 -DhttpServer.port=8000 -jar build/libs/application-monitor-all-1.0.jar

Access Web page

http://localhost:9000/monitor/index.html

Send test data

 $ cd TestClient

 $ groovy UDPClientHB.groovy

application-monitor's People

Watchers

 avatar  avatar

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.