2021-02-01 13:02:44 +00:00
|
|
|
groups:
|
|
|
|
- name: TestGroup
|
|
|
|
interval: 2s
|
|
|
|
concurrency: 2
|
|
|
|
type: graphite
|
|
|
|
rules:
|
|
|
|
- alert: Conns
|
|
|
|
expr: filterSeries(sumSeries(host.receiver.interface.cons),'last','>', 500)
|
|
|
|
for: 3m
|
2022-12-29 11:36:44 +00:00
|
|
|
|
2021-02-01 13:02:44 +00:00
|
|
|
annotations:
|
|
|
|
summary: Too high connection number for {{$labels.instance}}
|
|
|
|
description: "It is {{ $value }} connections for {{$labels.instance}}"
|
|
|
|
- name: TestGroupPromMixed
|
|
|
|
interval: 2s
|
|
|
|
concurrency: 2
|
|
|
|
type: prometheus
|
2023-10-25 11:07:13 +00:00
|
|
|
eval_delay: 30s
|
2021-02-01 13:02:44 +00:00
|
|
|
rules:
|
|
|
|
- alert: Conns
|
|
|
|
expr: sum(vm_tcplistener_conns) by (instance) > 1
|
|
|
|
for: 3m
|
|
|
|
annotations:
|
|
|
|
summary: Too high connection number for {{$labels.instance}}
|
|
|
|
description: "It is {{ $value }} connections for {{$labels.instance}}"
|