Uploaded image for project: 'Knative Serving'
  1. Knative Serving
  2. SRVKS-409

[DOCS] Serverless metric ReportDataSource need to be updated for k8s 1.16 (OCP 4.3)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.4.0
    • 1.3.0, 1.4.0
    • Documentation
    • None
    • Serverless Sprint 179

      The pod_name and container_name metric labels have been renamed to pod and container, respectively in k8s 1.16 (OCP 4.3)

      see also https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG-1.16.md#removed-metrics
      and https://bugzilla.redhat.com/show_bug.cgi?id=1756548

      The report datasources in https://docs.openshift.com/container-platform/4.3/serverless/serverless-metering.html need to be updated

      Datasource for CPU usage in Knative Serving

      -            label_replace(rate(container_cpu_usage_seconds_total{container_name!="POD",container_name!="",pod_name!=""}[1m]), "pod", "$1", "pod_name", "(.*)")
      +            label_replace(rate(container_cpu_usage_seconds_total{container!="POD",container!="",pod!=""}[1m]), "pod", "$1", "pod", "(.*)")
      

      Datasource for memory usage in Knative Serving

      -            label_replace(container_memory_usage_bytes{container_name!="POD", container_name!="",pod_name!=""}, "pod", "$1", "pod_name", "(.*)")
      +            label_replace(container_memory_usage_bytes{container!="POD", container!="",pod!=""}, "pod", "$1", "pod", "(.*)")
      

              abrennan@redhat.com Ashleigh Brennan
              maschmid@redhat.com Marek Schmidt
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: