25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

724 lines
24 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: metrics.proto
  3. package io_prometheus_client
  4. import (
  5. fmt "fmt"
  6. proto "github.com/golang/protobuf/proto"
  7. timestamp "github.com/golang/protobuf/ptypes/timestamp"
  8. math "math"
  9. )
  10. // Reference imports to suppress errors if they are not otherwise used.
  11. var _ = proto.Marshal
  12. var _ = fmt.Errorf
  13. var _ = math.Inf
  14. // This is a compile-time assertion to ensure that this generated file
  15. // is compatible with the proto package it is being compiled against.
  16. // A compilation error at this line likely means your copy of the
  17. // proto package needs to be updated.
  18. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
  19. type MetricType int32
  20. const (
  21. MetricType_COUNTER MetricType = 0
  22. MetricType_GAUGE MetricType = 1
  23. MetricType_SUMMARY MetricType = 2
  24. MetricType_UNTYPED MetricType = 3
  25. MetricType_HISTOGRAM MetricType = 4
  26. )
  27. var MetricType_name = map[int32]string{
  28. 0: "COUNTER",
  29. 1: "GAUGE",
  30. 2: "SUMMARY",
  31. 3: "UNTYPED",
  32. 4: "HISTOGRAM",
  33. }
  34. var MetricType_value = map[string]int32{
  35. "COUNTER": 0,
  36. "GAUGE": 1,
  37. "SUMMARY": 2,
  38. "UNTYPED": 3,
  39. "HISTOGRAM": 4,
  40. }
  41. func (x MetricType) Enum() *MetricType {
  42. p := new(MetricType)
  43. *p = x
  44. return p
  45. }
  46. func (x MetricType) String() string {
  47. return proto.EnumName(MetricType_name, int32(x))
  48. }
  49. func (x *MetricType) UnmarshalJSON(data []byte) error {
  50. value, err := proto.UnmarshalJSONEnum(MetricType_value, data, "MetricType")
  51. if err != nil {
  52. return err
  53. }
  54. *x = MetricType(value)
  55. return nil
  56. }
  57. func (MetricType) EnumDescriptor() ([]byte, []int) {
  58. return fileDescriptor_6039342a2ba47b72, []int{0}
  59. }
  60. type LabelPair struct {
  61. Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
  62. Value *string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
  63. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  64. XXX_unrecognized []byte `json:"-"`
  65. XXX_sizecache int32 `json:"-"`
  66. }
  67. func (m *LabelPair) Reset() { *m = LabelPair{} }
  68. func (m *LabelPair) String() string { return proto.CompactTextString(m) }
  69. func (*LabelPair) ProtoMessage() {}
  70. func (*LabelPair) Descriptor() ([]byte, []int) {
  71. return fileDescriptor_6039342a2ba47b72, []int{0}
  72. }
  73. func (m *LabelPair) XXX_Unmarshal(b []byte) error {
  74. return xxx_messageInfo_LabelPair.Unmarshal(m, b)
  75. }
  76. func (m *LabelPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  77. return xxx_messageInfo_LabelPair.Marshal(b, m, deterministic)
  78. }
  79. func (m *LabelPair) XXX_Merge(src proto.Message) {
  80. xxx_messageInfo_LabelPair.Merge(m, src)
  81. }
  82. func (m *LabelPair) XXX_Size() int {
  83. return xxx_messageInfo_LabelPair.Size(m)
  84. }
  85. func (m *LabelPair) XXX_DiscardUnknown() {
  86. xxx_messageInfo_LabelPair.DiscardUnknown(m)
  87. }
  88. var xxx_messageInfo_LabelPair proto.InternalMessageInfo
  89. func (m *LabelPair) GetName() string {
  90. if m != nil && m.Name != nil {
  91. return *m.Name
  92. }
  93. return ""
  94. }
  95. func (m *LabelPair) GetValue() string {
  96. if m != nil && m.Value != nil {
  97. return *m.Value
  98. }
  99. return ""
  100. }
  101. type Gauge struct {
  102. Value *float64 `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"`
  103. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  104. XXX_unrecognized []byte `json:"-"`
  105. XXX_sizecache int32 `json:"-"`
  106. }
  107. func (m *Gauge) Reset() { *m = Gauge{} }
  108. func (m *Gauge) String() string { return proto.CompactTextString(m) }
  109. func (*Gauge) ProtoMessage() {}
  110. func (*Gauge) Descriptor() ([]byte, []int) {
  111. return fileDescriptor_6039342a2ba47b72, []int{1}
  112. }
  113. func (m *Gauge) XXX_Unmarshal(b []byte) error {
  114. return xxx_messageInfo_Gauge.Unmarshal(m, b)
  115. }
  116. func (m *Gauge) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  117. return xxx_messageInfo_Gauge.Marshal(b, m, deterministic)
  118. }
  119. func (m *Gauge) XXX_Merge(src proto.Message) {
  120. xxx_messageInfo_Gauge.Merge(m, src)
  121. }
  122. func (m *Gauge) XXX_Size() int {
  123. return xxx_messageInfo_Gauge.Size(m)
  124. }
  125. func (m *Gauge) XXX_DiscardUnknown() {
  126. xxx_messageInfo_Gauge.DiscardUnknown(m)
  127. }
  128. var xxx_messageInfo_Gauge proto.InternalMessageInfo
  129. func (m *Gauge) GetValue() float64 {
  130. if m != nil && m.Value != nil {
  131. return *m.Value
  132. }
  133. return 0
  134. }
  135. type Counter struct {
  136. Value *float64 `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"`
  137. Exemplar *Exemplar `protobuf:"bytes,2,opt,name=exemplar" json:"exemplar,omitempty"`
  138. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  139. XXX_unrecognized []byte `json:"-"`
  140. XXX_sizecache int32 `json:"-"`
  141. }
  142. func (m *Counter) Reset() { *m = Counter{} }
  143. func (m *Counter) String() string { return proto.CompactTextString(m) }
  144. func (*Counter) ProtoMessage() {}
  145. func (*Counter) Descriptor() ([]byte, []int) {
  146. return fileDescriptor_6039342a2ba47b72, []int{2}
  147. }
  148. func (m *Counter) XXX_Unmarshal(b []byte) error {
  149. return xxx_messageInfo_Counter.Unmarshal(m, b)
  150. }
  151. func (m *Counter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  152. return xxx_messageInfo_Counter.Marshal(b, m, deterministic)
  153. }
  154. func (m *Counter) XXX_Merge(src proto.Message) {
  155. xxx_messageInfo_Counter.Merge(m, src)
  156. }
  157. func (m *Counter) XXX_Size() int {
  158. return xxx_messageInfo_Counter.Size(m)
  159. }
  160. func (m *Counter) XXX_DiscardUnknown() {
  161. xxx_messageInfo_Counter.DiscardUnknown(m)
  162. }
  163. var xxx_messageInfo_Counter proto.InternalMessageInfo
  164. func (m *Counter) GetValue() float64 {
  165. if m != nil && m.Value != nil {
  166. return *m.Value
  167. }
  168. return 0
  169. }
  170. func (m *Counter) GetExemplar() *Exemplar {
  171. if m != nil {
  172. return m.Exemplar
  173. }
  174. return nil
  175. }
  176. type Quantile struct {
  177. Quantile *float64 `protobuf:"fixed64,1,opt,name=quantile" json:"quantile,omitempty"`
  178. Value *float64 `protobuf:"fixed64,2,opt,name=value" json:"value,omitempty"`
  179. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  180. XXX_unrecognized []byte `json:"-"`
  181. XXX_sizecache int32 `json:"-"`
  182. }
  183. func (m *Quantile) Reset() { *m = Quantile{} }
  184. func (m *Quantile) String() string { return proto.CompactTextString(m) }
  185. func (*Quantile) ProtoMessage() {}
  186. func (*Quantile) Descriptor() ([]byte, []int) {
  187. return fileDescriptor_6039342a2ba47b72, []int{3}
  188. }
  189. func (m *Quantile) XXX_Unmarshal(b []byte) error {
  190. return xxx_messageInfo_Quantile.Unmarshal(m, b)
  191. }
  192. func (m *Quantile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  193. return xxx_messageInfo_Quantile.Marshal(b, m, deterministic)
  194. }
  195. func (m *Quantile) XXX_Merge(src proto.Message) {
  196. xxx_messageInfo_Quantile.Merge(m, src)
  197. }
  198. func (m *Quantile) XXX_Size() int {
  199. return xxx_messageInfo_Quantile.Size(m)
  200. }
  201. func (m *Quantile) XXX_DiscardUnknown() {
  202. xxx_messageInfo_Quantile.DiscardUnknown(m)
  203. }
  204. var xxx_messageInfo_Quantile proto.InternalMessageInfo
  205. func (m *Quantile) GetQuantile() float64 {
  206. if m != nil && m.Quantile != nil {
  207. return *m.Quantile
  208. }
  209. return 0
  210. }
  211. func (m *Quantile) GetValue() float64 {
  212. if m != nil && m.Value != nil {
  213. return *m.Value
  214. }
  215. return 0
  216. }
  217. type Summary struct {
  218. SampleCount *uint64 `protobuf:"varint,1,opt,name=sample_count,json=sampleCount" json:"sample_count,omitempty"`
  219. SampleSum *float64 `protobuf:"fixed64,2,opt,name=sample_sum,json=sampleSum" json:"sample_sum,omitempty"`
  220. Quantile []*Quantile `protobuf:"bytes,3,rep,name=quantile" json:"quantile,omitempty"`
  221. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  222. XXX_unrecognized []byte `json:"-"`
  223. XXX_sizecache int32 `json:"-"`
  224. }
  225. func (m *Summary) Reset() { *m = Summary{} }
  226. func (m *Summary) String() string { return proto.CompactTextString(m) }
  227. func (*Summary) ProtoMessage() {}
  228. func (*Summary) Descriptor() ([]byte, []int) {
  229. return fileDescriptor_6039342a2ba47b72, []int{4}
  230. }
  231. func (m *Summary) XXX_Unmarshal(b []byte) error {
  232. return xxx_messageInfo_Summary.Unmarshal(m, b)
  233. }
  234. func (m *Summary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  235. return xxx_messageInfo_Summary.Marshal(b, m, deterministic)
  236. }
  237. func (m *Summary) XXX_Merge(src proto.Message) {
  238. xxx_messageInfo_Summary.Merge(m, src)
  239. }
  240. func (m *Summary) XXX_Size() int {
  241. return xxx_messageInfo_Summary.Size(m)
  242. }
  243. func (m *Summary) XXX_DiscardUnknown() {
  244. xxx_messageInfo_Summary.DiscardUnknown(m)
  245. }
  246. var xxx_messageInfo_Summary proto.InternalMessageInfo
  247. func (m *Summary) GetSampleCount() uint64 {
  248. if m != nil && m.SampleCount != nil {
  249. return *m.SampleCount
  250. }
  251. return 0
  252. }
  253. func (m *Summary) GetSampleSum() float64 {
  254. if m != nil && m.SampleSum != nil {
  255. return *m.SampleSum
  256. }
  257. return 0
  258. }
  259. func (m *Summary) GetQuantile() []*Quantile {
  260. if m != nil {
  261. return m.Quantile
  262. }
  263. return nil
  264. }
  265. type Untyped struct {
  266. Value *float64 `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"`
  267. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  268. XXX_unrecognized []byte `json:"-"`
  269. XXX_sizecache int32 `json:"-"`
  270. }
  271. func (m *Untyped) Reset() { *m = Untyped{} }
  272. func (m *Untyped) String() string { return proto.CompactTextString(m) }
  273. func (*Untyped) ProtoMessage() {}
  274. func (*Untyped) Descriptor() ([]byte, []int) {
  275. return fileDescriptor_6039342a2ba47b72, []int{5}
  276. }
  277. func (m *Untyped) XXX_Unmarshal(b []byte) error {
  278. return xxx_messageInfo_Untyped.Unmarshal(m, b)
  279. }
  280. func (m *Untyped) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  281. return xxx_messageInfo_Untyped.Marshal(b, m, deterministic)
  282. }
  283. func (m *Untyped) XXX_Merge(src proto.Message) {
  284. xxx_messageInfo_Untyped.Merge(m, src)
  285. }
  286. func (m *Untyped) XXX_Size() int {
  287. return xxx_messageInfo_Untyped.Size(m)
  288. }
  289. func (m *Untyped) XXX_DiscardUnknown() {
  290. xxx_messageInfo_Untyped.DiscardUnknown(m)
  291. }
  292. var xxx_messageInfo_Untyped proto.InternalMessageInfo
  293. func (m *Untyped) GetValue() float64 {
  294. if m != nil && m.Value != nil {
  295. return *m.Value
  296. }
  297. return 0
  298. }
  299. type Histogram struct {
  300. SampleCount *uint64 `protobuf:"varint,1,opt,name=sample_count,json=sampleCount" json:"sample_count,omitempty"`
  301. SampleSum *float64 `protobuf:"fixed64,2,opt,name=sample_sum,json=sampleSum" json:"sample_sum,omitempty"`
  302. Bucket []*Bucket `protobuf:"bytes,3,rep,name=bucket" json:"bucket,omitempty"`
  303. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  304. XXX_unrecognized []byte `json:"-"`
  305. XXX_sizecache int32 `json:"-"`
  306. }
  307. func (m *Histogram) Reset() { *m = Histogram{} }
  308. func (m *Histogram) String() string { return proto.CompactTextString(m) }
  309. func (*Histogram) ProtoMessage() {}
  310. func (*Histogram) Descriptor() ([]byte, []int) {
  311. return fileDescriptor_6039342a2ba47b72, []int{6}
  312. }
  313. func (m *Histogram) XXX_Unmarshal(b []byte) error {
  314. return xxx_messageInfo_Histogram.Unmarshal(m, b)
  315. }
  316. func (m *Histogram) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  317. return xxx_messageInfo_Histogram.Marshal(b, m, deterministic)
  318. }
  319. func (m *Histogram) XXX_Merge(src proto.Message) {
  320. xxx_messageInfo_Histogram.Merge(m, src)
  321. }
  322. func (m *Histogram) XXX_Size() int {
  323. return xxx_messageInfo_Histogram.Size(m)
  324. }
  325. func (m *Histogram) XXX_DiscardUnknown() {
  326. xxx_messageInfo_Histogram.DiscardUnknown(m)
  327. }
  328. var xxx_messageInfo_Histogram proto.InternalMessageInfo
  329. func (m *Histogram) GetSampleCount() uint64 {
  330. if m != nil && m.SampleCount != nil {
  331. return *m.SampleCount
  332. }
  333. return 0
  334. }
  335. func (m *Histogram) GetSampleSum() float64 {
  336. if m != nil && m.SampleSum != nil {
  337. return *m.SampleSum
  338. }
  339. return 0
  340. }
  341. func (m *Histogram) GetBucket() []*Bucket {
  342. if m != nil {
  343. return m.Bucket
  344. }
  345. return nil
  346. }
  347. type Bucket struct {
  348. CumulativeCount *uint64 `protobuf:"varint,1,opt,name=cumulative_count,json=cumulativeCount" json:"cumulative_count,omitempty"`
  349. UpperBound *float64 `protobuf:"fixed64,2,opt,name=upper_bound,json=upperBound" json:"upper_bound,omitempty"`
  350. Exemplar *Exemplar `protobuf:"bytes,3,opt,name=exemplar" json:"exemplar,omitempty"`
  351. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  352. XXX_unrecognized []byte `json:"-"`
  353. XXX_sizecache int32 `json:"-"`
  354. }
  355. func (m *Bucket) Reset() { *m = Bucket{} }
  356. func (m *Bucket) String() string { return proto.CompactTextString(m) }
  357. func (*Bucket) ProtoMessage() {}
  358. func (*Bucket) Descriptor() ([]byte, []int) {
  359. return fileDescriptor_6039342a2ba47b72, []int{7}
  360. }
  361. func (m *Bucket) XXX_Unmarshal(b []byte) error {
  362. return xxx_messageInfo_Bucket.Unmarshal(m, b)
  363. }
  364. func (m *Bucket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  365. return xxx_messageInfo_Bucket.Marshal(b, m, deterministic)
  366. }
  367. func (m *Bucket) XXX_Merge(src proto.Message) {
  368. xxx_messageInfo_Bucket.Merge(m, src)
  369. }
  370. func (m *Bucket) XXX_Size() int {
  371. return xxx_messageInfo_Bucket.Size(m)
  372. }
  373. func (m *Bucket) XXX_DiscardUnknown() {
  374. xxx_messageInfo_Bucket.DiscardUnknown(m)
  375. }
  376. var xxx_messageInfo_Bucket proto.InternalMessageInfo
  377. func (m *Bucket) GetCumulativeCount() uint64 {
  378. if m != nil && m.CumulativeCount != nil {
  379. return *m.CumulativeCount
  380. }
  381. return 0
  382. }
  383. func (m *Bucket) GetUpperBound() float64 {
  384. if m != nil && m.UpperBound != nil {
  385. return *m.UpperBound
  386. }
  387. return 0
  388. }
  389. func (m *Bucket) GetExemplar() *Exemplar {
  390. if m != nil {
  391. return m.Exemplar
  392. }
  393. return nil
  394. }
  395. type Exemplar struct {
  396. Label []*LabelPair `protobuf:"bytes,1,rep,name=label" json:"label,omitempty"`
  397. Value *float64 `protobuf:"fixed64,2,opt,name=value" json:"value,omitempty"`
  398. Timestamp *timestamp.Timestamp `protobuf:"bytes,3,opt,name=timestamp" json:"timestamp,omitempty"`
  399. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  400. XXX_unrecognized []byte `json:"-"`
  401. XXX_sizecache int32 `json:"-"`
  402. }
  403. func (m *Exemplar) Reset() { *m = Exemplar{} }
  404. func (m *Exemplar) String() string { return proto.CompactTextString(m) }
  405. func (*Exemplar) ProtoMessage() {}
  406. func (*Exemplar) Descriptor() ([]byte, []int) {
  407. return fileDescriptor_6039342a2ba47b72, []int{8}
  408. }
  409. func (m *Exemplar) XXX_Unmarshal(b []byte) error {
  410. return xxx_messageInfo_Exemplar.Unmarshal(m, b)
  411. }
  412. func (m *Exemplar) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  413. return xxx_messageInfo_Exemplar.Marshal(b, m, deterministic)
  414. }
  415. func (m *Exemplar) XXX_Merge(src proto.Message) {
  416. xxx_messageInfo_Exemplar.Merge(m, src)
  417. }
  418. func (m *Exemplar) XXX_Size() int {
  419. return xxx_messageInfo_Exemplar.Size(m)
  420. }
  421. func (m *Exemplar) XXX_DiscardUnknown() {
  422. xxx_messageInfo_Exemplar.DiscardUnknown(m)
  423. }
  424. var xxx_messageInfo_Exemplar proto.InternalMessageInfo
  425. func (m *Exemplar) GetLabel() []*LabelPair {
  426. if m != nil {
  427. return m.Label
  428. }
  429. return nil
  430. }
  431. func (m *Exemplar) GetValue() float64 {
  432. if m != nil && m.Value != nil {
  433. return *m.Value
  434. }
  435. return 0
  436. }
  437. func (m *Exemplar) GetTimestamp() *timestamp.Timestamp {
  438. if m != nil {
  439. return m.Timestamp
  440. }
  441. return nil
  442. }
  443. type Metric struct {
  444. Label []*LabelPair `protobuf:"bytes,1,rep,name=label" json:"label,omitempty"`
  445. Gauge *Gauge `protobuf:"bytes,2,opt,name=gauge" json:"gauge,omitempty"`
  446. Counter *Counter `protobuf:"bytes,3,opt,name=counter" json:"counter,omitempty"`
  447. Summary *Summary `protobuf:"bytes,4,opt,name=summary" json:"summary,omitempty"`
  448. Untyped *Untyped `protobuf:"bytes,5,opt,name=untyped" json:"untyped,omitempty"`
  449. Histogram *Histogram `protobuf:"bytes,7,opt,name=histogram" json:"histogram,omitempty"`
  450. TimestampMs *int64 `protobuf:"varint,6,opt,name=timestamp_ms,json=timestampMs" json:"timestamp_ms,omitempty"`
  451. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  452. XXX_unrecognized []byte `json:"-"`
  453. XXX_sizecache int32 `json:"-"`
  454. }
  455. func (m *Metric) Reset() { *m = Metric{} }
  456. func (m *Metric) String() string { return proto.CompactTextString(m) }
  457. func (*Metric) ProtoMessage() {}
  458. func (*Metric) Descriptor() ([]byte, []int) {
  459. return fileDescriptor_6039342a2ba47b72, []int{9}
  460. }
  461. func (m *Metric) XXX_Unmarshal(b []byte) error {
  462. return xxx_messageInfo_Metric.Unmarshal(m, b)
  463. }
  464. func (m *Metric) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  465. return xxx_messageInfo_Metric.Marshal(b, m, deterministic)
  466. }
  467. func (m *Metric) XXX_Merge(src proto.Message) {
  468. xxx_messageInfo_Metric.Merge(m, src)
  469. }
  470. func (m *Metric) XXX_Size() int {
  471. return xxx_messageInfo_Metric.Size(m)
  472. }
  473. func (m *Metric) XXX_DiscardUnknown() {
  474. xxx_messageInfo_Metric.DiscardUnknown(m)
  475. }
  476. var xxx_messageInfo_Metric proto.InternalMessageInfo
  477. func (m *Metric) GetLabel() []*LabelPair {
  478. if m != nil {
  479. return m.Label
  480. }
  481. return nil
  482. }
  483. func (m *Metric) GetGauge() *Gauge {
  484. if m != nil {
  485. return m.Gauge
  486. }
  487. return nil
  488. }
  489. func (m *Metric) GetCounter() *Counter {
  490. if m != nil {
  491. return m.Counter
  492. }
  493. return nil
  494. }
  495. func (m *Metric) GetSummary() *Summary {
  496. if m != nil {
  497. return m.Summary
  498. }
  499. return nil
  500. }
  501. func (m *Metric) GetUntyped() *Untyped {
  502. if m != nil {
  503. return m.Untyped
  504. }
  505. return nil
  506. }
  507. func (m *Metric) GetHistogram() *Histogram {
  508. if m != nil {
  509. return m.Histogram
  510. }
  511. return nil
  512. }
  513. func (m *Metric) GetTimestampMs() int64 {
  514. if m != nil && m.TimestampMs != nil {
  515. return *m.TimestampMs
  516. }
  517. return 0
  518. }
  519. type MetricFamily struct {
  520. Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
  521. Help *string `protobuf:"bytes,2,opt,name=help" json:"help,omitempty"`
  522. Type *MetricType `protobuf:"varint,3,opt,name=type,enum=io.prometheus.client.MetricType" json:"type,omitempty"`
  523. Metric []*Metric `protobuf:"bytes,4,rep,name=metric" json:"metric,omitempty"`
  524. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  525. XXX_unrecognized []byte `json:"-"`
  526. XXX_sizecache int32 `json:"-"`
  527. }
  528. func (m *MetricFamily) Reset() { *m = MetricFamily{} }
  529. func (m *MetricFamily) String() string { return proto.CompactTextString(m) }
  530. func (*MetricFamily) ProtoMessage() {}
  531. func (*MetricFamily) Descriptor() ([]byte, []int) {
  532. return fileDescriptor_6039342a2ba47b72, []int{10}
  533. }
  534. func (m *MetricFamily) XXX_Unmarshal(b []byte) error {
  535. return xxx_messageInfo_MetricFamily.Unmarshal(m, b)
  536. }
  537. func (m *MetricFamily) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  538. return xxx_messageInfo_MetricFamily.Marshal(b, m, deterministic)
  539. }
  540. func (m *MetricFamily) XXX_Merge(src proto.Message) {
  541. xxx_messageInfo_MetricFamily.Merge(m, src)
  542. }
  543. func (m *MetricFamily) XXX_Size() int {
  544. return xxx_messageInfo_MetricFamily.Size(m)
  545. }
  546. func (m *MetricFamily) XXX_DiscardUnknown() {
  547. xxx_messageInfo_MetricFamily.DiscardUnknown(m)
  548. }
  549. var xxx_messageInfo_MetricFamily proto.InternalMessageInfo
  550. func (m *MetricFamily) GetName() string {
  551. if m != nil && m.Name != nil {
  552. return *m.Name
  553. }
  554. return ""
  555. }
  556. func (m *MetricFamily) GetHelp() string {
  557. if m != nil && m.Help != nil {
  558. return *m.Help
  559. }
  560. return ""
  561. }
  562. func (m *MetricFamily) GetType() MetricType {
  563. if m != nil && m.Type != nil {
  564. return *m.Type
  565. }
  566. return MetricType_COUNTER
  567. }
  568. func (m *MetricFamily) GetMetric() []*Metric {
  569. if m != nil {
  570. return m.Metric
  571. }
  572. return nil
  573. }
  574. func init() {
  575. proto.RegisterEnum("io.prometheus.client.MetricType", MetricType_name, MetricType_value)
  576. proto.RegisterType((*LabelPair)(nil), "io.prometheus.client.LabelPair")
  577. proto.RegisterType((*Gauge)(nil), "io.prometheus.client.Gauge")
  578. proto.RegisterType((*Counter)(nil), "io.prometheus.client.Counter")
  579. proto.RegisterType((*Quantile)(nil), "io.prometheus.client.Quantile")
  580. proto.RegisterType((*Summary)(nil), "io.prometheus.client.Summary")
  581. proto.RegisterType((*Untyped)(nil), "io.prometheus.client.Untyped")
  582. proto.RegisterType((*Histogram)(nil), "io.prometheus.client.Histogram")
  583. proto.RegisterType((*Bucket)(nil), "io.prometheus.client.Bucket")
  584. proto.RegisterType((*Exemplar)(nil), "io.prometheus.client.Exemplar")
  585. proto.RegisterType((*Metric)(nil), "io.prometheus.client.Metric")
  586. proto.RegisterType((*MetricFamily)(nil), "io.prometheus.client.MetricFamily")
  587. }
  588. func init() { proto.RegisterFile("metrics.proto", fileDescriptor_6039342a2ba47b72) }
  589. var fileDescriptor_6039342a2ba47b72 = []byte{
  590. // 665 bytes of a gzipped FileDescriptorProto
  591. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0xcd, 0x6e, 0xd3, 0x4c,
  592. 0x14, 0xfd, 0xdc, 0x38, 0x3f, 0xbe, 0x69, 0x3f, 0xa2, 0x51, 0x17, 0x56, 0xa1, 0x24, 0x78, 0x55,
  593. 0x58, 0x38, 0xa2, 0x6a, 0x05, 0x2a, 0xb0, 0x68, 0x4b, 0x48, 0x91, 0x48, 0x5b, 0x26, 0xc9, 0xa2,
  594. 0xb0, 0x88, 0x1c, 0x77, 0x70, 0x2c, 0x3c, 0xb1, 0xb1, 0x67, 0x2a, 0xb2, 0x66, 0xc1, 0x16, 0x5e,
  595. 0x81, 0x17, 0x05, 0xcd, 0x8f, 0x6d, 0x2a, 0xb9, 0x95, 0x40, 0xec, 0x66, 0xee, 0x3d, 0xe7, 0xfa,
  596. 0xcc, 0xf8, 0x9c, 0x81, 0x0d, 0x4a, 0x58, 0x1a, 0xfa, 0x99, 0x9b, 0xa4, 0x31, 0x8b, 0xd1, 0x66,
  597. 0x18, 0x8b, 0x15, 0x25, 0x6c, 0x41, 0x78, 0xe6, 0xfa, 0x51, 0x48, 0x96, 0x6c, 0xab, 0x1b, 0xc4,
  598. 0x71, 0x10, 0x91, 0xbe, 0xc4, 0xcc, 0xf9, 0x87, 0x3e, 0x0b, 0x29, 0xc9, 0x98, 0x47, 0x13, 0x45,
  599. 0x73, 0xf6, 0xc1, 0x7a, 0xe3, 0xcd, 0x49, 0x74, 0xee, 0x85, 0x29, 0x42, 0x60, 0x2e, 0x3d, 0x4a,
  600. 0x6c, 0xa3, 0x67, 0xec, 0x58, 0x58, 0xae, 0xd1, 0x26, 0xd4, 0xaf, 0xbc, 0x88, 0x13, 0x7b, 0x4d,
  601. 0x16, 0xd5, 0xc6, 0xd9, 0x86, 0xfa, 0xd0, 0xe3, 0xc1, 0x6f, 0x6d, 0xc1, 0x31, 0xf2, 0xf6, 0x7b,
  602. 0x68, 0x1e, 0xc7, 0x7c, 0xc9, 0x48, 0x5a, 0x0d, 0x40, 0x07, 0xd0, 0x22, 0x9f, 0x09, 0x4d, 0x22,
  603. 0x2f, 0x95, 0x83, 0xdb, 0xbb, 0xf7, 0xdd, 0xaa, 0x03, 0xb8, 0x03, 0x8d, 0xc2, 0x05, 0xde, 0x79,
  604. 0x0e, 0xad, 0xb7, 0xdc, 0x5b, 0xb2, 0x30, 0x22, 0x68, 0x0b, 0x5a, 0x9f, 0xf4, 0x5a, 0x7f, 0xa0,
  605. 0xd8, 0x5f, 0x57, 0x5e, 0x48, 0xfb, 0x6a, 0x40, 0x73, 0xcc, 0x29, 0xf5, 0xd2, 0x15, 0x7a, 0x00,
  606. 0xeb, 0x99, 0x47, 0x93, 0x88, 0xcc, 0x7c, 0xa1, 0x56, 0x4e, 0x30, 0x71, 0x5b, 0xd5, 0xe4, 0x01,
  607. 0xd0, 0x36, 0x80, 0x86, 0x64, 0x9c, 0xea, 0x49, 0x96, 0xaa, 0x8c, 0x39, 0x15, 0xe7, 0x28, 0xbe,
  608. 0x5f, 0xeb, 0xd5, 0x6e, 0x3e, 0x47, 0xae, 0xb8, 0xd4, 0xe7, 0x74, 0xa1, 0x39, 0x5d, 0xb2, 0x55,
  609. 0x42, 0x2e, 0x6f, 0xb8, 0xc5, 0x2f, 0x06, 0x58, 0x27, 0x61, 0xc6, 0xe2, 0x20, 0xf5, 0xe8, 0x3f,
  610. 0x10, 0xbb, 0x07, 0x8d, 0x39, 0xf7, 0x3f, 0x12, 0xa6, 0xa5, 0xde, 0xab, 0x96, 0x7a, 0x24, 0x31,
  611. 0x58, 0x63, 0x9d, 0x6f, 0x06, 0x34, 0x54, 0x09, 0x3d, 0x84, 0x8e, 0xcf, 0x29, 0x8f, 0x3c, 0x16,
  612. 0x5e, 0x5d, 0x97, 0x71, 0xa7, 0xac, 0x2b, 0x29, 0x5d, 0x68, 0xf3, 0x24, 0x21, 0xe9, 0x6c, 0x1e,
  613. 0xf3, 0xe5, 0xa5, 0xd6, 0x02, 0xb2, 0x74, 0x24, 0x2a, 0xd7, 0x1c, 0x50, 0xfb, 0x43, 0x07, 0x7c,
  614. 0x37, 0xa0, 0x95, 0x97, 0xd1, 0x3e, 0xd4, 0x23, 0xe1, 0x60, 0xdb, 0x90, 0x87, 0xea, 0x56, 0x4f,
  615. 0x29, 0x4c, 0x8e, 0x15, 0xba, 0xda, 0x1d, 0xe8, 0x29, 0x58, 0x45, 0x42, 0xb4, 0xac, 0x2d, 0x57,
  616. 0x65, 0xc8, 0xcd, 0x33, 0xe4, 0x4e, 0x72, 0x04, 0x2e, 0xc1, 0xce, 0xcf, 0x35, 0x68, 0x8c, 0x64,
  617. 0x22, 0xff, 0x56, 0xd1, 0x63, 0xa8, 0x07, 0x22, 0x53, 0x3a, 0x10, 0x77, 0xab, 0x69, 0x32, 0x76,
  618. 0x58, 0x21, 0xd1, 0x13, 0x68, 0xfa, 0x2a, 0x67, 0x5a, 0xec, 0x76, 0x35, 0x49, 0x87, 0x11, 0xe7,
  619. 0x68, 0x41, 0xcc, 0x54, 0x08, 0x6c, 0xf3, 0x36, 0xa2, 0x4e, 0x0a, 0xce, 0xd1, 0x82, 0xc8, 0x95,
  620. 0x69, 0xed, 0xfa, 0x6d, 0x44, 0xed, 0x6c, 0x9c, 0xa3, 0xd1, 0x0b, 0xb0, 0x16, 0xb9, 0x97, 0xed,
  621. 0xa6, 0xa4, 0xde, 0x70, 0x31, 0x85, 0xe5, 0x71, 0xc9, 0x10, 0xee, 0x2f, 0xee, 0x7a, 0x46, 0x33,
  622. 0xbb, 0xd1, 0x33, 0x76, 0x6a, 0xb8, 0x5d, 0xd4, 0x46, 0x99, 0xf3, 0xc3, 0x80, 0x75, 0xf5, 0x07,
  623. 0x5e, 0x79, 0x34, 0x8c, 0x56, 0x95, 0xcf, 0x19, 0x02, 0x73, 0x41, 0xa2, 0x44, 0xbf, 0x66, 0x72,
  624. 0x8d, 0xf6, 0xc0, 0x14, 0x1a, 0xe5, 0x15, 0xfe, 0xbf, 0xdb, 0xab, 0x56, 0xa5, 0x26, 0x4f, 0x56,
  625. 0x09, 0xc1, 0x12, 0x2d, 0xd2, 0xa4, 0x5e, 0x60, 0xdb, 0xbc, 0x2d, 0x4d, 0x8a, 0x87, 0x35, 0xf6,
  626. 0xd1, 0x08, 0xa0, 0x9c, 0x84, 0xda, 0xd0, 0x3c, 0x3e, 0x9b, 0x9e, 0x4e, 0x06, 0xb8, 0xf3, 0x1f,
  627. 0xb2, 0xa0, 0x3e, 0x3c, 0x9c, 0x0e, 0x07, 0x1d, 0x43, 0xd4, 0xc7, 0xd3, 0xd1, 0xe8, 0x10, 0x5f,
  628. 0x74, 0xd6, 0xc4, 0x66, 0x7a, 0x3a, 0xb9, 0x38, 0x1f, 0xbc, 0xec, 0xd4, 0xd0, 0x06, 0x58, 0x27,
  629. 0xaf, 0xc7, 0x93, 0xb3, 0x21, 0x3e, 0x1c, 0x75, 0xcc, 0x23, 0x0c, 0x95, 0xef, 0xfe, 0xbb, 0x83,
  630. 0x20, 0x64, 0x0b, 0x3e, 0x77, 0xfd, 0x98, 0xf6, 0xcb, 0x6e, 0x5f, 0x75, 0x67, 0x34, 0xbe, 0x24,
  631. 0x51, 0x3f, 0x88, 0x9f, 0x85, 0xf1, 0xac, 0xec, 0xce, 0x54, 0xf7, 0x57, 0x00, 0x00, 0x00, 0xff,
  632. 0xff, 0xd0, 0x84, 0x91, 0x73, 0x59, 0x06, 0x00, 0x00,
  633. }