Documentation
¶
Overview ¶
Package gnmiserver implements the collector's northbound gNMI server.
It exposes the same gNMI interface as the `subscribe` command's gNMI server (see pkg/app/gnmi_server.go):
- Subscribe and Get RPCs are served from the collector cache, which is kept in sync with the configured targets/subscriptions by the outputs manager.
- Set RPCs are relayed to the target(s) selected via the request Prefix.Target field (disabled by default, see `read-only`).
- Get requests with origin `gnmic` are served from the collector's configuration store (`targets` and `subscriptions` paths).
It is configured with the same `gnmi-server` config section used by the `subscribe` command.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is the collector's northbound gNMI server.
func NewServer ¶
func NewServer(ctx context.Context, store *collstore.Store, tm *targets_manager.TargetsManager, reg *prometheus.Registry) *Server
NewServer creates a new collector gNMI server. The server is only effectively started (listening) if the `gnmi-server` section is present in the configuration store when Start is called.
Click to show internal directories.
Click to hide internal directories.