go-grpc-prometheus
go-grpc-prometheus copied to clipboard
implementing the grpc-go/stats.Handler interface
Are there any plans to implement the stats.Handler interface? It exposes more information about the payload and size of data on the wire.
Oh, didn't even know about stats.Handler
. However, looking at it I only see the uncompressed/compressed payload sizes as useful additional metrics. Is that your primary use case?
👍 Payload sizes are of interest.
However, I would read this before looking to implement the interface: https://github.com/grpc/grpc-go/pull/1907#issuecomment-372367780
It's probably worthwhile checking whether a wider refactor would be appropriate to see if it stats.Handler
could replace the existing newServerReporter
struct. Based on my experience from Stubby days, the stats structs were quite heavy, but maybe here they'll be lightweight.
@btc I'm happy to accept PRs if it's done "on the side" in an optional way. Interested in contributing?
@Bplotka for the above ^stats.Handler
information (as it may be useful in kEdge).