mads

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MonitoringAssignmentServerConfig

type MonitoringAssignmentServerConfig struct {
	// GrpcPort is the port of the gRPC server that serves Monitoring Assignment Discovery Service (MADS).
	//
	// Deprecated: GrpcPort has been replaced with Port to multiplex both HTTP and gRPC
	GrpcPort uint32 `yaml:"grpcPort" envconfig:"kuma_monitoring_assignment_server_grpc_port"`
	// Port of the server that serves Monitoring Assignment Discovery Service (MADS)
	// over both grpc and http.
	Port uint32 `yaml:"port" envconfig:"kuma_monitoring_assignment_server_port"`
	// The default timeout for a single fetch-based discovery request, if not specified.
	DefaultFetchTimeout time.Duration `yaml:"defaultFetchTimeout" envconfig:"kuma_monitoring_assignment_server_default_fetch_timeout"`
	// Which observability apiVersions to serve
	ApiVersions []string `yaml:"apiVersions" envconfig:"kuma_monitoring_assignment_server_api_versions"`
	// Interval for re-generating monitoring assignments for clients connected to the Control Plane.
	AssignmentRefreshInterval time.Duration `yaml:"assignmentRefreshInterval" envconfig:"kuma_monitoring_assignment_server_assignment_refresh_interval"`
}

Monitoring Assignment Discovery Service (MADS) server configuration.

func DefaultMonitoringAssignmentServerConfig

func DefaultMonitoringAssignmentServerConfig() *MonitoringAssignmentServerConfig

func (*MonitoringAssignmentServerConfig) Sanitize

func (c *MonitoringAssignmentServerConfig) Sanitize()

func (*MonitoringAssignmentServerConfig) Validate

func (c *MonitoringAssignmentServerConfig) Validate() (errs error)

func (*MonitoringAssignmentServerConfig) VersionIsEnabled

func (c *MonitoringAssignmentServerConfig) VersionIsEnabled(apiVersion mads.ApiVersion) bool

VersionIsEnabled checks whether a MADS version has been enabled and should be served.

Jump to

Keyboard shortcuts

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