Warning Using json format to get metrics. Next release will switch to protocol-buffers, switch early by passing --use-protocol-buffers flag for RHOCP 4

Solution Verified - Updated -

Issue

When running the command oc adm top node output returns a warning

root@cxxxxxxx abc]# oc adm top no
0327 :00:00.000000   11111 top_node.go:119] Using json format to get metrics. Next release will switch to protocol-buffers, switch early by passing --use-protocol-buffers flag
NAME       CPU(cores)   CPU%   MEMORY(bytes)   MEMORY%
Nodename1   240m         6%     2461Mi          7%
Nodename2   265m         7%     2473Mi          7%
Nodename3   278m         7%     3415Mi          11%
Nodename4   2094m        59%    12443Mi         40%

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4

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