How to query kubelet metrics endpoint with Prometheus credentials

Solution Verified - Updated -

Issue

  • Want to manually gather metrics from the kubelet's /metrics endpoint
  • Need to troubleshoot endpoint due to errors like below
Get "https://10.0.0.xx:10250": context deadline exceeded
  • Kubelet target is down in AlertManager

Environment

  • Red Hat OpenShift Container Platform
    • 4.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content