Skip to content

Instantly share code, notes, and snippets.

View autoletics's full-sized avatar

William David Louth autoletics

View GitHub Profile
@autoletics
autoletics / jxinsight.override.config
Last active January 14, 2017 19:20
jxinsight.override.config
jxinsight.server.probes.hotspot.threshold=10
jxinsight.server.probes.hotspot.threshold.inherent=2
# the initial credit added to the score card of a hotspot probe
jxinsight.server.probes.hotspot.initial=1000
# the hotspot (inclusive) metering threshold
jxinsight.server.probes.hotspot.threshold=10
# the credit added to the score card for a completion equal or above the hotspot (inclusive) threshold
jxinsight.server.probes.hotspot.threshold.credit=1
# the debit subtracted from the score card for a completion below the hotspot (inclusive) threshold
jxinsight.server.probes.hotspot.threshold.debit=2
# the hotspot (inherent) metering threshold
jxinsight.server.probes.hotspot.threshold.inherent=2
# the credit added to the score card for a completion equal or above the hotspot (inherent/exclusive) threshold
jxinsight.server.probes.hotspot.threshold.inherent.credit=1
# the debit subtracted from the score card for a completion below the hotspot (inherent/exclusive) threshold
jxinsight.server.probes.hotspot.threshold.inherent.debit=2
j.s.p.hotspot.threshold=10
j.s.p.hotspot.threshold.inherent=2
@autoletics
autoletics / jxinsight.override.config
Created January 16, 2017 08:32
low latency metering configuration
j.s.p.hotspot.threshold=2
j.s.p.hotspot.threshold.inherent=1
# the lower (min) score card range for hotspot classification
jxinsight.server.probes.hotspot.lower=2000
# the upper (max) score card range after which no further hotspot evaluation is performed
jxinsight.server.probes.hotspot.upper=100000
static final Probes.Label DISABLED = Probes.label("disabled");
static final java.lang.reflect.Method m = /** some reflection code to lookup method **/
// how to check if a method is disabled in terms of metering
if(Probes.name(m).contains(DISABLED)) { /**...**/ }
// in simulated environment there is no access to the meta classes so instead use
static final Probes.Name NAME = Probes.name("com").name("acme").name("Service").name("doWork")
// or alternatively have it parsed
static final Probes.Name NAME = Probes.parse("com.acme.Service.doWork")
@autoletics
autoletics / jxinsight.override.config
Created January 16, 2017 11:17
enable the inclusion of disabled probes in console snapshots exported to file system or client monitoring tool
# changes default behavior of the console extension to include disabled probes in snapshots
jxinsight.server.probes.console.snapshot.probes.disabled.include=true
# alternatively use the short form
j.s.p.console.snapshot.probes.disabled.include=true