Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add changelog sample alerts #2484

Merged
merged 3 commits into from
Nov 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)"

# Volume created. Refer https://netapp.github.io/harvest/latest/plugins/#changelog-plugin for more details.
- alert: Volume Created
expr: change_log{op="create",object="volume"} > 0
labels:
severity: "info"
annotations:
summary: "{{ $labels.object }} [{{ $labels.volume }}] created"
rahulguptajss marked this conversation as resolved.
Show resolved Hide resolved
description: "{{ $labels.object }} [{{ $labels.volume }}] created"

# Volume modified. Refer https://netapp.github.io/harvest/latest/plugins/#changelog-plugin for more details.
- alert: Volume Modified
expr: change_log{op="update",object="volume"} > 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 }}]."

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