uber-common / jvm-profiler

JVM Profiler Sending Metrics to Kafka, Console Output or Custom Reporter
Other
1.79k stars 342 forks source link

Ability to Specify Thresholds for metrics and report it. #82

Open rahul26goyal opened 4 years ago

rahul26goyal commented 4 years ago

Currently, we report all the metrics at a scheduled interval and it ends up creating a lot of noisy data. Would it be better to only report metrics after a given Threshold is Breached? Example: Report HeapUsed when its > 60% heap Max. Report GC when the time spent is more than X.

hiboyang commented 4 years ago

Normally we report all metrics and filter them during query time. If you would like to add some threshold inside profiler, please also go ahead. Probably control those thresholds by some arguments to the java agent.