mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
bf814320b0
It is better from the consistency point of view to set up rule types at group level where tenant config is set up.
23 lines
753 B
Text
23 lines
753 B
Text
groups:
|
|
- name: TestGroup
|
|
interval: 2s
|
|
concurrency: 2
|
|
type: graphite
|
|
rules:
|
|
- alert: Conns
|
|
expr: filterSeries(sumSeries(host.receiver.interface.cons),'last','>', 500)
|
|
for: 3m
|
|
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
|
|
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}}"
|