创建Prometheus警报以查找在垃圾收集器中长时间运行的go应用程序

时间:2020-05-05 20:01:39

标签: prometheus prometheus-alertmanager promql

我正在尝试使用指标进行创建 Go_gc_duration_seconds_sum和Go_gc_duration_seconds_count。

我写的确切代码是 按应用程序求和(rate(go_gc_duration_seconds_sum [1m]))/按应用程序求和(rate(go_gc_duration_seconds_count))> = .1

我不确定其中有什么问题。 有人可以帮我提供正确的代码。

0 个答案:

没有答案