grpc-ecosystem/java-grpc-prometheus là dự án Java với 236 sao. Java interceptors which can be used to monitor Grpc services using Prometheus.
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
Java interceptors which can be used to monitor Grpc services using Prometheus.
Features
The features of this library include two monitoring grpc interceptors, MonitoringServerInterceptor and MonitoringClientInterceptor. These interceptors can be attached separately to grpc servers and client stubs respectively. For each RPC, the interceptors increment the following Prometheus metrics, broken down by method type, service name, method name, and response code:
Server
grpc_server_started_total: Total number of RPCs started on the server.
grpc_server_handled_total: Total number of RPCs completed on the server, regardless of success or failure.
grpc_server_handled_latency_seconds: (Optional) Histogram of response latency of rpcs handled by the server, in seconds.
grpc_server_msg_received_total: Total number of stream messages received from the client.
grpc_server_msg_sent_total: Total number of stream messages sent by the server.
Client
grpc_client_started_total: Total number of RPCs started on the client.
grpc_client_completed: Total number of RPCs completed on the client, regardless of success or failure.
grpc_client_completed_latency_seconds: (Optional) Histogram of rpc response latency for completed rpcs, in seconds.
grpc_client_msg_received_total: Total number of stream messages received from the server.
grpc_client_msg_sent_total: Total number of stream messages sent by the client.
Note that by passing a Configuration instance to the interceptors, it is possible to configure the following:
Whether or not a latency histogram is recorded for RPCs.
Which histogram buckets to use for the latency metrics.
Which Prometheus CollectorRegistry the metrics get registered with.
(Optional) Which headers you want to be applied to metrics as added labels.
The server interceptors have an identical implementation in Golang, go-grpc-prometheus, brought to you by @MWitkow.
Usage
This library is made available on the dinowernli GitHub Maven repository.
Once the repository is set up, the library can be included using the following artifact id:
me.dinowernli:java-grpc-prometheus:0.3.0
In order to attach the monitoring server interceptor to your gRPC server, you can do the following:
If you want to instruct the interceptor to use a specific header of interest, for example "header-1" as a label on all
produced metrics, you can do the following, which will cause the metrics to carry an extra label "header_1" whose
value is filled from the header value on each request:
If you're using Spring Boot 2 with micrometer-registry-prometheus you should inject the CollectorRegistry that is already provided in the application context:
@Autowired
private CollectorRegistry collectorRegistry;
// use the provided registry
MonitoringServerInterceptor monitoringInterceptor =
MonitoringServerInterceptor.create(Configuration.cheapMetricsOnly().withCollectorRegistry(collectorRegistry));
grpc-ecosystem/java-grpc-prometheus có bao nhiêu sao?
grpc-ecosystem/java-grpc-prometheus có 236 sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/grpc-ecosystem/java-grpc-prometheus. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
grpc-ecosystem/java-grpc-prometheus có tag gì không?
Bản đồng bộ chưa ghi nhận topic GitHub nào cho grpc-ecosystem/java-grpc-prometheus. GitHub topics hiển thị ở thanh bên phải trang repo — đó là nơi đáng kiểm tra nhất.
grpc-ecosystem/java-grpc-prometheus còn đang phát triển không?
Commit gần nhất trên grpc-ecosystem/java-grpc-prometheus là 3.5 năm trước (theo timestamp GitHub). Repo có 80 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
grpc-ecosystem/java-grpc-prometheus là gì?
grpc-ecosystem/java-grpc-prometheus (grpc-ecosystem/java-grpc-prometheus) là dự án Java trên GitHub. Theo mô tả gốc: Java interceptors which can be used to monitor Grpc services using Prometheus.
grpc-ecosystem/java-grpc-prometheus viết bằng ngôn ngữ gì?
grpc-ecosystem/java-grpc-prometheus chủ yếu viết bằng Java. Trường "language" của GitHub dựa trên phần lớn byte ở nhánh mặc định.
Đọc đầy đủ README ở tab phía trên.
Chưa chắc java-grpc-prometheus có hợp với bạn?
Để ChatGPT, Claude hoặc Perplexity tìm hiểu giúp — bấm bên dưới và xem AI nói gì về java-grpc-prometheus.