Uploaded image for project: 'OpenShift Logging'
  1. OpenShift Logging
  2. LOG-5972

Selector in servicemonitor/logfilesmetricexporter doesn't match the labels in logfilesmetricexporter endpoints.

XMLWordPrintable

    • False
    • None
    • False
    • NEW
    • OBSDA-550 - Updated APIs for Logging 6.0
    • VERIFIED
    • Release Note Not Required
    • Log Collection - Sprint 258
    • Important

      Description of problem:

      The selector in servicemonitor/logfilesmetricexporter doesn't match the labels in logfilesmetricexporter pods/service/endpoint, making users can't find metrics exposed by logfilesmetricexporter in OCP console:

      $ oc get servicemonitor  logfilesmetricexporter -ojsonpath={.spec.selector.matchLabels}  |jq
      {
        "app.kubernetes.io/component": "logfilesmetricexporter",
        "app.kubernetes.io/instance": "logfilesmetricexporter",
        "logging.observability.openshift.io/service-type": "metrics"
      }
      
      
      $ oc get ep logfilesmetricexporter -ojsonpath={.metadata.labels} |jq
      {
        "app.kubernetes.io/component": "logfilesmetricexporter",
        "app.kubernetes.io/instance": "instance",
        "app.kubernetes.io/managed-by": "cluster-logging-operator",
        "app.kubernetes.io/name": "logfilesmetricexporter",
        "app.kubernetes.io/part-of": "cluster-logging",
        "app.kubernetes.io/version": "6.0.0",
        "logging.observability.openshift.io/service-type": "metrics"
      } 

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

      openshift-logging/cluster-logging-rhel9-operator/images/v6.0.0-72

      How reproducible:

      Always

      Steps to Reproduce:

      1. Deploy CLO
      2. Deploy logfilesmetricexporter 
      3. Check metrics in OCP console

      Actual results:

      Can't find metrics from logfilesmetricexporter.

      Expected results:

      Users can find metrics from logfilesmetricexporter in OCP console.

      Additional info:

              rojacob@redhat.com Robert Jacob
              qitang@redhat.com Qiaoling Tang
              Qiaoling Tang Qiaoling Tang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: