OpenShift Metrics Charts have gaps or spaces

Solution Unverified - Updated

Environment

  • OpenShift Enterprise 3.x

Issue

  • i can the Metrics for the Pods now but i see come cuts.
  • I see gaps occurring in my metrics charts

Resolution

  • The gaps showing up in the metrics chart are commonly caused by the metrics_resolution for versions 3.2.1 and beyond (or stats_resolution for older 3.x versions) being set too high.
    • To correct the problem, edit the ReplicationController to decrease that value by a few seconds:
 # oc edit rc heapster
...
        - --tls_key=/secrets/heapster.key
        - --tls_client_ca=/secrets/heapster.client-ca
        - --allowed_users=%allowed_users%
        - --stats_resolution=30s
...
  • After making this change you will need to scale the heapster pod down to 0 and then back up so a new pod is deployed with the new settings:
# oc scale rc heapster --replicas=0
# oc scale rc heapster --replicas=1
SBR
Category
Tags

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.