mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-11 14:53:49 +00:00
5cf2998af8
Allow configuring the default number of stored rule's update states in memory via global `-rule.updateEntriesLimit` command-line flag or per-rule via rule's `update_entries_limit` configuration param. Signed-off-by: hagen1778 <roman@victoriametrics.com>
24 lines
754 B
Text
24 lines
754 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}}"
|