美文网首页
pinpoint agent config配置项总结

pinpoint agent config配置项总结

作者: 天草二十六_简村人 | 来源:发表于2021-08-14 12:52 被阅读0次

1、采样率

# if it's COUNTING(the default), then 1 out of n transactions will be sampled where n is the rate.
# eg. 1: 100%     20: 5%     50: 2%      100: 1%
profiler.sampling.counting.sampling-rate=1
# @Deprecate : Alias for profiler.sampling.counting.sampling-rate
profiler.sampling.rate=10

2、排除部分uri,不予采集,比如要排除掉prometheus和health等接口
pinpoint-root.config

# URLs to exclude from tracing.
# Support ant style pattern. e.g. /aa/*.html, /??/exclude.html
profiler.server.excludeurl=/mgm/prometheus,/mgm/health

或者
pinpoint.config

profiler.tomcat.excludeurl=/mgm/prometheus,/mgm/health
profiler.undertow.excludeurl=/mgm/prometheus,/mgm/health

3、hystrix调用监控

需要注意的是,在1.8.2版本中,下面两个值默认是false。如果spring boot项目中使用了hystrix调用feign去发起http请求,那么建议修改为true。

###########################################################
# RxJava
###########################################################
profiler.rxjava=true

###########################################################
# Hystrix
###########################################################
# profiler.rxjava must also be enabled to properly trace hystrix commands
profiler.hystrix=true

相关文章

网友评论

      本文标题:pinpoint agent config配置项总结

      本文链接:https://www.haomeiwen.com/subject/ewosbltx.html