【发布时间】:2020-07-02 16:33:18
【问题描述】:
我已经为我的 Spring Boot 应用程序配置了 micrometer 和 prometheus,我可以在端点 /actuator/prometheus 看到以下指标(使用 Timer 生成):
# HELP timer_test_seconds Time spent serving test requests
# TYPE timer_test_seconds summary
timer_test_seconds_count{class="com.test.MyController",exception="none",method="testTimer",} 2.0
timer_test_seconds_sum{class="com.test.MyController",exception="none",method="testTimer",} 8.6461705
# HELP timer_test_seconds_max Time spent serving test requests
# TYPE timer_test_seconds_max gauge
timer_test_seconds_max{class="com.test.MyController",exception="none",method="testTimer",} 4.5578234
但是当我在 Grafana 中运行此查询之一(针对 prometheus 实例配置)时,我看不到任何结果。
这需要任何配置吗?
【问题讨论】:
标签: spring-boot prometheus grafana