proto

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const Default_ProberConfig_SysvarsEnvVar string = "SYSVARS"
View Source
const Default_ProberConfig_SysvarsIntervalMsec int32 = 10000

Variables

This section is empty.

Functions

This section is empty.

Types

type ProberConfig

type ProberConfig struct {
	// Probes to run.
	Probe []*proto1.ProbeDef `protobuf:"bytes,1,rep,name=probe" json:"probe,omitempty"`
	// Surfacers are used to export probe results for further processing.
	// If no surfacer is configured, a prometheus and a file surfacer are
	// initialized:
	//  - Prometheus makes probe results available at http://<host>:9313/metrics.
	//  - File surfacer writes results to stdout.
	//
	// You can disable default surfacers (in case you want no surfacer at all), by
	// adding the following to your config:
	//   surfacer {}
	Surfacer []*proto2.SurfacerDef `protobuf:"bytes,2,rep,name=surfacer" json:"surfacer,omitempty"`
	// Servers to run inside cloudprober. These servers can serve as targets for
	// other probes.
	Server []*proto3.ServerDef `protobuf:"bytes,3,rep,name=server" json:"server,omitempty"`
	// Resource discovery server
	RdsServer *proto4.ServerConf `protobuf:"bytes,95,opt,name=rds_server,json=rdsServer" json:"rds_server,omitempty"`
	// Port for the default HTTP server. This port is also used for prometheus
	// exporter (URL /metrics). Default port is 9313. If not specified in the
	// config, default port can be overridden by the environment variable
	// CLOUDPROBER_PORT.
	Port *int32 `protobuf:"varint,96,opt,name=port" json:"port,omitempty"`
	// How often to export system variables. To learn more about system variables:
	// http://godoc.org/github.com/google/cloudprober/sysvars.
	SysvarsIntervalMsec *int32 `protobuf:"varint,97,opt,name=sysvars_interval_msec,json=sysvarsIntervalMsec,def=10000" json:"sysvars_interval_msec,omitempty"`
	// Variables specified in this environment variable are exported as it is.
	// This is specifically useful to export information about system environment,
	// for example, docker image tag/digest-id, OS version etc. See
	// tools/cloudprober_startup.sh in the cloudprober directory for an example on
	// how to use these variables.
	SysvarsEnvVar *string `protobuf:"bytes,98,opt,name=sysvars_env_var,json=sysvarsEnvVar,def=SYSVARS" json:"sysvars_env_var,omitempty"`
	// Options for RTC reporter. RTC reporter reports information about the
	// current instance to a Runtime Config (RTC). This is useful if you want your
	// instance to be dynamically discoverable through RTC targets. This is
	// disabled by default.
	RtcReportOptions *proto5.RtcReportOptions `protobuf:"bytes,99,opt,name=rtc_report_options,json=rtcReportOptions" json:"rtc_report_options,omitempty"`
	// Global targets options. Per-probe options are specified within the probe
	// stanza.
	GlobalTargetsOptions *proto6.GlobalTargetsOptions `protobuf:"bytes,100,opt,name=global_targets_options,json=globalTargetsOptions" json:"global_targets_options,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                     `json:"-"`
	XXX_unrecognized     []byte                       `json:"-"`
	XXX_sizecache        int32                        `json:"-"`
}

func (*ProberConfig) Descriptor

func (*ProberConfig) Descriptor() ([]byte, []int)

func (*ProberConfig) GetGlobalTargetsOptions

func (m *ProberConfig) GetGlobalTargetsOptions() *proto6.GlobalTargetsOptions

func (*ProberConfig) GetPort

func (m *ProberConfig) GetPort() int32

func (*ProberConfig) GetProbe

func (m *ProberConfig) GetProbe() []*proto1.ProbeDef

func (*ProberConfig) GetRdsServer

func (m *ProberConfig) GetRdsServer() *proto4.ServerConf

func (*ProberConfig) GetRtcReportOptions

func (m *ProberConfig) GetRtcReportOptions() *proto5.RtcReportOptions

func (*ProberConfig) GetServer

func (m *ProberConfig) GetServer() []*proto3.ServerDef

func (*ProberConfig) GetSurfacer

func (m *ProberConfig) GetSurfacer() []*proto2.SurfacerDef

func (*ProberConfig) GetSysvarsEnvVar

func (m *ProberConfig) GetSysvarsEnvVar() string

func (*ProberConfig) GetSysvarsIntervalMsec

func (m *ProberConfig) GetSysvarsIntervalMsec() int32

func (*ProberConfig) ProtoMessage

func (*ProberConfig) ProtoMessage()

func (*ProberConfig) Reset

func (m *ProberConfig) Reset()

func (*ProberConfig) String

func (m *ProberConfig) String() string

func (*ProberConfig) XXX_DiscardUnknown

func (m *ProberConfig) XXX_DiscardUnknown()

func (*ProberConfig) XXX_Marshal

func (m *ProberConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ProberConfig) XXX_Merge

func (dst *ProberConfig) XXX_Merge(src proto.Message)

func (*ProberConfig) XXX_Size

func (m *ProberConfig) XXX_Size() int

func (*ProberConfig) XXX_Unmarshal

func (m *ProberConfig) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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