1
4
你可以在这里查看我的文章: https://dkublik.github.io/2017/10/28/springboot-metrics-with-servo-and-aws-cloudwatch.html 我是在我的项目中设置这个之后写的。 从标题:
编辑: 新版本: https://dkublik.github.io/2018/08/26/springboot-metrics-with-micrometer-and-aws-cloudwatch.html |
2
3
|
3
2
设置以下属性:
一切都结束了。现在,您可以在cloudwatch上看到指标。 现在,如果您想将自定义指标推送到某个地方,那么可以自动连接MetricsRegistry的实例,只需创建您想要的任何指标。 让我们创建一个用于发送短信的计数器,例如:
现在更新执行操作的计数器,如下所示:
|
4
1
如果您想要一个不涉及使用整个spring云库的现成解决方案,您可以使用: https://github.com/dipayan90/spring-actuator-cloudwatch |
5
-1
使用弹簧护套2.0.3。 添加这些依赖项:
|