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

[release-5.8] Add http to log_forwarder_output_info metrics

XMLWordPrintable

    • False
    • None
    • False
    • NEW
    • VERIFIED
    • Log Collection - Sprint 237
    • Moderate

      Description of problem:

      similar to https://issues.redhat.com/browse/LOG-3932, http need to added into log_forwarder_output_info.

      Steps to Reproduce:

      1)deploy openshift-logging.

      2)Check the log_forwarder_output_info
      token=$(oc create token  prometheus-k8s -n openshift-monitoring)
      pod=$(oc get pods -o name |head -1)
      route=$(oc get route -n openshift-monitoring prometheus-k8s -ojsonpath={.spec.host})
      oc exec $pod – curl -k -s -H "Authorization: Bearer $token" "https://${route}/api/v1/query?" --data-urlencode "query=log_forwarder_output_info" | jq '.data.result'

      Actual results:

       

      {
        "metric": {
          "__name__": "log_forwarder_output_info",
          "cloudwatch": "0",
          "default": "0",
          "elasticsearch": "0",
          "endpoint": "http-metrics",
          "fluentdForward": "0",
          "kafka": "0",
          "loki": "0",
          "syslog": "0"
          "http": "0",
          "namespace": "openshift-logging",
           ....
           ....
        },
      }
        

      Expected results:

      {
        "metric":

      {     "__name__": "log_forwarder_output_info",     "cloudwatch": "0",     "default": "0",     "elasticsearch": "0",     "endpoint": "http-metrics",     "fluentdForward": "0",     "kafka": "0",     "loki": "0",     "syslog": "0"     *"http": "0",*     "namespace": "openshift-logging",      ....      ....   }

      ,
      }

              rh-ee-calee Calvin Lee
              rhn-support-anli Anping Li
              Anping Li Anping Li
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: