Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { IPAddress string Port string User string Password string TLS bool TLSCert string TLSKey string TLSCa string TLSInsecureSkipVerify bool ForceEncoding string DevName string ScrapeInterval time.Duration MaxLife time.Duration GnmiSubscriptionMode gnmi.SubscriptionMode GnmiUpdatesOnly bool OverSampling int64 }
type GnmiClient ¶
type GnmiClient struct {
// contains filtered or unexported fields
}
GnmiClient The gNMI client object
func (*GnmiClient) Close ¶
func (c *GnmiClient) Close()
Close closes the GnmiClient instance. If the shutdown function is not nil, it is called to gracefully terminate the underlying client.
func (*GnmiClient) GetMetrics ¶
GetMetrics implements the exporter GMetricSource interface It is called by the exporter, and it sends the current reading of counters and gauges
func (*GnmiClient) RegisterPlugin ¶
func (c *GnmiClient) RegisterPlugin(name string, plug plugin) error
RegisterPlugin registers a plugin instance into the GnmiClient.
func (*GnmiClient) Start ¶
func (c *GnmiClient) Start() error
Start starts the goRoutine that take care of GNMI communication with the device It is non-blocking
Click to show internal directories.
Click to hide internal directories.