gnmi

package
v0.0.0-...-f15d33a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory() exporter.Factory

NewFactory returns a new factory for the gnmipath gnmipath.

Types

type Config

type Config struct {
	// Addr is  the listen address of the gNMI server.
	Addr string `mapstructure:"addr"`

	// CertFile is the certificate to use for TLS.
	CertFile string `mapstructure:"cert_file"`

	// KeyFile is the key to use for TLS.
	KeyFile string `mapstructure:"key_file"`

	// TargetName is the target name of this gNMI server.
	TargetName string `mapstructure:"target_name"`

	// BufferSize is the buffer depth to use for internal buffering.
	BufferSize int `mapstructure:"buffer_size"`

	// Sep is the separator used in the metric name.
	Sep string `mapstructure:"sep"`
}

Config holds the configuration for this processor.

type GNMI

type GNMI struct {
	// contains filtered or unexported fields
}

func NewGNMIExporter

func NewGNMIExporter(logger *zap.Logger, cfg *Config) (*GNMI, error)

func (*GNMI) Start

func (g *GNMI) Start(_ context.Context, _ component.Host) error

func (*GNMI) Stop

func (g *GNMI) Stop(_ context.Context) error

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL