Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 401 Bytes

File metadata and controls

19 lines (12 loc) · 401 Bytes

421-prometheus-metric

普罗米修斯监控,实现业务监控,基于AOP来实现自定义埋点上报

统计脚本

qps 统计, 状态码统计

sum(rate(counter_builder_job_counter1_total{job="prometheus-example"}[10s]))

rt 统计

sum(rate(http_server_requests_seconds_sum{uri="/hello"}[10s])) / sum(rate(http_server_requests_seconds_count{uri="/hello"}[10s]))