Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #24 from dfds/feat/add-watchdog-alert
Browse files Browse the repository at this point in the history
feat: add watchdog alert
  • Loading branch information
rifisdfds authored Oct 10, 2023
2 parents ab74f59 + 9cc69e0 commit 83b55ba
Showing 1 changed file with 87 additions and 0 deletions.
87 changes: 87 additions & 0 deletions alerts/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1759,3 +1759,90 @@ groups:
labels:
rule_uid: b8eaf085-5c81-4d2a-b4a7-f2c6c9998e66
isPaused: false
- orgId: 1
name: Watchdog
folder: General Alerting
interval: 5m
rules:
- uid: d9806634-6a2e-4bbd-965a-59d602064de5
title: Watchdog
condition: C
data:
- refId: A
relativeTimeRange:
from: 600
to: 0
datasourceUid: prometheus
model:
editorMode: code
expr: vector(1)
hide: false
instant: true
intervalMs: 1000
maxDataPoints: 43200
range: false
refId: A
- refId: B
relativeTimeRange:
from: 600
to: 0
datasourceUid: __expr__
model:
conditions:
- evaluator:
params: []
type: gt
operator:
type: and
query:
params:
- B
reducer:
params: []
type: last
type: query
datasource:
type: __expr__
uid: __expr__
expression: A
hide: false
intervalMs: 1000
maxDataPoints: 43200
reducer: last
refId: B
type: reduce
- refId: C
relativeTimeRange:
from: 600
to: 0
datasourceUid: __expr__
model:
conditions:
- evaluator:
params:
- 0
type: gt
operator:
type: and
query:
params:
- C
reducer:
params: []
type: last
type: query
datasource:
type: __expr__
uid: __expr__
expression: B
hide: false
intervalMs: 1000
maxDataPoints: 43200
refId: C
type: threshold
noDataState: NoData
execErrState: Error
for: 5m
labels:
repeat: 24h
isPaused: false

0 comments on commit 83b55ba

Please sign in to comment.