agent

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BuildInfo = promauto.NewGaugeVec(
		prometheus.GaugeOpts{
			Name: "doublezero_agent_build_info",
			Help: "Build information of the agent",
		},
		[]string{"version", "commit", "date"},
	)
	ErrorsBgpNeighbors = promauto.NewCounter(
		prometheus.CounterOpts{
			Name: "doublezero_agent_bgp_neighbors_errors_total",
			Help: "Number of errors encountered while retrieving BGP neighbors from the device",
		},
	)
	ErrorsGetConfig = promauto.NewCounter(
		prometheus.CounterOpts{
			Name: "doublezero_agent_get_config_errors_total",
			Help: "Number of errors encountered while getting config from the controller",
		},
	)
	ErrorsApplyConfig = promauto.NewCounter(
		prometheus.CounterOpts{
			Name: "doublezero_agent_apply_config_errors_total",
			Help: "Number of errors encountered while applying config to the device",
		},
	)
)

Functions

func GetConfigFromServer

func GetConfigFromServer(ctx context.Context, client pb.ControllerClient, localDevicePubkey string, neighborIpMap map[string][]string, controllerTimeoutInSeconds *float64) (config string, err error)

func GetDzClient

func GetDzClient(controllerAddressAndPort string) (pb.ControllerClient, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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