go-grpc-prometheus:对gRPC Go服务器的Prometheus监视-源码

上传者: 42137723 | 上传时间: 2021-02-04 09:10:19 | 文件大小: 43KB | 文件类型: ZIP
使用gRPC拦截器进行Prometheus监控 用于服务器和客户端的监视。 姊妹实现(相同的度量标准,相同的语义)在。 拦截器 最近获得了对Interceptor的支持,即在请求传递到用户的应用程序逻辑之前由gRPC Server执行的中间件。 这是实现常见模式的理想方法:身份验证,日志记录和...监视。 要在链中使用拦截器,请参阅 。 该库需要Go 1.9或更高版本。 用法 拦截器有两种类型:客户端和服务器端。 该软件包为两者提供监视拦截器。 服务器端 import "github.com/grpc-ecosystem/go-grpc-prometheus" ... // I

文件下载

资源详情

[{"title":"( 32 个子文件 43KB ) go-grpc-prometheus:对gRPC Go服务器的Prometheus监视-源码","children":[{"title":"go-grpc-prometheus-master","children":[{"title":".gitignore <span style='color:#111;'> 3.17KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 13.49KB </span>","children":null,"spread":false},{"title":"server_test.go <span style='color:#111;'> 12.80KB </span>","children":null,"spread":false},{"title":"CHANGELOG.md <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"server_metrics.go <span style='color:#111;'> 7.30KB </span>","children":null,"spread":false},{"title":"packages","children":[{"title":"grpcstatus","children":[{"title":"grpcstatus1.13+_test.go <span style='color:#111;'> 610B </span>","children":null,"spread":false},{"title":"native_unwrap1.13+.go <span style='color:#111;'> 359B </span>","children":null,"spread":false},{"title":"native_unwrap1.12-.go <span style='color:#111;'> 176B </span>","children":null,"spread":false},{"title":"grpcstatus_test.go <span style='color:#111;'> 878B </span>","children":null,"spread":false},{"title":"grpcstatus.go <span style='color:#111;'> 1.63KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"examples","children":[{"title":"grpc-server-with-prometheus","children":[{"title":"prometheus","children":[{"title":"prometheus.yaml <span style='color:#111;'> 1.15KB </span>","children":null,"spread":false}],"spread":true},{"title":"server","children":[{"title":"server.go <span style='color:#111;'> 2.45KB </span>","children":null,"spread":false}],"spread":true},{"title":"client","children":[{"title":"client.go <span style='color:#111;'> 1.99KB </span>","children":null,"spread":false}],"spread":true},{"title":"protobuf","children":[{"title":"service.pb.go <span style='color:#111;'> 6.58KB </span>","children":null,"spread":false},{"title":"service.proto <span style='color:#111;'> 214B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"testproto","children":[{"title":"test.pb.go <span style='color:#111;'> 12.81KB </span>","children":null,"spread":false},{"title":"Makefile <span style='color:#111;'> 145B </span>","children":null,"spread":false},{"title":"test.proto <span style='color:#111;'> 476B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"LICENSE <span style='color:#111;'> 11.07KB </span>","children":null,"spread":false},{"title":"go.mod <span style='color:#111;'> 336B </span>","children":null,"spread":false},{"title":"makefile <span style='color:#111;'> 204B </span>","children":null,"spread":false},{"title":"client_reporter.go <span style='color:#111;'> 2.16KB </span>","children":null,"spread":false},{"title":"server_reporter.go <span style='color:#111;'> 1.35KB </span>","children":null,"spread":false},{"title":"scripts","children":[{"title":"test_all.sh <span style='color:#111;'> 373B </span>","children":null,"spread":false}],"spread":true},{"title":"client_metrics.go <span style='color:#111;'> 8.67KB </span>","children":null,"spread":false},{"title":"util.go <span style='color:#111;'> 1.32KB </span>","children":null,"spread":false},{"title":"metric_options.go <span style='color:#111;'> 1.14KB </span>","children":null,"spread":false},{"title":"go.sum <span style='color:#111;'> 4.70KB </span>","children":null,"spread":false},{"title":".travis.yml <span style='color:#111;'> 611B </span>","children":null,"spread":false},{"title":"client_test.go <span style='color:#111;'> 6.63KB </span>","children":null,"spread":false},{"title":"server.go <span style='color:#111;'> 1.91KB </span>","children":null,"spread":false},{"title":"client.go <span style='color:#111;'> 2.36KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明