gRPC Server Model
gRPC Server Model Overview
The Junos Telemetry Interface (JTI) includes the capability for multi-port service configuration, allowing you to configure multiple sets of telemetry services to listen on different ports.
The Telemetry Interface introduces flexible gRPC service configuration capabilities, enabling you to set up multiple gRPC servers, each with distinct services, listening addresses, and ports. This functionality provides granular control over service management and telemetry data collection. You can configure TLS certificates for each server to ensure secure communications.
Configure gRPC Server Model
The Juniper Telemetry Interface (JTI) configuration includes a set of CLI commands that enable setting up multiple gRPC services with designated ports, offering enhanced control and flexibility in telemetry data management.
A sample server configuration is as follows:
-
Here, a server named as test-server-1 is configured with default IP 0.0.0.0 and listens to port 50051. This server serves all gRPC services on this port.
{master}[edit] user@host# show system services http servers { server test-server-1 { listen-address 0.0.0.0; port 50051; grpc all-grpc; tls { local-certificate mycert; } } }
-
In this example, the configured server listens on port 9339 and serves only gNMI service. If a client requests a service other than gNMI, the server rejects the request.
{master}[edit] user@host# show system services http servers { server test-server-2 { listen-address 10.2.2.2; port 9339; grpc gnmi; tls { local-certificate mycert; mutual-authentication { certificate-authority ca1; authentication-type request-cert-and-verify; } } } }