forked from google/cloudprober
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.pb.go
84 lines (70 loc) · 3.56 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
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: github.com/google/cloudprober/surfacers/prometheus/config.proto
/*
Package prometheus is a generated protocol buffer package.
It is generated from these files:
github.com/google/cloudprober/surfacers/prometheus/config.proto
It has these top-level messages:
SurfacerConf
*/
package prometheus
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// 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 SurfacerConf struct {
// How many metrics entries (EventMetrics) to buffer. Incoming metrics
// processing is paused while serving data to prometheus. This buffer is to
// make writes to prometheus surfacer non-blocking.
MetricsBufferSize *int64 `protobuf:"varint,1,opt,name=metrics_buffer_size,json=metricsBufferSize,def=10000" json:"metrics_buffer_size,omitempty"`
// URL that prometheus scrapes metrics from.
MetricsUrl *string `protobuf:"bytes,3,opt,name=metrics_url,json=metricsUrl,def=/metrics" json:"metrics_url,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *SurfacerConf) Reset() { *m = SurfacerConf{} }
func (m *SurfacerConf) String() string { return proto.CompactTextString(m) }
func (*SurfacerConf) ProtoMessage() {}
func (*SurfacerConf) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
const Default_SurfacerConf_MetricsBufferSize int64 = 10000
const Default_SurfacerConf_MetricsUrl string = "/metrics"
func (m *SurfacerConf) GetMetricsBufferSize() int64 {
if m != nil && m.MetricsBufferSize != nil {
return *m.MetricsBufferSize
}
return Default_SurfacerConf_MetricsBufferSize
}
func (m *SurfacerConf) GetMetricsUrl() string {
if m != nil && m.MetricsUrl != nil {
return *m.MetricsUrl
}
return Default_SurfacerConf_MetricsUrl
}
func init() {
proto.RegisterType((*SurfacerConf)(nil), "cloudprober.surfacer.prometheus.SurfacerConf")
}
func init() {
proto.RegisterFile("github.com/google/cloudprober/surfacers/prometheus/config.proto", fileDescriptor0)
}
var fileDescriptor0 = []byte{
// 181 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c, 0xcb, 0xb1, 0x6a, 0xc3, 0x30,
0x14, 0x85, 0x61, 0x8c, 0x29, 0xb4, 0x6a, 0x97, 0xba, 0x8b, 0xb7, 0x9a, 0x4e, 0xee, 0x22, 0xa9,
0x43, 0x17, 0x2f, 0x81, 0xe4, 0x0d, 0x6c, 0x32, 0x9b, 0x58, 0xb9, 0x92, 0x05, 0xb2, 0xaf, 0xb8,
0x92, 0x16, 0x3f, 0x7d, 0x20, 0xc8, 0x24, 0xdb, 0xe1, 0xe7, 0x3b, 0xec, 0x60, 0x6c, 0x9c, 0xd3,
0xc4, 0x15, 0x2e, 0xc2, 0x20, 0x1a, 0x07, 0x42, 0x39, 0x4c, 0x57, 0x4f, 0x38, 0x01, 0x89, 0x90,
0x48, 0x5f, 0x14, 0x50, 0x10, 0x9e, 0x70, 0x81, 0x38, 0x43, 0x0a, 0x42, 0xe1, 0xaa, 0xad, 0xe1,
0x9e, 0x30, 0x62, 0xf5, 0xfd, 0xc4, 0xf9, 0xce, 0xf9, 0x43, 0xff, 0x78, 0xf6, 0x31, 0xe4, 0x7c,
0xc2, 0x55, 0x57, 0xff, 0xec, 0x6b, 0x81, 0x48, 0x56, 0x85, 0x71, 0x4a, 0x5a, 0x03, 0x8d, 0xc1,
0x6e, 0x50, 0x17, 0x4d, 0xd1, 0x96, 0xdd, 0xcb, 0x9f, 0x94, 0x52, 0xf6, 0x9f, 0x59, 0x1c, 0xef,
0x60, 0xb0, 0x1b, 0x54, 0xbf, 0xec, 0x7d, 0xbf, 0x25, 0x72, 0x75, 0xd9, 0x14, 0xed, 0x5b, 0xf7,
0x2a, 0x72, 0xeb, 0x59, 0x1e, 0x67, 0x72, 0xb7, 0x00, 0x00, 0x00, 0xff, 0xff, 0xbb, 0x05, 0x5f,
0x64, 0xd4, 0x00, 0x00, 0x00,
}