Spring 千分尺-零弹簧护套
我使用SpringBoot2+Influx+SpringAOP在我的系统中收集指标 因此,我:Spring 千分尺-零弹簧护套,spring,spring-boot,influxdb,micrometer,spring-micrometer,Spring,Spring Boot,Influxdb,Micrometer,Spring Micrometer,我使用SpringBoot2+Influx+SpringAOP在我的系统中收集指标 因此,我: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-aop</artifactId> </dependency> <
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-aop</artifactId>
</dependency>
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-registry-influx</artifactId>
</dependency>
当我向influx发送一些值时,它工作得非常好,但是spring未经我的允许不断发送“零值”,填充我的influx数据库。因此,我的XDB显示如下内容:
0
0
0
334 (My sent value)
0
0
0
0
0
您可以在yml文件中这样配置
管理:
韵律学:
出口:
流入:
uri:http://localhost:8086
db:mydbName
步骤:10s
这不能解决我的问题,也不能创建另一个问题。1) 在步骤中使用10秒累积值。2) 如果在10秒内没有任何度量,spring将发送零。请参阅,现在将尝试对其进行更多调查。下面是错误,请您帮助我,我已在yml文件[SpringContextShutdownHook]中配置了错误I.m.influx.InfluxMeterRegistry-未能将度量发送到influx java.net.SocketTimeoutException:读取超时
0
0
0
334 (My sent value)
0
0
0
0
0