Replace go-grpc-prometheus with go-grpc-middleware/providers/prometheus

Fixes #9806

go-grpc-prometheus is deprecated. The new location it was moved to also introduced
an entirely new api, but afaict this matches what we have at the moment.

Signed-off-by: Danny Canter <danny@dcantah.dev>
This commit is contained in:
Danny Canter
2024-02-20 00:27:31 -08:00
parent b87d78f456
commit 6a21c96b55
45 changed files with 1224 additions and 2348 deletions

View File

@@ -0,0 +1,8 @@
// Copyright (c) The go-grpc-middleware Authors.
// Licensed under the Apache License 2.0.
/*
Package prometheus provides a standalone interceptor for metrics. It's next iteration of deprecated https://github.com/grpc-ecosystem/go-grpc-prometheus.
See https://github.com/grpc-ecosystem/go-grpc-middleware/tree/main/examples for example.
*/
package prometheus