Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2008120

Summary: Regression: core container io performance metrics are missing for pod, qos, and system slices on nodes
Product: OpenShift Container Platform Reporter: Philip Gough <pgough>
Component: MonitoringAssignee: Philip Gough <pgough>
Status: CLOSED ERRATA QA Contact: Junqi Zhao <juzhao>
Severity: urgent Docs Contact:
Priority: high    
Version: 4.9CC: amuller, anpicker, aos-bugs, arajkuma, ccoleman, erooth, juzhao, pgough
Target Milestone: ---   
Target Release: 4.9.z   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2007677 Environment:
Last Closed: 2021-10-26 17:22:42 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2007677    
Bug Blocks:    

Comment 1 Junqi Zhao 2021-09-30 09:52:30 UTC
tested with the PR, search metrics from prometheus with

count(container_fs_writes_total) by (id)
count(container_blkio_device_usage_total) by (id)
could see the metrics with id

{id="/"}
{id="/system.slice"}
{id="/system.slice/crio.service"}
{id="/kubepods.slice"}
{id="/kubepods.slice/kubepods-besteffort.slice"}
note: if you want to see result for "{id="/kubepods.slice/kubepods-besteffort.slice"}", make sure you have qosClass: BestEffort running pods

# oc -n openshift-monitoring get servicemonitor kubelet -oyaml
...
    metricRelabelings:
    - action: drop
      regex: container_(network_tcp_usage_total|network_udp_usage_total|tasks_state|cpu_load_average_10s)
      sourceLabels:
      - __name__
    - action: drop
      regex: (container_spec_.*|container_file_descriptors|container_sockets|container_threads_max|container_threads|container_start_time_seconds|container_last_seen);;
      sourceLabels:
      - __name__
      - pod
      - namespace
    - action: drop
      regex: (container_blkio_device_usage_total);.+
      sourceLabels:
      - __name__
      - container
    - action: drop
      regex: container_memory_failures_total
      sourceLabels:
      - __name__
    - action: drop
      regex: (container_fs_.*);.+
      sourceLabels:
      - __name__
      - container

Comment 7 errata-xmlrpc 2021-10-26 17:22:42 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (OpenShift Container Platform 4.9.4 bug fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:3935