Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
brpc
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
brpc
Commits
6955aabd
Commit
6955aabd
authored
Jun 17, 2019
by
zhujiashun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change /brpc_prometheus_metrics to /brpc_metrics
parent
ad1596aa
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
prometheus_metrics_service.h
src/brpc/builtin/prometheus_metrics_service.h
+1
-1
builtin_service.proto
src/brpc/builtin_service.proto
+1
-1
brpc_prometheus_metrics_unittest.cpp
test/brpc_prometheus_metrics_unittest.cpp
+1
-1
No files found.
src/brpc/builtin/prometheus_metrics_service.h
View file @
6955aabd
...
...
@@ -22,7 +22,7 @@
namespace
brpc
{
class
PrometheusMetricsService
:
public
brpc_
prometheus_
metrics
{
class
PrometheusMetricsService
:
public
brpc_metrics
{
public
:
PrometheusMetricsService
(
Server
*
server
)
:
_server
(
server
)
{}
...
...
src/brpc/builtin_service.proto
View file @
6955aabd
...
...
@@ -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
);
}
...
...
test/brpc_prometheus_metrics_unittest.cpp
View file @
6955aabd
...
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment