我的 Spring Boot 应用暴露了下面这些 metrics ,我想计算MsgProcessor.process
的 TPS 和平均执行时间,请问怎么写 PromQL ?
# HELP MsgProcessor_process_seconds_max
# TYPE MsgProcessor_process_seconds_max gauge
MsgProcessor_process_seconds_max{application="out-adaptor",class="MsgProcessor",exception="none",method="process",} 0.0
# HELP MsgProcessor_process_seconds
# TYPE MsgProcessor_process_seconds summary
MsgProcessor_process_seconds_count{application="out-adaptor",class="MsgProcessor",exception="none",method="process",} 13237.0
MsgProcessor_process_seconds_sum{application="out-adaptor",class="MsgProcessor",exception="none",method="process",} 2.735527137
By the way ,我是参考Spring Boot app metrics - with Prometheus and Micrometer - Tutorial Works实现的。