我是千分尺的新手。谁能让我知道如何在 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/