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