我只是想用prometheus agent监控一些参数。 使用代理启动应用程序
-javaagent:lib/boot/jmx_prometheus_javaagent-0.9.jar=$PROMETHEUS_PORT:etc/jmx.prometheus.yaml
但不幸的是我收到了很多这样的警告
2017-05-09 16:39:11.585:WARN:ipjsoeji.nio:Dispatched Failed! SCEP@24e5b398{l(/172.20.26.126:55958)<->r(/172.20.26.100:9255),d=false,open=true,ishut=false,oshut=false,rb=false,wb=false,w=true,i=1r}-{AsyncHttpConnection@6471d314,g=HttpGenerator{s=0,h=-1,b=-1,c=-1},p=HttpParser{s=-14,l=0,c=0},r=0} to io.prometheus.jmx.shaded.org.eclipse.jetty.server.nio.SelectChannelConnector$ConnectorSelectorManager@6d2459c4
这是某种日志的泛滥。几秒钟后,日志文件的大小将超过 1GB。
我已经阅读了有关此问题的帖子(例如 Jetty 8.1 flooding the log file with "Dispatched Failed" messages),但它并没有解决我的问题。
有没有人遇到同样的问题,知道为什么会出现这个问题以及如何解决?
最佳答案
看起来像https://github.com/prometheus/jmx_exporter/issues/122 ,假设您有很多核心。
关于jetty - Prometheus - 发送失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43879641/