Uploaded image for project: 'OpenShift Windows Containers'
  1. OpenShift Windows Containers
  2. WINC-1180

Add Windows pod network graphs

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Normal Normal
    • WMCO 10.16.0
    • None
    • None
    • BU Product Work
    • 5
    • False
    • None
    • False
    • OCPSTRAT-398 - Monitoring support for Windows Containers
    •  Windows pod network usage metrics are now available in Prometheus. They are queryable by users and will be shown in the OCP console on the metrics tab when looking at a Windows pod.
    • Feature
    • WINC - Sprint 252, WINC - Sprint 253

      Description

      When inspecting a pod in the OCP console, the metrics tab shows a number of graphs. The networking graphs do not show data for Windows pods.

      Engineering Details

      Using windows exporter 0.24.0 I am getting `No datapoints found` for the query made by the console:
      (sum(irate(container_network_receive_bytes_total{pod='win-webserver-685cd6c5cc-8298l'}[5m])) by (pod, namespace, interface)) + on(namespace,pod,interface) group_left(network_name) (pod_network_name_info)

      There is data returned from the query `irate(container_network_receive_bytes_total{pod='windows-machine-config-operator-7c8bcc7b64-sjqxw'}[5m])`
      Which makes me believe the error is due to pod_network_name_info not having data for the Windows pods I am looking at.

      I'm confirming that by checking in the namespace the workloads are deployed to via the query: pod_network_name_info{namespace="openshift-windows-machine-config-operator"}
      I only see metrics for the Linux pods in the namespace.

      Looking into this it seems like these metrics are coming from https://github.com/openshift/network-metrics-daemon which runs on each Linux node, and creates a metric for applicable pods running on the node.

      Acceptance Criteria

      • The pod network graphs shown in the OCP console are populated for Windows pods.

            rh-ee-mankulka Mansi Kulkarni
            rh-ee-ssoto Sebastian Soto
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: