如何在Prometheus中启用某些特定指标?

时间:2019-07-30 21:30:47

标签: node.js prometheus metrics

我对以下指标感兴趣:

  1. 请求总数(特别是成功/ failure / abort / exception)
  2. 平均请求延迟
  3. 第99个百分位请求延迟

默认情况下(/metrics),我只能看到以下指标:

# HELP process_cpu_user_seconds_total Total user CPU time spent in seconds.
# TYPE process_cpu_user_seconds_total counter
process_cpu_user_seconds_total 0.001169 1564521899909

# HELP process_cpu_system_seconds_total Total system CPU time spent in seconds.
# TYPE process_cpu_system_seconds_total counter
process_cpu_system_seconds_total 0.000042 1564521899909

# HELP process_cpu_seconds_total Total user and system CPU time spent in seconds.
# TYPE process_cpu_seconds_total counter
process_cpu_seconds_total 0.001211 1564521899909

# HELP process_start_time_seconds Start time of the process since unix epoch in seconds.
# TYPE process_start_time_seconds gauge
process_start_time_seconds 1564521900
...

我是否必须自己实现其他功能(例如,使用Histogram)?如果是,那么是否有一些受欢迎的实现得到批准?

0 个答案:

没有答案