Closed xzhaoxz closed 7 months ago
需要在springboot中配置,即可有tomcat的全局指标:
server.tomcat.mbeanregistry.enabled=true
1 检查下ignoremetrics = [ "go*" ] ,所谓丢失的指标是否包含go_ 2 检查relabel 的配置 3 完整的指标,和categraf采集的指标都发一下。
这个插件第一次听到丢指标的反馈。
还有后续吗?先close了,如果有后续可以随时reopen
Relevant config.toml
Logs from categraf
System info
0.3.44
Docker
No response
Steps to reproduce
监控接口请求情况得到指标如下 http_server_requests_seconds{applications="gateway-service",exception="None",method="GET",outcome="SUCCESS",service="pay",status="200",uri="/actuator/prometheus",quantile="0.5",} 0.0 http_server_requests_seconds{applications="gateway-service",exception="None",method="GET",outcome="SUCCESS",service="pay",status="200",uri="/actuator/prometheus",quantile="0.75",} 0.0 http_server_requests_seconds{applications="gateway-service",exception="None",method="GET",outcome="SUCCESS",service="pay",status="200",uri="/actuator/prometheus",quantile="0.9",} 0.0 http_server_requests_seconds{applications="gateway-service",exception="None",method="GET",outcome="SUCCESS",service="pay",status="200",uri="/actuator/prometheus",quantile="0.95",} 0.0 http_server_requests_seconds{applications="gateway-service",exception="None",method="GET",outcome="SUCCESS",service="pay",status="200",uri="/actuator/prometheus",quantile="0.99",} 0.0 http_server_requests_seconds_bucket{applications="gateway-service",exception="None",method="GET",outcome="SUCCESS",service="pay",status="200",uri="/actuator/prometheus",le="0.3",} 28.0 http_server_requests_seconds_bucket{applications="gateway-service",exception="None",method="GET",outcome="SUCCESS",service="pay",status="200",uri="/actuator/prometheus",le="0.5",} 29.0 http_server_requests_seconds_bucket{applications="gateway-service",exception="None",method="GET",outcome="SUCCESS",service="pay",status="200",uri="/actuator/prometheus",le="1.0",} 29.0 http_server_requests_seconds_bucket{applications="gateway-service",exception="None",method="GET",outcome="SUCCESS",service="pay",status="200",uri="/actuator/prometheus",le="2.0",} 30.0 http_server_requests_seconds_bucket{applications="gateway-service",exception="None",method="GET",outcome="SUCCESS",service="pay",status="200",uri="/actuator/prometheus",le="3.0",} 30.0 http_server_requests_seconds_bucket{applications="gateway-service",exception="None",method="GET",outcome="SUCCESS",service="pay",status="200",uri="/actuator/prometheus",le="5.0",} 30.0 http_server_requests_seconds_bucket{applications="gateway-service",exception="None",method="GET",outcome="SUCCESS",service="pay",status="200",uri="/actuator/prometheus",le="10.0",} 30.0 http_server_requests_seconds_bucket{applications="gateway-service",exception="None",method="GET",outcome="SUCCESS",service="pay",status="200",uri="/actuator/prometheus",le="15.0",} 30.0 http_server_requests_seconds_bucket{applications="gateway-service",exception="None",method="GET",outcome="SUCCESS",service="pay",status="200",uri="/actuator/prometheus",le="+Inf",} 30.0 http_server_requests_seconds_count{applications="gateway-service",exception="None",method="GET",outcome="SUCCESS",service="pay",status="200",uri="/actuator/prometheus",} 30.0 http_server_requests_seconds_sum{applications="gateway-service",exception="None",method="GET",outcome="SUCCESS",service="pay",status="200",uri="/actuator/prometheus",} 4.5247628
使用categraf拉取指标上报到监控系统如prometheus,没有了http_server_requests_seconds指标
Expected behavior
上报的数据和原始数据一致
Actual behavior
上报数据丢失,缺失指标且 丢失的指标tag=quantile出现在别的指标中
Additional info
No response