Commit 6955aabd authored by zhujiashun's avatar zhujiashun

change /brpc_prometheus_metrics to /brpc_metrics

parent ad1596aa
......@@ -22,7 +22,7 @@
namespace brpc {
class PrometheusMetricsService : public brpc_prometheus_metrics {
class PrometheusMetricsService : public brpc_metrics {
public:
PrometheusMetricsService(Server* server)
: _server(server) {}
......
......@@ -97,7 +97,7 @@ service sockets {
rpc default_method(SocketsRequest) returns (SocketsResponse);
}
service brpc_prometheus_metrics {
service brpc_metrics {
rpc default_method(MetricsRequest) returns (MetricsResponse);
}
......
......@@ -45,7 +45,7 @@ TEST(PrometheusMetrics, sanity) {
channel_opts.protocol = "http";
ASSERT_EQ(0, channel.Init("127.0.0.1:8614", &channel_opts));
brpc::Controller cntl;
cntl.http_request().uri() = "/brpc_prometheus_metrics";
cntl.http_request().uri() = "/brpc_metrics";
channel.CallMethod(NULL, &cntl, NULL, NULL, NULL);
ASSERT_FALSE(cntl.Failed());
std::string res = cntl.response_attachment().to_string();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment