Monitor your applications easy using Application Monitor dash-board. Send data to Application Monitor via UDP Server in JSON format described below.
- Gradle 2.3 +
- Java 1.7+
- Browser with HTML5 support
- UDP Server, default port 9090
- HTTP Server, default port 9000
{
//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 |
{
//MANDATORY
"AppId" : "app01",
"AppName" : "BankID Integration",
// Seconds Time To Wait
"ttw" : "60"
}
{
"AppId" : "app01",
"AppName" : "BankID Integration",
"Status : "OK" / "NOK"
}
gradle run
$ gradle run -DudpServer.port=8080 -DhttpServer.port=8000
$ gradle fatJar
$ java -jar build/libs/application-monitor-all-1.0.jar
$ java -DudpServer.port=8080 -DhttpServer.port=8000 -jar build/libs/application-monitor-all-1.0.jar
http://localhost:9000/monitor/index.html
$ cd TestClient
$ groovy UDPClientHB.groovy