Browse code

vendor: bump prometheus/client_model v0.1.0

full diff: https://github.com/prometheus/client_model/compare/6f3806018612930941127f2a7c6c453ba2c527d2...v0.1.0

- prometheus/client_model#22 add `go_package`, regenerate Go binding file
- prometheus/client_model#31 Support Go Modules
- prometheus/client_model#38 Remove all languages but Go and add a deprecation note

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Sebastiaan van Stijn authored on 2020/01/09 08:59:12
Showing 4 changed files
... ...
@@ -145,7 +145,7 @@ code.cloudfoundry.org/clock                         02e53af36e6c978af692887ed449
145 145
 # prometheus
146 146
 github.com/prometheus/client_golang                 c5b7fccd204277076155f10851dad72b76a49317 # v0.8.0
147 147
 github.com/beorn7/perks                             37c8de3658fcb183f997c4e13e8337516ab753e6 # v1.0.1
148
-github.com/prometheus/client_model                  6f3806018612930941127f2a7c6c453ba2c527d2
148
+github.com/prometheus/client_model                  d1d2010b5beead3fa1c5f271a5cf626e40b3ad6e # v0.1.0
149 149
 github.com/prometheus/common                        7600349dcfe1abd18d72d3a1770870d9800a7801
150 150
 github.com/prometheus/procfs                        7d6f385de8bea29190f15ba9931442a0eaef9af7
151 151
 github.com/matttproud/golang_protobuf_extensions    c12348ce28de40eed0136aa2b644d0ee0650e56c # v1.0.1
... ...
@@ -1,26 +1,34 @@
1
-# Background
2
-Under most circumstances, manually downloading this repository should never
3
-be required.
1
+# Deprecation note
4 2
 
