utopia9527 commented on issue #2698: URL: https://github.com/apache/brpc/issues/2698#issuecomment-2254790416
> 可以将bvar导出到[文件](https://github.com/apache/brpc/blob/master/docs/cn/bvar.md#%E7%9B%91%E6%8E%A7bvar)或者[Prometheus](https://github.com/apache/brpc/blob/master/docs/cn/bvar.md#%E5%AF%BC%E5%87%BA%E5%88%B0prometheus)。 > > 如果希望在代码中获取这些信息,可以参考继承bvar::Dumper实现一个派生类,参考PrometheusMetricsDumper。 > > https://github.com/apache/brpc/blob/5ae6ad62b174538a839ceef62644054da4f1960d/src/brpc/builtin/prometheus_metrics_service.cpp#L48-L83 感谢~~ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org For additional commands, e-mail: dev-h...@brpc.apache.org