Using the JON Remote API by Andy Redhead
Click here to load reader
-
Upload
jbug-london -
Category
Technology
-
view
704 -
download
1
description
Transcript of Using the JON Remote API by Andy Redhead
Production Server (1)
JBoss JON
Agent
JON Server
Remote Java API
JON Database
All the other
RHQ bits
Production Server (x)
JBoss JON
Agent
Client
Remote JON Client
App
JON Deployment
The Goal - View Behaviour of Multiple Machines
Approach (1/2) – Client App
http://docs.redhat.com/docs/en-US/JBoss_Operations_Network/2.4/html/CLI_Guide/index.html http://docs.redhat.com/docs/en-US/JBoss_Operations_Network/2.4/html/API_Guides/client-api/index.html
machine datetime low av max servername1:1099 2011-09-01T00:00:00.000+01:00 31.0 31.0 31.0 servername2:1099 2011-09-01T00:05:00.000+01:00 NaN NaN NaN
Approach (2/2) - R
http://www.r-project.org/
#Read dataset ajpConnActiveThreads <- read.table(dataSetFile, header=TRUE, sep="") ajpConnActiveThreads$datetime <- as.POSIXct(ajpConnActiveThreads$datetime, tz="", '%Y-%m-%dT%H:%M:%OS') #Calculate “Trimmed” Mean allMachineTrimmedMean <- apply(justNumbers, 1, mean, trim=0.1) #Draw Graph jpeg(outputGraphFileName) plot(threadActiveXRange, threadActiveYRange, type="n", …, col.lab="darkblue") axis.POSIXct(1, at=seq(r[1], r[2], by="hour"), format="%H:%M", las=2) axis(2, at=yAxisAt, las=2) lines(finalData$datetime, finalData[[dataIndex]], col="red") lines(finalData$datetime, allMachineTrimmedMean, col="blue") dev.off()
Thanks for Listening