-
Story
-
Resolution: Done
-
Undefined
-
None
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