Skip to content

Commit

Permalink
feat: address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulguptajss committed Nov 13, 2023
1 parent 199e4ea commit a14332f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions container/prometheus/alert_rules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,26 +76,26 @@ groups:
summary: "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
# Volume created. Refer https://netapp.github.io/harvest/latest/plugins/#changelog-plugin for more details.
- alert: Volume 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
# Volume modified. Refer https://netapp.github.io/harvest/latest/plugins/#changelog-plugin for more details.
- alert: Volume 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
# Volume deleted. Refer https://netapp.github.io/harvest/latest/plugins/#changelog-plugin for more details.
- alert: Volume Deleted
expr: change_log{op="delete"} > 0
labels:
severity: "warning"
Expand Down

0 comments on commit a14332f

Please sign in to comment.