inneek(a)gmail.com has uploaded this change for review. (
https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1250643?usp=email )
Change subject: 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.
......................................................................
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(a)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
https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1250643?usp=email
To unsubscribe, or for help writing mail filters, visit
https://review.gerrithub.io/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: I909890e3ba50d07146b59b7f3bd34eaeedba5fea
Gerrit-Change-Number: 1250643
Gerrit-PatchSet: 1
Gerrit-Owner: inneek(a)gmail.com