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

Fluentd collected metric should track either /var/log/pods or /var/log/containers

XMLWordPrintable

    • False
    • None
    • False
    • NEW
    • VERIFIED
    • Hide
      Node logs recently moved from being stored in /var/log/containers to /var/log/pods. Before this update, only the newer '/pods' directory was monitored, so there were no metrics on older openshift releases that use '/containers'. With this update, metrics will be collected from whichever directory is in use, so it works on old and new openshift releases.
      Also with this change, the "path" label is no longer set in the metrics. Changes in the way log files are named make it meaningless to use the "path" as a label. Instead use labels podname, containername etc. to identify log streams by containers.
      Show
      Node logs recently moved from being stored in /var/log/containers to /var/log/pods. Before this update, only the newer '/pods' directory was monitored, so there were no metrics on older openshift releases that use '/containers'. With this update, metrics will be collected from whichever directory is in use, so it works on old and new openshift releases. Also with this change, the "path" label is no longer set in the metrics. Changes in the way log files are named make it meaningless to use the "path" as a label. Instead use labels podname, containername etc. to identify log streams by containers.
    • Logging (Core) - Sprint 217

      Recent change to the metric code makes it track only /var/log/pods

      To enable use on older OCP versions it should continue to track /var/log/containers

      https://github.com/ViaQ/logging-fluentd/pull/31

              rhn-engineering-aconway Alan Conway
              rhn-engineering-aconway Alan Conway
              Qiaoling Tang Qiaoling Tang
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: