Skip to content

Commit

Permalink
feat: add changelog sample alerts
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulguptajss committed Nov 13, 2023
1 parent eeab975 commit 199e4ea
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion container/prometheus/alert_rules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,31 @@ groups:
severity: "critical"
annotations:
summary: "Snapmirror [{{ $labels.relationship_id }}] has [{{$value}}] lag time (in secs)"
description: "Snapmirror [{{ $labels.relationship_id }}] has [{{$value}}] lag time (in secs)"
description: "Snapmirror [{{ $labels.relationship_id }}] has [{{$value}}] lag time (in secs)"

# Object created. Refer https://netapp.github.io/harvest/latest/plugins/#changelog-plugin for more details.
- alert: Object Created
expr: change_log{op="create"} > 0
labels:
severity: "info"
annotations:
summary: "{{ $labels.object }} [{{ $labels.volume }}] created"
description: "{{ $labels.object }} [{{ $labels.volume }}] created"

# Object modified. Refer https://netapp.github.io/harvest/latest/plugins/#changelog-plugin for more details.
- alert: Object Modified
expr: change_log{op="update"} > 0
labels:
severity: "info"
annotations:
summary: "{{ $labels.object }} [{{ $labels.volume }}] updated"
description: "The [{{ $labels.track }}] of {{ $labels.object }} [{{ $labels.volume }}] has been updated. The previous value was [{{ $labels.old_value }}], and the new value is [{{ $labels.new_value }}]."

# Object deleted. Refer https://netapp.github.io/harvest/latest/plugins/#changelog-plugin for more details.
- alert: Object Deleted
expr: change_log{op="delete"} > 0
labels:
severity: "warning"
annotations:
summary: "{{ $labels.object }} [{{ $labels.volume }}] deleted"
description: "{{ $labels.object }} [{{ $labels.volume }}] deleted"

0 comments on commit 199e4ea

Please sign in to comment.