inneek@gmail.com has uploaded this change for review.
grpc: Add NfsMetricsService and local credentials support
Add a gRPC NfsMetricsService (CollectMetrics RPC) that collects
in-memory Prometheus metrics (counters, gauges, and histograms) from
libntirpc's registry and exports them as structured protobuf messages.
This allows local monitoring agents to scrape Ganesha metrics directly
over gRPC without an HTTP scraping endpoint.
Also update the gRPC server initialization and configuration:
- Add a Credentials_Type config option (LOCAL vs SSL, defaulting to
LOCAL) so local metrics/admin clients on the same host can connect
via LocalServerCredentials without requiring mTLS certificate files.
- Rename Ganesha's grpc_shutdown() wrapper to grpc__shutdown() (matching
grpc__init()) to avoid a symbol collision with libgrpc's built-in
grpc_shutdown() function.
Change-Id: I909890e3ba50d07146b59b7f3bd34eaeedba5fea
Signed-off-by: Inna Batenkov <inneek@gmail.com>
---
M src/MainNFSD/nfs_admin_thread.c
M src/MainNFSD/nfs_init.c
M src/grpc_server/CMakeLists.txt
M src/grpc_server/GrpcServer.cc
M src/grpc_server/GrpcServer.h
A src/grpc_server/nfsMetricsService.cc
A src/grpc_server/nfsMetricsService.h
A src/grpc_server/nfsMetricsService_test.cc
A src/grpc_server/proto/nfsMetricsService.proto
M src/include/GrpcServerInit.h
M src/include/gsh_config.h
M src/support/nfs_read_conf.c
12 files changed, 681 insertions(+), 53 deletions(-)
git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/43/1250643/1
To view, visit change 1250643. To unsubscribe, or for help writing mail filters, visit settings.