5
-# Prerequisites
6
-# Base
7
-* [Google Protocol Buffers](https://developers.google.com/protocol-buffers)
3
+This repository used to contain the [protocol
4
+buffer](https://developers.google.com/protocol-buffers) code that defined both
5
+the data model and the exposition format of Prometheus metrics.
8 6
 
9
-## Java
10
-* [Apache Maven](http://maven.apache.org)
11
-* [Prometheus Maven Repository](https://github.com/prometheus/io.prometheus-maven-repository) checked out into ../io.prometheus-maven-repository
7
+Starting with v2.0.0, the [Prometheus
8
+server](https://github.com/prometheus/prometheus) does not ingest the
9
+protobuf-based exposition format anymore. Currently, all but one of the
10
+[official instrumentation
11
+libraries](https://prometheus.io/docs/instrumenting/clientlibs/) do not expose
12
+the protobuf-based exposition format. The [Go instrumentation
13
+library](https://github.com/prometheus/client_golang), however, has been built
14
+around the protobuf-based data model. As a byproduct thereof, it is still able
15
+to expose the protobuf-based exposition format. The Go instrumentation library
16
+is the only remaining repository within the [Prometheus GitHub
17
+org](https://github.com/prometheus) directly using the prometheus/client_model
18
+repository.
12 19
 
13
-## Go
14
-*  [Go](http://golang.org)
15
-*  [goprotobuf](https://code.google.com/p/goprotobuf)
20
+Therefore, formerly existing support for languages other than Go (namely C++,
21
+Java, Python, Ruby) has been removed from this repository. If you are a 3rd
22
+party user of those languages, you can go back to [commit
23
+14fe0d1](https://github.com/prometheus/client_model/commit/14fe0d1b01d4d5fc031dd4bec1823bd3ebbe8016)
24
+to keep using the old code, or you can consume
25
+[`metrics.proto`](https://github.com/prometheus/client_model/blob/master/metrics.proto)
26
+directly with your own protobuf tooling. Note, however, that changes of
27
+`metrics.proto` after [commit
28
+14fe0d1](https://github.com/prometheus/client_model/commit/14fe0d1b01d4d5fc031dd4bec1823bd3ebbe8016)
29
+are solely informed by requirements of the Go instrumentation library and will
30
+not take into account any requirements of other languages or stability concerns
31
+for the protobuf-based exposition format.
16 32
 
17
-## Ruby
18
-*  [Ruby](https://www.ruby-lang.org)
19
-*  [bundler](https://rubygems.org/gems/bundler)
20
-
21
-# Building
22
-    $ make
23
-
24
-# Getting Started
25
-  * The Go source code is periodically indexed: [Go Protocol Buffer Model](http://godoc.org/github.com/prometheus/client_model/go).
26
-  * All of the core developers are accessible via the [Prometheus Developers Mailinglist](https://groups.google.com/forum/?fromgroups#!forum/prometheus-developers).
33
+Check out the [OpenMetrics project](https://openmetrics.io/) for the future of
34
+the data model and exposition format used by Prometheus and others.
27 35
new file mode 100644
... ...
@@ -0,0 +1,8 @@
0
+module github.com/prometheus/client_model
1
+
2
+go 1.9
3
+
4
+require (
5
+	github.com/golang/protobuf v1.2.0
6
+	golang.org/x/sync v0.0.0-20181108010431-42b317875d0f // indirect
7
+)
... ...
@@ -1,34 +1,23 @@
1
-// Code generated by protoc-gen-go.
1
+// Code generated by protoc-gen-go. DO NOT EDIT.
2 2
 // source: metrics.proto
3
-// DO NOT EDIT!
4
-
5
-/*
6
-Package io_prometheus_client is a generated protocol buffer package.
7
-
8
-It is generated from these files:
9
-	metrics.proto
10
-
11
-It has these top-level messages:
12
-	LabelPair
13
-	Gauge
14
-	Counter
15
-	Quantile
16
-	Summary
17
-	Untyped
18
-	Histogram
19
-	Bucket
20
-	Metric
21
-	MetricFamily
22
-*/
23
-package io_prometheus_client
3
+
4
+package io_prometheus_client // import "github.com/prometheus/client_model/go"
24 5
 
25 6
 import proto "github.com/golang/protobuf/proto"
7
+import fmt "fmt"
26 8
 import math "math"
27 9
 
28 10
 // Reference imports to suppress errors if they are not otherwise used.
29 11
 var _ = proto.Marshal
12
+var _ = fmt.Errorf
30 13
 var _ = math.Inf
31 14
 
15
+// This is a compile-time assertion to ensure that this generated file
16
+// is compatible with the proto package it is being compiled against.
17
+// A compilation error at this line likely means your copy of the
18
+// proto package needs to be updated.
19
+const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
20
+
32 21
 type MetricType int32
33 22
 
34 23
 const (
... ...
@@ -70,16 +59,41 @@ func (x *MetricType) UnmarshalJSON(data []byte) error {
70 70
 	*x = MetricType(value)
71 71
 	return nil
72 72
 }
73
+func (MetricType) EnumDescriptor() ([]byte, []int) {
74
+	return fileDescriptor_metrics_c97c9a2b9560cb8f, []int{0}
75
+}
73 76
 
74 77
 type LabelPair struct {
75
-	Name             *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
76
-	Value            *string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
77
-	XXX_unrecognized []byte  `json:"-"`
78
+	Name                 *string  `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
79
+	Value                *string  `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
80
+	XXX_NoUnkeyedLiteral struct{} `json:"-"`
81
+	XXX_unrecognized     []byte   `json:"-"`
82
+	XXX_sizecache        int32    `json:"-"`
78 83
 }
79 84
 
80 85
 func (m *LabelPair) Reset()         { *m = LabelPair{} }
81 86
 func (m *LabelPair) String() string { return proto.CompactTextString(m) }
82 87
 func (*LabelPair) ProtoMessage()    {}
88
+func (*LabelPair) Descriptor() ([]byte, []int) {
89
+	return fileDescriptor_metrics_c97c9a2b9560cb8f, []int{0}
90
+}
91
+func (m *LabelPair) XXX_Unmarshal(b []byte) error {
92
+	return xxx_messageInfo_LabelPair.Unmarshal(m, b)
93
+}
94
+func (m *LabelPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
95
+	return xxx_messageInfo_LabelPair.Marshal(b, m, deterministic)
96
+}
97
+func (dst *LabelPair) XXX_Merge(src proto.Message) {
98
+	xxx_messageInfo_LabelPair.Merge(dst, src)
99
+}
100
+func (m *LabelPair) XXX_Size() int {
101
+	return xxx_messageInfo_LabelPair.Size(m)
102
+}
103
+func (m *LabelPair) XXX_DiscardUnknown() {
104
+	xxx_messageInfo_LabelPair.DiscardUnknown(m)
105
+}
106
+
107
+var xxx_messageInfo_LabelPair proto.InternalMessageInfo
83 108
 
84 109
 func (m *LabelPair) GetName() string {
85 110
 	if m != nil && m.Name != nil {
... ...
@@ -96,13 +110,35 @@ func (m *LabelPair) GetValue() string {
96 96
 }
97 97
 
98 98
 type Gauge struct {
99
-	Value            *float64 `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"`
100
-	XXX_unrecognized []byte   `json:"-"`
99
+	Value                *float64 `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"`
100
+	XXX_NoUnkeyedLiteral struct{} `json:"-"`
101
+	XXX_unrecognized     []byte   `json:"-"`
102
+	XXX_sizecache        int32    `json:"-"`
101 103
 }
102 104
 
103 105
 func (m *Gauge) Reset()         { *m = Gauge{} }
104 106
 func (m *Gauge) String() string { return proto.CompactTextString(m) }
105 107
 func (*Gauge) ProtoMessage()    {}
108
+func (*Gauge) Descriptor() ([]byte, []int) {
109
+	return fileDescriptor_metrics_c97c9a2b9560cb8f, []int{1}
110
+}
111
+func (m *Gauge) XXX_Unmarshal(b []byte) error {
112
+	return xxx_messageInfo_Gauge.Unmarshal(m, b)
113
+}
114
+func (m *Gauge) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
115
+	return xxx_messageInfo_Gauge.Marshal(b, m, deterministic)
116
+}
117
+func (dst *Gauge) XXX_Merge(src proto.Message) {
118
+	xxx_messageInfo_Gauge.Merge(dst, src)
119
+}
120
+func (m *Gauge) XXX_Size() int {
121
+	return xxx_messageInfo_Gauge.Size(m)
122
+}
123
+func (m *Gauge) XXX_DiscardUnknown() {
124
+	xxx_messageInfo_Gauge.DiscardUnknown(m)
125
+}
126
+
127
+var xxx_messageInfo_Gauge proto.InternalMessageInfo
106 128
 
107 129
 func (m *Gauge) GetValue() float64 {
108 130
 	if m != nil && m.Value != nil {
... ...
@@ -112,13 +148,35 @@ func (m *Gauge) GetValue() float64 {
112 112
 }
113 113
 
114 114
 type Counter struct {
115
-	Value            *float64 `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"`
116
-	XXX_unrecognized []byte   `json:"-"`
115
+	Value                *float64 `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"`
116
+	XXX_NoUnkeyedLiteral struct{} `json:"-"`
117
+	XXX_unrecognized     []byte   `json:"-"`
118
+	XXX_sizecache        int32    `json:"-"`
117 119
 }
118 120
 
119 121
 func (m *Counter) Reset()         { *m = Counter{} }
120 122
 func (m *Counter) String() string { return proto.CompactTextString(m) }
121 123
 func (*Counter) ProtoMessage()    {}
124
+func (*Counter) Descriptor() ([]byte, []int) {
125
+	return fileDescriptor_metrics_c97c9a2b9560cb8f, []int{2}
126
+}
127
+func (m *Counter) XXX_Unmarshal(b []byte) error {
128
+	return xxx_messageInfo_Counter.Unmarshal(m, b)
129
+}
130
+func (m *Counter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
131
+	return xxx_messageInfo_Counter.Marshal(b, m, deterministic)
132
+}
133
+func (dst *Counter) XXX_Merge(src proto.Message) {
134
+	xxx_messageInfo_Counter.Merge(dst, src)
135
+}
136
+func (m *Counter) XXX_Size() int {
137
+	return xxx_messageInfo_Counter.Size(m)
138
+}
139
+func (m *Counter) XXX_DiscardUnknown() {
140
+	xxx_messageInfo_Counter.DiscardUnknown(m)
141
+}
142
+
143
+var xxx_messageInfo_Counter proto.InternalMessageInfo
122 144
 
123 145
 func (m *Counter) GetValue() float64 {
124 146
 	if m != nil && m.Value != nil {
... ...
@@ -128,14 +186,36 @@ func (m *Counter) GetValue() float64 {
128 128
 }
129 129
 
130 130
 type Quantile struct {
131
-	Quantile         *float64 `protobuf:"fixed64,1,opt,name=quantile" json:"quantile,omitempty"`
132
-	Value            *float64 `protobuf:"fixed64,2,opt,name=value" json:"value,omitempty"`
133
-	XXX_unrecognized []byte   `json:"-"`
131
+	Quantile             *float64 `protobuf:"fixed64,1,opt,name=quantile" json:"quantile,omitempty"`
132
+	Value                *float64 `protobuf:"fixed64,2,opt,name=value" json:"value,omitempty"`
133
+	XXX_NoUnkeyedLiteral struct{} `json:"-"`
134
+	XXX_unrecognized     []byte   `json:"-"`
135
+	XXX_sizecache        int32    `json:"-"`
134 136
 }
135 137
 
136 138
 func (m *Quantile) Reset()         { *m = Quantile{} }
137 139
 func (m *Quantile) String() string { return proto.CompactTextString(m) }
138 140
 func (*Quantile) ProtoMessage()    {}
141
+func (*Quantile) Descriptor() ([]byte, []int) {
142
+	return fileDescriptor_metrics_c97c9a2b9560cb8f, []int{3}
143
+}
144
+func (m *Quantile) XXX_Unmarshal(b []byte) error {
145
+	return xxx_messageInfo_Quantile.Unmarshal(m, b)
146
+}
147
+func (m *Quantile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
148
+	return xxx_messageInfo_Quantile.Marshal(b, m, deterministic)
149
+}
150
+func (dst *Quantile) XXX_Merge(src proto.Message) {
151
+	xxx_messageInfo_Quantile.Merge(dst, src)
152
+}
153
+func (m *Quantile) XXX_Size() int {
154
+	return xxx_messageInfo_Quantile.Size(m)
155
+}
156
+func (m *Quantile) XXX_DiscardUnknown() {
157
+	xxx_messageInfo_Quantile.DiscardUnknown(m)
158
+}
159
+
160
+var xxx_messageInfo_Quantile proto.InternalMessageInfo
139 161
 
140 162
 func (m *Quantile) GetQuantile() float64 {
141 163
 	if m != nil && m.Quantile != nil {
... ...
@@ -152,15 +232,37 @@ func (m *Quantile) GetValue() float64 {
152 152
 }
153 153
 
154 154
 type Summary struct {
155
-	SampleCount      *uint64     `protobuf:"varint,1,opt,name=sample_count" json:"sample_count,omitempty"`
156
-	SampleSum        *float64    `protobuf:"fixed64,2,opt,name=sample_sum" json:"sample_sum,omitempty"`
157
-	Quantile         []*Quantile `protobuf:"bytes,3,rep,name=quantile" json:"quantile,omitempty"`
158
-	XXX_unrecognized []byte      `json:"-"`
155
+	SampleCount          *uint64     `protobuf:"varint,1,opt,name=sample_count,json=sampleCount" json:"sample_count,omitempty"`
156
+	SampleSum            *float64    `protobuf:"fixed64,2,opt,name=sample_sum,json=sampleSum" json:"sample_sum,omitempty"`
157
+	Quantile             []*Quantile `protobuf:"bytes,3,rep,name=quantile" json:"quantile,omitempty"`
158
+	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
159
+	XXX_unrecognized     []byte      `json:"-"`
160
+	XXX_sizecache        int32       `json:"-"`
159 161
 }
160 162
 
161 163
 func (m *Summary) Reset()         { *m = Summary{} }
162 164
 func (m *Summary) String() string { return proto.CompactTextString(m) }
163 165
 func (*Summary) ProtoMessage()    {}
166
+func (*Summary) Descriptor() ([]byte, []int) {
167
+	return fileDescriptor_metrics_c97c9a2b9560cb8f, []int{4}
168
+}
169
+func (m *Summary) XXX_Unmarshal(b []byte) error {
170
+	return xxx_messageInfo_Summary.Unmarshal(m, b)
171
+}
172
+func (m *Summary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
173
+	return xxx_messageInfo_Summary.Marshal(b, m, deterministic)
174
+}
175
+func (dst *Summary) XXX_Merge(src proto.Message) {
176
+	xxx_messageInfo_Summary.Merge(dst, src)
177
+}
178
+func (m *Summary) XXX_Size() int {
179
+	return xxx_messageInfo_Summary.Size(m)
180
+}
181
+func (m *Summary) XXX_DiscardUnknown() {
182
+	xxx_messageInfo_Summary.DiscardUnknown(m)
183
+}
184
+
185
+var xxx_messageInfo_Summary proto.InternalMessageInfo
164 186
 
165 187
 func (m *Summary) GetSampleCount() uint64 {
166 188
 	if m != nil && m.SampleCount != nil {
... ...
@@ -184,13 +286,35 @@ func (m *Summary) GetQuantile() []*Quantile {
184 184
 }
185 185
 
186 186
 type Untyped struct {
187
-	Value            *float64 `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"`
188
-	XXX_unrecognized []byte   `json:"-"`
187
+	Value                *float64 `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"`
188
+	XXX_NoUnkeyedLiteral struct{} `json:"-"`
189
+	XXX_unrecognized     []byte   `json:"-"`
190
+	XXX_sizecache        int32    `json:"-"`
189 191
 }
190 192
 
191 193
 func (m *Untyped) Reset()         { *m = Untyped{} }
192 194
 func (m *Untyped) String() string { return proto.CompactTextString(m) }
193 195
 func (*Untyped) ProtoMessage()    {}
196
+func (*Untyped) Descriptor() ([]byte, []int) {
197
+	return fileDescriptor_metrics_c97c9a2b9560cb8f, []int{5}
198
+}
199
+func (m *Untyped) XXX_Unmarshal(b []byte) error {
200
+	return xxx_messageInfo_Untyped.Unmarshal(m, b)
201
+}
202
+func (m *Untyped) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
203
+	return xxx_messageInfo_Untyped.Marshal(b, m, deterministic)
204
+}
205
+func (dst *Untyped) XXX_Merge(src proto.Message) {
206
+	xxx_messageInfo_Untyped.Merge(dst, src)
207
+}
208
+func (m *Untyped) XXX_Size() int {
209
+	return xxx_messageInfo_Untyped.Size(m)
210
+}
211
+func (m *Untyped) XXX_DiscardUnknown() {
212
+	xxx_messageInfo_Untyped.DiscardUnknown(m)
213
+}
214
+
215
+var xxx_messageInfo_Untyped proto.InternalMessageInfo
194 216
 
195 217
 func (m *Untyped) GetValue() float64 {
196 218
 	if m != nil && m.Value != nil {
... ...
@@ -200,15 +324,37 @@ func (m *Untyped) GetValue() float64 {
200 200
 }
201 201
 
202 202
 type Histogram struct {
203
-	SampleCount      *uint64   `protobuf:"varint,1,opt,name=sample_count" json:"sample_count,omitempty"`
204
-	SampleSum        *float64  `protobuf:"fixed64,2,opt,name=sample_sum" json:"sample_sum,omitempty"`
205
-	Bucket           []*Bucket `protobuf:"bytes,3,rep,name=bucket" json:"bucket,omitempty"`
206
-	XXX_unrecognized []byte    `json:"-"`
203
+	SampleCount          *uint64   `protobuf:"varint,1,opt,name=sample_count,json=sampleCount" json:"sample_count,omitempty"`
204
+	SampleSum            *float64  `protobuf:"fixed64,2,opt,name=sample_sum,json=sampleSum" json:"sample_sum,omitempty"`
205
+	Bucket               []*Bucket `protobuf:"bytes,3,rep,name=bucket" json:"bucket,omitempty"`
206
+	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
207
+	XXX_unrecognized     []byte    `json:"-"`
208
+	XXX_sizecache        int32     `json:"-"`
207 209
 }
208 210
 
209 211
 func (m *Histogram) Reset()         { *m = Histogram{} }
210 212
 func (m *Histogram) String() string { return proto.CompactTextString(m) }
211 213
 func (*Histogram) ProtoMessage()    {}
214
+func (*Histogram) Descriptor() ([]byte, []int) {
215
+	return fileDescriptor_metrics_c97c9a2b9560cb8f, []int{6}
216
+}
217
+func (m *Histogram) XXX_Unmarshal(b []byte) error {
218
+	return xxx_messageInfo_Histogram.Unmarshal(m, b)
219
+}
220
+func (m *Histogram) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
221
+	return xxx_messageInfo_Histogram.Marshal(b, m, deterministic)
222
+}
223
+func (dst *Histogram) XXX_Merge(src proto.Message) {
224
+	xxx_messageInfo_Histogram.Merge(dst, src)
225
+}
226
+func (m *Histogram) XXX_Size() int {
227
+	return xxx_messageInfo_Histogram.Size(m)
228
+}
229
+func (m *Histogram) XXX_DiscardUnknown() {
230
+	xxx_messageInfo_Histogram.DiscardUnknown(m)
231
+}
232
+
233
+var xxx_messageInfo_Histogram proto.InternalMessageInfo
212 234
 
213 235
 func (m *Histogram) GetSampleCount() uint64 {
214 236
 	if m != nil && m.SampleCount != nil {
... ...
@@ -232,14 +378,36 @@ func (m *Histogram) GetBucket() []*Bucket {
232 232
 }
233 233
 
234 234
 type Bucket struct {
235
-	CumulativeCount  *uint64  `protobuf:"varint,1,opt,name=cumulative_count" json:"cumulative_count,omitempty"`
236
-	UpperBound       *float64 `protobuf:"fixed64,2,opt,name=upper_bound" json:"upper_bound,omitempty"`
237
-	XXX_unrecognized []byte   `json:"-"`
235
+	CumulativeCount      *uint64  `protobuf:"varint,1,opt,name=cumulative_count,json=cumulativeCount" json:"cumulative_count,omitempty"`
236
+	UpperBound           *float64 `protobuf:"fixed64,2,opt,name=upper_bound,json=upperBound" json:"upper_bound,omitempty"`
237
+	XXX_NoUnkeyedLiteral struct{} `json:"-"`
238
+	XXX_unrecognized     []byte   `json:"-"`
239
+	XXX_sizecache        int32    `json:"-"`
238 240
 }
239 241
 
240 242
 func (m *Bucket) Reset()         { *m = Bucket{} }
241 243
 func (m *Bucket) String() string { return proto.CompactTextString(m) }
242 244
 func (*Bucket) ProtoMessage()    {}
245
+func (*Bucket) Descriptor() ([]byte, []int) {
246
+	return fileDescriptor_metrics_c97c9a2b9560cb8f, []int{7}
247
+}
248
+func (m *Bucket) XXX_Unmarshal(b []byte) error {
249
+	return xxx_messageInfo_Bucket.Unmarshal(m, b)
250
+}
251
+func (m *Bucket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
252
+	return xxx_messageInfo_Bucket.Marshal(b, m, deterministic)
253
+}
254
+func (dst *Bucket) XXX_Merge(src proto.Message) {
255
+	xxx_messageInfo_Bucket.Merge(dst, src)
256
+}
257
+func (m *Bucket) XXX_Size() int {
258
+	return xxx_messageInfo_Bucket.Size(m)
259
+}
260
+func (m *Bucket) XXX_DiscardUnknown() {
261
+	xxx_messageInfo_Bucket.DiscardUnknown(m)
262
+}
263
+
264
+var xxx_messageInfo_Bucket proto.InternalMessageInfo
243 265
 
244 266
 func (m *Bucket) GetCumulativeCount() uint64 {
245 267
 	if m != nil && m.CumulativeCount != nil {
... ...
@@ -256,19 +424,41 @@ func (m *Bucket) GetUpperBound() float64 {
256 256
 }
257 257
 
258 258
 type Metric struct {
259
-	Label            []*LabelPair `protobuf:"bytes,1,rep,name=label" json:"label,omitempty"`
260
-	Gauge            *Gauge       `protobuf:"bytes,2,opt,name=gauge" json:"gauge,omitempty"`
261
-	Counter          *Counter     `protobuf:"bytes,3,opt,name=counter" json:"counter,omitempty"`
262
-	Summary          *Summary     `protobuf:"bytes,4,opt,name=summary" json:"summary,omitempty"`
263
-	Untyped          *Untyped     `protobuf:"bytes,5,opt,name=untyped" json:"untyped,omitempty"`
264
-	Histogram        *Histogram   `protobuf:"bytes,7,opt,name=histogram" json:"histogram,omitempty"`
265
-	TimestampMs      *int64       `protobuf:"varint,6,opt,name=timestamp_ms" json:"timestamp_ms,omitempty"`
266
-	XXX_unrecognized []byte       `json:"-"`
259
+	Label                []*LabelPair `protobuf:"bytes,1,rep,name=label" json:"label,omitempty"`
260
+	Gauge                *Gauge       `protobuf:"bytes,2,opt,name=gauge" json:"gauge,omitempty"`
261
+	Counter              *Counter     `protobuf:"bytes,3,opt,name=counter" json:"counter,omitempty"`
262
+	Summary              *Summary     `protobuf:"bytes,4,opt,name=summary" json:"summary,omitempty"`
263
+	Untyped              *Untyped     `protobuf:"bytes,5,opt,name=untyped" json:"untyped,omitempty"`
264
+	Histogram            *Histogram   `protobuf:"bytes,7,opt,name=histogram" json:"histogram,omitempty"`
265
+	TimestampMs          *int64       `protobuf:"varint,6,opt,name=timestamp_ms,json=timestampMs" json:"timestamp_ms,omitempty"`
266
+	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
267
+	XXX_unrecognized     []byte       `json:"-"`
268
+	XXX_sizecache        int32        `json:"-"`
267 269
 }
268 270
 
269 271
 func (m *Metric) Reset()         { *m = Metric{} }
270 272
 func (m *Metric) String() string { return proto.CompactTextString(m) }
271 273
 func (*Metric) ProtoMessage()    {}
274
+func (*Metric) Descriptor() ([]byte, []int) {
275
+	return fileDescriptor_metrics_c97c9a2b9560cb8f, []int{8}
276
+}
277
+func (m *Metric) XXX_Unmarshal(b []byte) error {
278
+	return xxx_messageInfo_Metric.Unmarshal(m, b)
279
+}
280
+func (m *Metric) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
281
+	return xxx_messageInfo_Metric.Marshal(b, m, deterministic)
282
+}
283
+func (dst *Metric) XXX_Merge(src proto.Message) {
284
+	xxx_messageInfo_Metric.Merge(dst, src)
285
+}
286
+func (m *Metric) XXX_Size() int {
287
+	return xxx_messageInfo_Metric.Size(m)
288
+}
289
+func (m *Metric) XXX_DiscardUnknown() {
290
+	xxx_messageInfo_Metric.DiscardUnknown(m)
291
+}
292
+
293
+var xxx_messageInfo_Metric proto.InternalMessageInfo
272 294
 
273 295
 func (m *Metric) GetLabel() []*LabelPair {
274 296
 	if m != nil {
... ...
@@ -320,16 +510,38 @@ func (m *Metric) GetTimestampMs() int64 {
320 320
 }
321 321
 
322 322
 type MetricFamily struct {
323
-	Name             *string     `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
324
-	Help             *string     `protobuf:"bytes,2,opt,name=help" json:"help,omitempty"`
325
-	Type             *MetricType `protobuf:"varint,3,opt,name=type,enum=io.prometheus.client.MetricType" json:"type,omitempty"`
326
-	Metric           []*Metric   `protobuf:"bytes,4,rep,name=metric" json:"metric,omitempty"`
327
-	XXX_unrecognized []byte      `json:"-"`
323
+	Name                 *string     `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
324
+	Help                 *string     `protobuf:"bytes,2,opt,name=help" json:"help,omitempty"`
325
+	Type                 *MetricType `protobuf:"varint,3,opt,name=type,enum=io.prometheus.client.MetricType" json:"type,omitempty"`
326
+	Metric               []*Metric   `protobuf:"bytes,4,rep,name=metric" json:"metric,omitempty"`
327
+	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
328
+	XXX_unrecognized     []byte      `json:"-"`
329
+	XXX_sizecache        int32       `json:"-"`
328 330
 }
329 331
 
330 332
 func (m *MetricFamily) Reset()         { *m = MetricFamily{} }
331 333
 func (m *MetricFamily) String() string { return proto.CompactTextString(m) }
332 334
 func (*MetricFamily) ProtoMessage()    {}
335
+func (*MetricFamily) Descriptor() ([]byte, []int) {
336
+	return fileDescriptor_metrics_c97c9a2b9560cb8f, []int{9}
337
+}
338
+func (m *MetricFamily) XXX_Unmarshal(b []byte) error {
339
+	return xxx_messageInfo_MetricFamily.Unmarshal(m, b)
340
+}
341
+func (m *MetricFamily) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
342
+	return xxx_messageInfo_MetricFamily.Marshal(b, m, deterministic)
343
+}
344
+func (dst *MetricFamily) XXX_Merge(src proto.Message) {
345
+	xxx_messageInfo_MetricFamily.Merge(dst, src)
346
+}
347
+func (m *MetricFamily) XXX_Size() int {
348
+	return xxx_messageInfo_MetricFamily.Size(m)
349
+}
350
+func (m *MetricFamily) XXX_DiscardUnknown() {
351
+	xxx_messageInfo_MetricFamily.DiscardUnknown(m)
352
+}
353
+
354
+var xxx_messageInfo_MetricFamily proto.InternalMessageInfo
333 355
 
334 356
 func (m *MetricFamily) GetName() string {
335 357
 	if m != nil && m.Name != nil {
... ...
@@ -360,5 +572,58 @@ func (m *MetricFamily) GetMetric() []*Metric {
360 360
 }
361 361
 
362 362
 func init() {
363
+	proto.RegisterType((*LabelPair)(nil), "io.prometheus.client.LabelPair")
364
+	proto.RegisterType((*Gauge)(nil), "io.prometheus.client.Gauge")
365
+	proto.RegisterType((*Counter)(nil), "io.prometheus.client.Counter")
366
+	proto.RegisterType((*Quantile)(nil), "io.prometheus.client.Quantile")
367
+	proto.RegisterType((*Summary)(nil), "io.prometheus.client.Summary")
368
+	proto.RegisterType((*Untyped)(nil), "io.prometheus.client.Untyped")
369
+	proto.RegisterType((*Histogram)(nil), "io.prometheus.client.Histogram")
370
+	proto.RegisterType((*Bucket)(nil), "io.prometheus.client.Bucket")
371
+	proto.RegisterType((*Metric)(nil), "io.prometheus.client.Metric")
372
+	proto.RegisterType((*MetricFamily)(nil), "io.prometheus.client.MetricFamily")
363 373
 	proto.RegisterEnum("io.prometheus.client.MetricType", MetricType_name, MetricType_value)
364 374
 }
375
+
376
+func init() { proto.RegisterFile("metrics.proto", fileDescriptor_metrics_c97c9a2b9560cb8f) }
377
+
378
+var fileDescriptor_metrics_c97c9a2b9560cb8f = []byte{
379
+	// 591 bytes of a gzipped FileDescriptorProto
380
+	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0x4f, 0x4f, 0xdb, 0x4e,
381
+	0x14, 0xfc, 0x99, 0xd8, 0x09, 0x7e, 0x86, 0x5f, 0xad, 0x15, 0x07, 0xab, 0x2d, 0x25, 0xcd, 0x89,
382
+	0xf6, 0x10, 0x54, 0x04, 0xaa, 0x44, 0xdb, 0x03, 0x50, 0x1a, 0x2a, 0xd5, 0x40, 0x37, 0xc9, 0x81,
383
+	0x5e, 0xac, 0x8d, 0x59, 0x25, 0x56, 0xbd, 0xb6, 0x6b, 0xef, 0x22, 0xe5, 0xdc, 0x43, 0xbf, 0x47,
384
+	0xbf, 0x68, 0xab, 0xfd, 0xe3, 0x18, 0x24, 0xc3, 0xa9, 0xb7, 0xb7, 0xf3, 0x66, 0xde, 0x8e, 0x77,
385
+	0xc7, 0x0b, 0x9b, 0x8c, 0xf2, 0x32, 0x89, 0xab, 0x61, 0x51, 0xe6, 0x3c, 0x47, 0x5b, 0x49, 0x2e,
386
+	0x2b, 0x46, 0xf9, 0x82, 0x8a, 0x6a, 0x18, 0xa7, 0x09, 0xcd, 0xf8, 0xe0, 0x10, 0xdc, 0x2f, 0x64,
387
+	0x46, 0xd3, 0x2b, 0x92, 0x94, 0x08, 0x81, 0x9d, 0x11, 0x46, 0x03, 0xab, 0x6f, 0xed, 0xba, 0x58,
388
+	0xd5, 0x68, 0x0b, 0x9c, 0x5b, 0x92, 0x0a, 0x1a, 0xac, 0x29, 0x50, 0x2f, 0x06, 0xdb, 0xe0, 0x8c,
389
+	0x88, 0x98, 0xdf, 0x69, 0x4b, 0x8d, 0x55, 0xb7, 0x77, 0xa0, 0x77, 0x9a, 0x8b, 0x8c, 0xd3, 0xf2,
390
+	0x01, 0xc2, 0x7b, 0x58, 0xff, 0x2a, 0x48, 0xc6, 0x93, 0x94, 0xa2, 0xa7, 0xb0, 0xfe, 0xc3, 0xd4,
391
+	0x86, 0xb4, 0x5a, 0xdf, 0xdf, 0x7d, 0xa5, 0xfe, 0x65, 0x41, 0x6f, 0x2c, 0x18, 0x23, 0xe5, 0x12,
392
+	0xbd, 0x84, 0x8d, 0x8a, 0xb0, 0x22, 0xa5, 0x51, 0x2c, 0x77, 0x54, 0x13, 0x6c, 0xec, 0x69, 0x4c,
393
+	0x99, 0x40, 0xdb, 0x00, 0x86, 0x52, 0x09, 0x66, 0x26, 0xb9, 0x1a, 0x19, 0x0b, 0x86, 0x8e, 0xee,
394
+	0xec, 0xdf, 0xe9, 0x77, 0x76, 0xbd, 0xfd, 0x17, 0xc3, 0xb6, 0xb3, 0x1a, 0xd6, 0x8e, 0x1b, 0x7f,
395
+	0xf2, 0x43, 0xa7, 0x19, 0x5f, 0x16, 0xf4, 0xe6, 0x81, 0x0f, 0xfd, 0x69, 0x81, 0x7b, 0x9e, 0x54,
396
+	0x3c, 0x9f, 0x97, 0x84, 0xfd, 0x03, 0xb3, 0x07, 0xd0, 0x9d, 0x89, 0xf8, 0x3b, 0xe5, 0xc6, 0xea,
397
+	0xf3, 0x76, 0xab, 0x27, 0x8a, 0x83, 0x0d, 0x77, 0x30, 0x81, 0xae, 0x46, 0xd0, 0x2b, 0xf0, 0x63,
398
+	0xc1, 0x44, 0x4a, 0x78, 0x72, 0x7b, 0xdf, 0xc5, 0x93, 0x06, 0xd7, 0x4e, 0x76, 0xc0, 0x13, 0x45,
399
+	0x41, 0xcb, 0x68, 0x96, 0x8b, 0xec, 0xc6, 0x58, 0x01, 0x05, 0x9d, 0x48, 0x64, 0xf0, 0x67, 0x0d,
400
+	0xba, 0xa1, 0xca, 0x18, 0x3a, 0x04, 0x27, 0x95, 0x31, 0x0a, 0x2c, 0xe5, 0x6a, 0xa7, 0xdd, 0xd5,
401
+	0x2a, 0x69, 0x58, 0xb3, 0xd1, 0x1b, 0x70, 0xe6, 0x32, 0x46, 0x6a, 0xb8, 0xb7, 0xff, 0xac, 0x5d,
402
+	0xa6, 0x92, 0x86, 0x35, 0x13, 0xbd, 0x85, 0x5e, 0xac, 0xa3, 0x15, 0x74, 0x94, 0x68, 0xbb, 0x5d,
403
+	0x64, 0xf2, 0x87, 0x6b, 0xb6, 0x14, 0x56, 0x3a, 0x33, 0x81, 0xfd, 0x98, 0xd0, 0x04, 0x0b, 0xd7,
404
+	0x6c, 0x29, 0x14, 0xfa, 0x8e, 0x03, 0xe7, 0x31, 0xa1, 0x09, 0x02, 0xae, 0xd9, 0xe8, 0x03, 0xb8,
405
+	0x8b, 0xfa, 0xea, 0x83, 0x9e, 0x92, 0x3e, 0x70, 0x30, 0xab, 0x84, 0xe0, 0x46, 0x21, 0xc3, 0xc2,
406
+	0x13, 0x46, 0x2b, 0x4e, 0x58, 0x11, 0xb1, 0x2a, 0xe8, 0xf6, 0xad, 0xdd, 0x0e, 0xf6, 0x56, 0x58,
407
+	0x58, 0x0d, 0x7e, 0x5b, 0xb0, 0xa1, 0x6f, 0xe0, 0x13, 0x61, 0x49, 0xba, 0x6c, 0xfd, 0x83, 0x11,
408
+	0xd8, 0x0b, 0x9a, 0x16, 0xe6, 0x07, 0x56, 0x35, 0x3a, 0x00, 0x5b, 0x7a, 0x54, 0x47, 0xf8, 0xff,
409
+	0x7e, 0xbf, 0xdd, 0x95, 0x9e, 0x3c, 0x59, 0x16, 0x14, 0x2b, 0xb6, 0x0c, 0x9f, 0x7e, 0x53, 0x02,
410
+	0xfb, 0xb1, 0xf0, 0x69, 0x1d, 0x36, 0xdc, 0xd7, 0x21, 0x40, 0x33, 0x09, 0x79, 0xd0, 0x3b, 0xbd,
411
+	0x9c, 0x5e, 0x4c, 0xce, 0xb0, 0xff, 0x1f, 0x72, 0xc1, 0x19, 0x1d, 0x4f, 0x47, 0x67, 0xbe, 0x25,
412
+	0xf1, 0xf1, 0x34, 0x0c, 0x8f, 0xf1, 0xb5, 0xbf, 0x26, 0x17, 0xd3, 0x8b, 0xc9, 0xf5, 0xd5, 0xd9,
413
+	0x47, 0xbf, 0x83, 0x36, 0xc1, 0x3d, 0xff, 0x3c, 0x9e, 0x5c, 0x8e, 0xf0, 0x71, 0xe8, 0xdb, 0x27,
414
+	0x18, 0x5a, 0x5f, 0xb2, 0x6f, 0x47, 0xf3, 0x84, 0x2f, 0xc4, 0x6c, 0x18, 0xe7, 0x6c, 0xaf, 0xe9,
415
+	0xee, 0xe9, 0x6e, 0xc4, 0xf2, 0x1b, 0x9a, 0xee, 0xcd, 0xf3, 0x77, 0x49, 0x1e, 0x35, 0xdd, 0x48,
416
+	0x77, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0x45, 0x21, 0x7f, 0x64, 0x2b, 0x05, 0x00, 0x00,
417
+}