This repository has been archived by the owner on Nov 5, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 152
/
config.pb.go
211 lines (190 loc) · 9.28 KB
/
config.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: github.com/google/cloudprober/config/proto/config.proto
package proto
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import proto1 "github.com/google/cloudprober/probes/proto"
import proto3 "github.com/google/cloudprober/servers/proto"
import proto2 "github.com/google/cloudprober/surfacers/proto"
import proto6 "github.com/google/cloudprober/targets/proto"
import proto4 "github.com/google/cloudprober/targets/rds/server/proto"
import proto5 "github.com/google/cloudprober/targets/rtc/rtcreporter/proto"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
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"`
// Host for the default HTTP server. Default listens on all addresses. If not
// specified in the config, default port can be overridden by the environment
// variable CLOUDPROBER_HOST.
Host *string `protobuf:"bytes,101,opt,name=host" json:"host,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 (m *ProberConfig) Reset() { *m = ProberConfig{} }
func (m *ProberConfig) String() string { return proto.CompactTextString(m) }
func (*ProberConfig) ProtoMessage() {}
func (*ProberConfig) Descriptor() ([]byte, []int) {
return fileDescriptor_config_3262c8776d939396, []int{0}
}
func (m *ProberConfig) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ProberConfig.Unmarshal(m, b)
}
func (m *ProberConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ProberConfig.Marshal(b, m, deterministic)
}
func (dst *ProberConfig) XXX_Merge(src proto.Message) {
xxx_messageInfo_ProberConfig.Merge(dst, src)
}
func (m *ProberConfig) XXX_Size() int {
return xxx_messageInfo_ProberConfig.Size(m)
}
func (m *ProberConfig) XXX_DiscardUnknown() {
xxx_messageInfo_ProberConfig.DiscardUnknown(m)
}
var xxx_messageInfo_ProberConfig proto.InternalMessageInfo
const Default_ProberConfig_SysvarsIntervalMsec int32 = 10000
const Default_ProberConfig_SysvarsEnvVar string = "SYSVARS"
func (m *ProberConfig) GetProbe() []*proto1.ProbeDef {
if m != nil {
return m.Probe
}
return nil
}
func (m *ProberConfig) GetSurfacer() []*proto2.SurfacerDef {
if m != nil {
return m.Surfacer
}
return nil
}
func (m *ProberConfig) GetServer() []*proto3.ServerDef {
if m != nil {
return m.Server
}
return nil
}
func (m *ProberConfig) GetRdsServer() *proto4.ServerConf {
if m != nil {
return m.RdsServer
}
return nil
}
func (m *ProberConfig) GetPort() int32 {
if m != nil && m.Port != nil {
return *m.Port
}
return 0
}
func (m *ProberConfig) GetHost() string {
if m != nil && m.Host != nil {
return *m.Host
}
return ""
}
func (m *ProberConfig) GetSysvarsIntervalMsec() int32 {
if m != nil && m.SysvarsIntervalMsec != nil {
return *m.SysvarsIntervalMsec
}
return Default_ProberConfig_SysvarsIntervalMsec
}
func (m *ProberConfig) GetSysvarsEnvVar() string {
if m != nil && m.SysvarsEnvVar != nil {
return *m.SysvarsEnvVar
}
return Default_ProberConfig_SysvarsEnvVar
}
func (m *ProberConfig) GetRtcReportOptions() *proto5.RtcReportOptions {
if m != nil {
return m.RtcReportOptions
}
return nil
}
func (m *ProberConfig) GetGlobalTargetsOptions() *proto6.GlobalTargetsOptions {
if m != nil {
return m.GlobalTargetsOptions
}
return nil
}
func init() {
proto.RegisterType((*ProberConfig)(nil), "cloudprober.ProberConfig")
}
func init() {
proto.RegisterFile("github.com/google/cloudprober/config/proto/config.proto", fileDescriptor_config_3262c8776d939396)
}
var fileDescriptor_config_3262c8776d939396 = []byte{
// 433 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x91, 0x4d, 0x6f, 0xd4, 0x30,
0x10, 0x86, 0xb5, 0xb4, 0x0b, 0xd4, 0x0b, 0x02, 0x99, 0x0f, 0x59, 0x15, 0x42, 0x01, 0x2e, 0xe1,
0x92, 0xa4, 0x7b, 0x00, 0xba, 0x12, 0x07, 0x28, 0x08, 0x71, 0xa8, 0x40, 0x0e, 0xaa, 0xc4, 0xc9,
0x38, 0x8e, 0x37, 0x8d, 0x94, 0xc6, 0xd1, 0xd8, 0x1b, 0x89, 0xdf, 0xc9, 0x1f, 0x42, 0xfe, 0xc8,
0x2a, 0x8b, 0x42, 0xbb, 0x87, 0xc8, 0x33, 0xe3, 0x79, 0xde, 0x37, 0xe3, 0x41, 0x6f, 0xab, 0xda,
0x5c, 0x6e, 0x8a, 0x44, 0xa8, 0xab, 0xb4, 0x52, 0xaa, 0x6a, 0x64, 0x2a, 0x1a, 0xb5, 0x29, 0x3b,
0x50, 0x85, 0x84, 0x54, 0xa8, 0x76, 0x5d, 0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