plotByRate | R Documentation |
Data is supplied as separate columns for time, data, base rate,
plotByRate(timecol,
datacol,
baseratecol,
percentile,
breaksString,
baseratetimes = timecol,
xlab = "Rate",
ylab="Variation from overall 95th percentile",
title="",
baseTimeCol = NULL,
baseDataCol=NULL,
baseBaseRateCol = NULL,
outlierPercentile=NULL)
timecol |
the timestamps for the data column |
datacol |
the data to be compared with the rate column (y axis) |
baseratecol |
the underlying rate (x axis on the plot), as a list of counts (setting a dataframe column to 1 works for a web server log dataframe). The rate is calculated over the |
percentile |
the percentile value that the values are calculated at, the percentiles are calculated for each |
breaksString |
the time interval used for calculation of percentile values, it is supplied to the |
baseratetimes |
the timestamps for the base data if they are not the same as the timestamps for the data column (defaults to the data column timestamps). The two sets of timestamps must correspond in some way and the extent to which they do not align must be accounted for in the breaks interval, for example a few seconds or minutes difference would not be an issue for an aggregation interval of an hour, but would be a problem if aggregation is being done by minute or second |
xlab |
label for the rate metric |
ylab |
label for the data metric |
title |
the plot title |
baseTimeCol |
Use this parameteter and the associated |
baseDataCol |
Data values associated with the rate column above. |
baseBaseRateCol |
Rate column for the prevoious two columns. |
outlierPercentile |
discard data above this percentile |
Returns an R base graphics plot. This function is intended to be wrapped in a call to plotSave
Greg Hunt <greg@firmansyah.com>
cut
logFileName = logFileNamesGetLast(dataDirectory=datd,
directoryNames=c(".", "."),
fileNamePattern="*[.]log")[[1]]
cols = logFileFieldsGetIIS(logFileName)
logdf = logFileRead(logFileName, columnList=cols,
logTimeZone = "", timeFormat = "")
logdf$numrequestsinthisrecord = 1
plotByRate(logdf$ts,
logdf$elapsed,
logdf$numrequestsinthisrecord,
0.95,
"10 mins",
xlab="request rate (10 minutes)",
ylab="variance from overall 95th percentile response time (milliseconds)")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.