Skip to content

若Gc时间过长则发出告警,告警策略中的SQL可参考下文:

SQL
* | select promql_query('sum(rate(go_gc_duration_seconds_sum[1m])) by (instance) /sum(rate(go_gc_duration_seconds_count[1m])) by (instance) > 0.1') from metrics limit 1000

图 22