Skip to content

Commit 5974984

Browse files
Merge pull request #415 from wking/alert-on-available-updates
install/0000_90_cluster-version-operator_02_servicemonitor: Info-level alert for available updates
2 parents 4c3024d + ccf0882 commit 5974984

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

install/0000_90_cluster-version-operator_02_servicemonitor.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@ spec:
5151
(time()-cluster_version_operator_update_retrieval_timestamp_seconds) >= 3600 and ignoring(condition, name, reason) cluster_operator_conditions{name="version", condition="RetrievedUpdates", endpoint="metrics", reason!="NoChannel"}
5252
labels:
5353
severity: critical
54+
- alert: UpdateAvailable
55+
annotations:
56+
message: Your upstream update recommendation service recommends you update your cluster. For more information refer to 'oc adm upgrade'{{ "{{ with $console_url := \"console_url\" | query }}{{ if ne (len (label \"url\" (first $console_url ) ) ) 0}} or {{ label \"url\" (first $console_url ) }}/settings/cluster/{{ end }}{{ end }}" }}.
57+
expr: |
58+
cluster_version_available_updates > 1
59+
labels:
60+
severity: info
5461
- name: cluster-operators
5562
rules:
5663
- alert: ClusterNotUpgradeable

0 commit comments

Comments
 (0)