{"id":50050,"library":"grpc-ecosystem-go-grpc-prometheus","title":"go-grpc-prometheus","description":"A Go library providing Prometheus monitoring for gRPC servers and clients.","status":"active","version":"1.2.0","language":"go","source_language":null,"source_url":"https://github.com/grpc-ecosystem/go-grpc-prometheus","tags":["grpc","prometheus","monitoring","metrics"],"install":[{"cmd":"go get github.com/grpc-ecosystem/go-grpc-prometheus","lang":"bash","label":"Install github.com/grpc-ecosystem/go-grpc-prometheus"}],"dependencies":[],"imports":[{"symbol":"grpc_prometheus","correct":"github.com/grpc-ecosystem/go-grpc-prometheus"}],"quickstart":{"code":"package main\n\nimport (\n\t\"net\"\n\t\"google.golang.org/grpc\"\n\t\"github.com/grpc-ecosystem/go-grpc-prometheus\"\n)\n\nfunc main() {\n\ts := grpc.NewServer(\n\t\tgrpc.StreamInterceptor(grpc_prometheus.StreamServerInterceptor),\n\t\tgrpc.UnaryInterceptor(grpc_prometheus.UnaryServerInterceptor),\n\t)\n\tlis, _ := net.Listen(\"tcp\", \":50051\")\n\ts.Serve(lis)\n}","lang":"go","description":"Set up a gRPC server with Prometheus monitoring interceptors."},"warnings":[{"fix":"Register the default metrics with prometheus.MustRegister(grpc_prometheus.DefaultServerMetrics).","message":"Requires Prometheus client library to be registered; metrics are not automatically exposed.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'client':15 'go':2,6 'go-grpc-prometheus':1 'grpc':3,12,16 'librari':7 'metric':19 'monitor':10,18 'prometheus':4,9,17 'provid':8 'server':13","created_at":"2026-06-15T04:38:22.644117+00:00","updated_at":"2026-06-15T04:38:22.644117+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/grpc-ecosystem/go-grpc-prometheus","github":"https://github.com/grpc-ecosystem/go-grpc-prometheus","docs":"https://pkg.go.dev/github.com/grpc-ecosystem/go-grpc-prometheus#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["observability"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}