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

Duplicated items in log_logging_info metrics

XMLWordPrintable

    • False
    • None
    • False
    • NEW
    • VERIFIED
    • Before this update, logging telemetry info appeared twice when reviewing metrics. With this update, logging telemetry info displays as expected.
    • Log Collection - Sprint 223, Log Collection - Sprint 224, Log Collection - Sprint 225, Log Collection - Sprint 226, Log Collection - Sprint 227

      Two opposite items present when show log_logging_info metrics.  it should show the correct one.

      Step to Reproduce

      1.  Deploy CLO and EO
      2.  send logs to default.
      3.  check the log_logging_info metrics

      Actual result:
      Two items are present

      [
        {
          "metric": {
            "__name__": "log_logging_info",
            "endpoint": "http-metrics",
            "healthStatus": "0",
            "instance": "10.129.2.144:8686",
            "job": "cluster-logging-operator-metrics",
            "managedStatus": "0",
            "namespace": "openshift-logging",
            "pod": "cluster-logging-operator-5bfd9dfd84-vl2gn",
            "service": "cluster-logging-operator-metrics",
            "version": "0.0.1"
          },
          "value": [
            1646406004.676,
            "1"
          ]
        },
        {
          "metric": {
            "__name__": "log_logging_info",
            "endpoint": "http-metrics",
            "healthStatus": "0",
            "instance": "10.129.2.144:8686",
            "job": "cluster-logging-operator-metrics",
            "managedStatus": "1",
            "namespace": "openshift-logging",
            "pod": "cluster-logging-operator-5bfd9dfd84-vl2gn",
            "service": "cluster-logging-operator-metrics",
            "version": "0.0.1"
          },
          "value": [
            1646406004.676,
            "1"
          ]
        }
      ]
      

      Expect result
      Only show the second item

      [
        {
          "metric": {
            "__name__": "log_logging_info",
            "endpoint": "http-metrics",
            "healthStatus": "0",
            "instance": "10.129.2.144:8686",
            "job": "cluster-logging-operator-metrics",
            "managedStatus": "1",
            "namespace": "openshift-logging",
            "pod": "cluster-logging-operator-5bfd9dfd84-vl2gn",
            "service": "cluster-logging-operator-metrics",
            "version": "0.0.1"
          },
          "value": [
            1646406004.676,
            "1"
          ]
        }
      ]
      

              rhn-engineering-aconway Alan Conway
              rhn-support-anli Anping Li
              Anping Li Anping Li
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: