Bug 1690951 - [3.11.z] KubeletTooManyPods statically compares against 100 instead of --max-pods (-10)
Summary: [3.11.z] KubeletTooManyPods statically compares against 100 instead of --max-...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Monitoring
Version: 3.11.0
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
: 3.11.z
Assignee: Frederic Branczyk
QA Contact: Junqi Zhao
URL:
Whiteboard:
Depends On: 1633387
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-03-20 14:30 UTC by Matthew Robson
Modified: 2019-06-06 02:00 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1633387
Environment:
Last Closed: 2019-06-06 02:00:29 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2019:0794 0 None None None 2019-06-06 02:00:39 UTC

Comment 4 Frederic Branczyk 2019-04-04 07:52:21 UTC
Backport is merged so marking as modified. RE: https://github.com/openshift/cluster-monitoring-operator/pull/305

Comment 6 Junqi Zhao 2019-04-11 01:41:48 UTC
Tested with cluster-monitoring-operator-v3.11.104-1, KubeletTooManyPods rule is under below, since the maximum pods number is 250, this alert will not be triggered, and message "close to the limit of 110" is also wrong, should be 250
*************************************** 
    - alert: KubeletTooManyPods
      annotations:
        message: Kubelet {{$labels.instance}} is running {{$value}} pods, close to
          the limit of 110.
      expr: |
        kubelet_running_pod_count{job="kubelet"} > 250
      for: 15m
      labels:
        severity: warning
***************************************

Should be the same with 4.1 KubeletTooManyPods rule
***************************************
    - alert: KubeletTooManyPods
      annotations:
        message: Kubelet {{ $labels.instance }} is running {{ $value }} Pods, close
          to the limit of 250.
      expr: |
        kubelet_running_pod_count{job="kubelet"} > 250 * 0.9
      for: 15m
      labels:
        severity: warning
***************************************

Comment 7 Frederic Branczyk 2019-04-11 08:59:24 UTC
Good catch! https://github.com/openshift/cluster-monitoring-operator/pull/317 fixes this.

Comment 8 Frederic Branczyk 2019-04-11 09:54:01 UTC
https://github.com/openshift/cluster-monitoring-operator/pull/317 is merged, so moving to modified again.

Comment 9 Junqi Zhao 2019-04-15 05:46:50 UTC
Tested with cluster-monitoring-operator-v3.11.105-1, issue is fixed

alert: KubeletTooManyPods
expr: kubelet_running_pod_count{job="kubelet"}
  > 250 * 0.9
for: 15m
labels:
  severity: warning
annotations:
  message: Kubelet {{ $labels.instance }} is running {{ $value }} Pods, close to the
    limit of 250.

Comment 11 errata-xmlrpc 2019-06-06 02:00:29 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, 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-2019:0794


Note You need to log in before you can comment on or make changes to this bug.