-
Notifications
You must be signed in to change notification settings - Fork 42
add grpc server metrics. #152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add grpc server metrics. #152
Conversation
Signed-off-by: morvencao <[email protected]>
d16e703 to
bf060b9
Compare
|
/assign @qiujian16 @skeeey |
|
@morvencao this looks great, I think we also need some description on what value of metrics will reflect the service is degraded. Or as an operator, what metrics should be checked to determine whether the service is not healthy. |
| For example: | ||
| ``` | ||
| grpc_server_started_total{grpc_method="Publish",grpc_service="io.cloudevents.v1.CloudEventService",grpc_type="unary"} 3 | ||
| grpc_server_started_total{grpc_method="Subscribe",grpc_service="io.cloudevents.v1.CloudEventService",grpc_type="server_stream"} 4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for grpc_method="Subscribe",grpc_service="io.cloudevents.v1.CloudEventService", we get them from StreamServerInfo/UnaryServerInfo? so the method or service will not only cloudevents Publish/Subscribe, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
right, not only cloudevents Publish/Subscribe, this is just an example.
for other grpc server, eg, cluster-proxy, the service and method will be different.
Signed-off-by: morvencao <[email protected]>
|
added metrics values for healthy/degraded case, along with a rough operator guide. |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: morvencao, qiujian16 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/lgtm |
6fecf80
into
open-cluster-management-io:main
add gRPC server metrics.