如何调用 prometheus api 接口获取CPU利用率和内存利用率

我看TiDB就是直接使用的prometheus,所以在prometheus的文档中可以查看到如何调用api
比如下面的链接可能会有帮助
client_java (prometheus.github.io)