Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-55497

openshift-lifecycle-agent ServiceMonitor triggers PrometheusOperatorRejectedResources alert

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 4.16.z
    • LCA operator
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Important
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

          When UserWorkLoadMonitoring is enabled on the cluster, openshift-lifecycle-agent namespace generates an alert: PrometheusOperatorRejectedResources due missing label openshift.io/cluster-monitoring: true

       

      Version-Release number of selected component (if applicable):

      4.16.38    

      How reproducible:

          Always

      Steps to Reproduce:

          1.Install LCA operator in default namespace (openshift-lifecycle-agent) without any extra options 
          2. Enable UserWorkLoadMonitoring on the cluster
          3.  

      Actual results:

          PrometheusOperatorRejectedResources alert is triggered on the cluster   

      Expected results:

          No alert is triggered

      Additional info:

          https://issues.redhat.com/browse/OCPBUGS-39126
      
      So as the LCA operator creates a ServiceMonitor, but the namespace does not have openshift.io/cluster-monitoring: true label present, UserWorkloadMonitor will try scrape the metrics, but that is blocked. 
      
      Compared to other non-community or non-certificed operators the openshift.io/cluster-monitoring: true label is present on the namespace. 
      
      Tested by labeling the openshift-lifecycle-agent Namespace manually and the alert is not present anymore.

       

              jche@redhat.com Jun Chen
              rh-ee-arahikai Antti Rahikainen
              None
              None
              Yang Liu Yang Liu
              None
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: