spring-boot - 带微服务的千分尺

标签 spring-boot influxdb micrometer spring-micrometer

我是千分尺的新手。谁能让我知道如何在 Spring Boot 中集中管理微服务指标?

我在哪里可以获得 influxdb 中所有注册的服务信息和矩阵以及存储的指标?

最佳答案

假设您询问“如何使用 Micrometer 与 Spring Boot 从多个主机上拥有多个实例的异构服务收集指标”,因为与假设的环境相比,微服务架构没有什么特别之处,您需要添加主机、应用程序实例等的维度到指标。您可以通过通用标签支持来实现它。请参阅the section for it in the Spring Boot reference guide .


更新:

为了回答以下评论的附加问题,我创建了 a sample showing how to use common tags with environment variables 。请注意,它位于分支 common-tags-2.1.x-with-env 上,而不是 master 上。

关于spring-boot - 带微服务的千分尺,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51896944/

相关文章:

java - 错误服务 Rest Spring Boot : java. util.NoSuchElementException:不存在值

java - InfluxDB批量写入的意外输出

python-3.x - 如何从 CSV 文件将数据插入 Influxdb

spring-boot - 将自定义 header 添加到 REST PUT 请求

java - 这里的 'goal'是什么?

java - 在 ConstraintValidator 中注入(inject) EntityManager

node.js - 新 ServiceNotAvailableError 处的 influxDB 内部服务器错误

prometheus - 千分尺/普罗米修斯 : How to measure processing duration?

java - 更新 Spring Boot Parent 后的 PortUnreachableExceptions 垃圾邮件日志

spring-boot - 为 AWS cloudwatch 的 Micrometer 配置 SpringBoot 2 应用程序