Bug 1992553 - all the alert rules' annotations "summary" and "description" should comply with the OpenShift alerting guidelines
Summary: all the alert rules' annotations "summary" and "description" should comply wi...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Image Registry
Version: 4.9
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.11.0
Assignee: Oleg Bulatov
QA Contact: wewang
URL:
Whiteboard:
: 2010347 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-08-11 09:59 UTC by hongyan li
Modified: 2022-08-10 10:37 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-08-10 10:36:53 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift cluster-image-registry-operator pull 750 0 None open Bug 1992553: Remove PrometheusRule 2022-01-31 19:50:25 UTC
Red Hat Product Errata RHSA-2022:5069 0 None None None 2022-08-10 10:37:07 UTC

Description hongyan li 2021-08-11 09:59:00 UTC
Description of problem:
all the alert rules'  annotations "summary" and "description"  should comply with the OpenShift alerting guidelines

Version-Release number of selected component (if applicable):
4.9.0-0.nightly-2021-08-07-175228

How reproducible:
always

Steps to Reproduce:
1.
2.
3.

Actual results:
$ oc get prometheusrules -n openshift-image-registry -oyaml
apiVersion: v1
items:
- apiVersion: monitoring.coreos.com/v1
  kind: PrometheusRule
  metadata:
    annotations:
      include.release.openshift.io/ibm-cloud-managed: "true"
      include.release.openshift.io/self-managed-high-availability: "true"
      include.release.openshift.io/single-node-developer: "true"
    creationTimestamp: "2021-08-10T23:22:21Z"
    generation: 1
    labels:
      name: image-registry-operator-alerts
    name: image-registry-operator-alerts
    namespace: openshift-image-registry
    ownerReferences:
    - apiVersion: config.openshift.io/v1
      kind: ClusterVersion
      name: version
      uid: 9fc7b5b6-6c23-4335-be07-ecfe1b9a142f
    resourceVersion: "21341"
    uid: 05b7524b-0a19-42c7-bc8b-84b73b7fae02
  spec:
    groups:
    - name: ImageRegistryOperator
      rules:
      - alert: ImageRegistryStorageReconfigured
        annotations:
          message: |
            Image Registry Storage configuration has changed in the last 30
            minutes. This change may have caused data loss.
        expr: increase(image_registry_operator_storage_reconfigured_total[30m]) >
          0
        labels:
          severity: warning
kind: List
metadata:
  resourceVersion: ""
  selfLink: ""



Expected results:
alert rules have annotations "summary" and "description"

Additional info:
the "summary" and "description" annotations comply with the OpenShift alerting guidelines [1]

[1] https://github.com/openshift/enhancements/blob/master/enhancements/monitoring/alerting-consistency.md#documentation-required

Comment 1 Oleg Bulatov 2021-09-03 13:48:30 UTC
No progress this sprint.

Comment 2 Oleg Bulatov 2021-10-04 13:51:17 UTC
*** Bug 2010347 has been marked as a duplicate of this bug. ***

Comment 5 wewang 2022-02-07 06:45:55 UTC
Verified in 4.11.0-0.nightly-2022-02-06-113143
Now removed PrometheusRule
 [wewang@localhost ~]$ oc get prometheusrules -n openshift-image-registry
No resources found in openshift-image-registry namespace

Comment 9 errata-xmlrpc 2022-08-10 10:36:53 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: OpenShift Container Platform 4.11.0 bug fix and security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:5069


Note You need to log in before you can comment on or make changes to this bug.