[英]How to use Metrics in Stagemonitor
I am using stagemonitor for get metrics for different methods. 我正在使用stagemonitor来获取不同方法的指标。 I'm using PetClinic application locally for get a idea and using browser-widget for testing.I find that we can track metrics using @Timed , @Metered annotations. 我正在本地使用PetClinic应用程序来了解想法,并使用浏览器小工具进行测试。我发现我们可以使用@Timed和@Metered批注来跟踪指标。 Is it possible to use them in the petclinic application and view them from browser-widget. 是否可以在petclinic应用程序中使用它们并从浏览器小工具中查看它们。
I'm afraid this is currently not possible. 恐怕目前无法实现。 However, stagemonitor offers a "Custom Metrics" dashboard for Grafana. 但是,stagemonitor为Grafana提供了“自定义指标”仪表板。
To see the metrics locally, currently the only way is to enable periodic logging of all metrics. 要在本地查看指标,当前唯一的方法是启用所有指标的定期日志记录。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.