Uploaded image for project: 'OpenShift Virtualization'
  1. OpenShift Virtualization
  2. CNV-33633

Add label to VM alerts similar to "Source" to define who is the alert "Owner"

XMLWordPrintable

    • 2
    • False
    • Hide

      None

      Show
      None
    • False
    • CNV-8094 - CNV Observability
    • No
    • ---
    • ---
    • CNV I/U Operators Sprint 243, CNV I/U Operators Sprint 244, CNV I/U Operators Sprint 245, CNV I/U Operators Sprint 246

      We want a new label that is similar to the openshift_io_alert_source="user", to define the "Owner" of the alert, which can be "User" or "Admin"  since  for VMs the cluster admin is not the one that is expected to fix them.

      We need to create design document using the openshift/enhancements template and request Simon Pasquier to review. 

      Currently all alerts coming from namespaces with the "openshift.io/cluster-monitoring=true" label will be labeled as Platform.
      Relabeling code: https://github.com/openshift/cluster-monitoring-operator/blob/f70961525e29746a34a2f17a08685267e3aea359/pkg/alert/relabel_controller.go#L43-L50

      We want a similar label that by default will set the "Owner" to "Admin" for openshift prefixed namespaces and "User" for the rest. But will also allow the operators to set it in the alert config and overwrite the default value.

      Slack thread: https://redhat-internal.slack.com/archives/C0VMT03S5/p1695819517158999

            sradco Shirly Radco
            sradco Shirly Radco
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: