从post_seconds_count,post_seconds_sum和post_seconds_max中的Prometheus指标进行吞吐量计算

问题描述

我试图在Grafana中为不同的API(Java应用程序)构建仪表板。我们开始使用这些依赖关系将指标导出到Prometheus。

  val prometheus_scdw = "io.prometheus" % "simpleclient_dropwizard" % "0.0.23"
  val prometheus_schs = "io.prometheus" % "simpleclient_hotspot" % "0.9.0"
  val prometheus_scg = "io.prometheus" % "simpleclient_guava" % "0.9.0"
 Metrics which we can see in exporter is like this( just for example): 
 # HELP controllers_autouserprofilecontroller_autologin_post_seconds_max  
 # TYPE controllers_autouserprofilecontroller_autologin_post_seconds_max gauge
 controllers_autouserprofilecontroller_autologin_post_seconds_max 0.075604753
 # HELP controllers_autouserprofilecontroller_autologin_post_seconds  
 # TYPE controllers_autouserprofilecontroller_autologin_post_seconds summary
controllers_autouserprofilecontroller_autologin_post_seconds_count 2529959.0
controllers_autouserprofilecontroller_autologin_post_seconds_sum 80214.121718928

我试图在GitHub上了解他们说count,sum或max时的确切含义,但是我没有找到任何解释。按照这些词的标准定义,例如,请求被切断,总和是服务于该请求所花费的时间,最大是服务于该请求的最高时间。

仍然想询问是否有更好的方法或媒介来理解这些指标。

我还使用查询HTTP_Request_total的吞吐量来匹配ALB监视中不匹配的请求计数。 使用的查询sum(increase(HTTP_Request_total[1m]))

这里有什么我想念的东西吗?还是很小比例的不匹配是可以接受的。

鉴于目前我们正在导出所有API的指标类型,我的目标是建立一种API性能的仪表板。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...