-
Bug
-
Resolution: Done
-
Major
-
Logging 6.0.0
-
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:
- Deploy CLO
- Deploy logfilesmetricexporter
- 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:
- links to
- mentioned on