{"categories":[{"label":"Monitoring","url":"https://skillfed.io/packages/category/system-monitoring/3"}],"enrichment":{"capability":"Adds Prometheus metrics collection to gRPC services via interceptors, tracking request counts, message volumes, and handling latencies on both client and server sides.","skillfed_tags":["grpc-instrumentation","prometheus-metrics","observability"],"use_cases":["Monitor gRPC service request rates, error rates, and completion status in production Prometheus instances.","Track per-method latency distributions and SLA compliance using Prometheus histograms on gRPC handlers.","Instrument gRPC client code to observe outbound request metrics and detect slow or failing downstream services.","Migrate existing gRPC observability from Java or Go services to Python while reusing the same metric names and Prometheus dashboards.","Diagnose gRPC performance issues by correlating message send/receive counts with latency histograms."],"what_it_does":"py-grpc-prometheus is an instrumentation library that exposes Prometheus metrics from gRPC services. It provides interceptors for both client and server sides that automatically track standard metrics: request counts (grpc_server_started_total, grpc_client_started_total), completion status (grpc_server_handled_total, grpc_client_handled_total), message volumes (grpc_server_msg_received_total, grpc_server_msg_sent_total, and client equivalents), and optionally request handling latencies via histograms (grpc_server_handling_seconds, grpc_client_handling_seconds).\n\nThe library mirrors the metric set from the Java and Go gRPC Prometheus libraries, making it a standard choice for Python gRPC observability. It integrates by wrapping gRPC channels on the client side and adding interceptors to the server at startup. Histograms and legacy metric names are opt-in to avoid high-cardinality label issues. With three runtime dependencies and a pure-Python wheel, it has low install friction, but its dormant maintenance status means it may lag behind new gRPC or Prometheus releases.","worth_installing":"Yes, if you are already running gRPC services with Prometheus and need standard metrics instrumentation. The library is stable, has low install friction, and aligns with ecosystem conventions. However, verify the unclear license before use in proprietary contexts, and be aware that dormant maintenance means no active support for future gRPC or Prometheus incompatibilities\u2014suitable for mature, stable deployments rather than greenfield projects expecting active updates."},"id":"py-grpc-prometheus","links":{"html":"https://skillfed.io/packages/py-grpc-prometheus","md":"https://skillfed.io/packages/py-grpc-prometheus.md","pypi":"https://pypi.org/project/py-grpc-prometheus/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2024-02-29","license_spdx":null,"license_treatment":"unclear","name":"py-grpc-prometheus","python_support":"unspecified","summary":"Python gRPC Prometheus Interceptors"},"popularity":{"monthly_downloads":961295,"position":4632,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.8.0"}
