Uploaded image for project: 'Observability and Data Analysis Program'
  1. Observability and Data Analysis Program
  2. OBSDA-840

[RFE] Forwarding application logs from specific namespaces with namespaceSelector.matchLabels

XMLWordPrintable

    • False
    • None
    • False
    • Not Selected
    • 0

      1. Proposed title of this feature request
      -->  Forwarding application logs from specific namespaces with namespaceSelector.matchLabels

      2. What is the nature and description of the request?
      --> This request will help us to forward application logs from dynamically changing application namespaces.

      3. Why does the customer need this? (List the business requirements here)
      --> If namespaces are frequently created and deleted, then maintaining the list of namespaces is unpractical.
          So, we need this feature to automatically select namespaces based on the labels they have.

      4. List any affected packages or components.
      --> Not sure if any dependencies packages will be affected.

      5. RFE description in detail:

      As we know, forwarding application logs from specific projects is possible by mentioning the static namespaces list in the CLF configuration.
      Currently, possible ways are ==> `clusterlogforwarder.spec.inputs.application` ==> We can have either:

      • `selector.matchLabels`: a dictionary to define the labels a pod must have, to be considered
      • `namespaces`: a list of namespace names.   e.g. below
        ~~~
        spec:
          inputs:
           - name: my-app-logs
             application:
                namespaces:
                - my-project
        ~~~

      Now, looking for a new possibility, like below:

      • `namespaceSelector.matchLabels`: a dictionary to define the labels a namespace must have, to be considered
        e.g.
        ~~~
        spec:
          inputs:
            - name: my-app-logs
              application:
                namespaceSelector:
                  matchLabels:
                    environment: production
        ~~~
      • With this config, it will select all namespaces that have the `environment=production` label.

      *Is there already an existing RFE upstream or in Red Hat Bugzilla?
      NO

      *Would the customer be able to assist in testing this functionality if implemented?
      yes

              jamparke@redhat.com Jamie Parker
              rhn-support-pripatil Prithviraj Patil
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: