io_prometheus_client

package
v0.0.0-...-d88c8b5 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MetricType_name = map[int32]string{
	0: "COUNTER",
	1: "GAUGE",
	2: "SUMMARY",
	3: "UNTYPED",
	4: "HISTOGRAM",
}
View Source
var MetricType_value = map[string]int32{
	"COUNTER":   0,
	"GAUGE":     1,
	"SUMMARY":   2,
	"UNTYPED":   3,
	"HISTOGRAM": 4,
}

Functions

This section is empty.

Types

type Bucket

type Bucket struct {
	CumulativeCount      *uint64   `protobuf:"varint,1,opt,name=cumulative_count,json=cumulativeCount" json:"cumulative_count,omitempty"`
	UpperBound           *float64  `protobuf:"fixed64,2,opt,name=upper_bound,json=upperBound" json:"upper_bound,omitempty"`
	Exemplar             *Exemplar `protobuf:"bytes,3,opt,name=exemplar" json:"exemplar,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*Bucket) Descriptor

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

func (*Bucket) GetCumulativeCount

func (m *Bucket) GetCumulativeCount() uint64

func (*Bucket) GetExemplar

func (m *Bucket) GetExemplar() *Exemplar

func (*Bucket) GetUpperBound

func (m *Bucket) GetUpperBound() float64

func (*Bucket) ProtoMessage

func (*Bucket) ProtoMessage()

func (*Bucket) Reset

func (m *Bucket) Reset()

func (*Bucket) String

func (m *Bucket) String() string

func (*Bucket) XXX_DiscardUnknown

func (m *Bucket) XXX_DiscardUnknown()

func (*Bucket) XXX_Marshal

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

func (*Bucket) XXX_Merge

func (m *Bucket) XXX_Merge(src proto.Message)

func (*Bucket) XXX_Size

func (m *Bucket) XXX_Size() int

func (*Bucket) XXX_Unmarshal

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

type Counter

type Counter struct {
	Value                *float64  `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"`
	Exemplar             *Exemplar `protobuf:"bytes,2,opt,name=exemplar" json:"exemplar,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*Counter) Descriptor

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

func (*Counter) GetExemplar

func (m *Counter) GetExemplar() *Exemplar

func (*Counter) GetValue

func (m *Counter) GetValue() float64

func (*Counter) ProtoMessage

func (*Counter) ProtoMessage()

func (*Counter) Reset

func (m *Counter) Reset()

func (*Counter) String

func (m *Counter) String() string

func (*Counter) XXX_DiscardUnknown

func (m *Counter) XXX_DiscardUnknown()

func (*Counter) XXX_Marshal

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

func (*Counter) XXX_Merge

func (m *Counter) XXX_Merge(src proto.Message)

func (*Counter) XXX_Size

func (m *Counter) XXX_Size() int

func (*Counter) XXX_Unmarshal

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

type Exemplar

type Exemplar struct {
	Label                []*LabelPair         `protobuf:"bytes,1,rep,name=label" json:"label,omitempty"`
	Value                *float64             `protobuf:"fixed64,2,opt,name=value" json:"value,omitempty"`
	Timestamp            *timestamp.Timestamp `protobuf:"bytes,3,opt,name=timestamp" json:"timestamp,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*Exemplar) Descriptor

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

func (*Exemplar) GetLabel

func (m *Exemplar) GetLabel() []*LabelPair

func (*Exemplar) GetTimestamp

func (m *Exemplar) GetTimestamp() *timestamp.Timestamp

func (*Exemplar) GetValue

func (m *Exemplar) GetValue() float64

func (*Exemplar) ProtoMessage

func (*Exemplar) ProtoMessage()

func (*Exemplar) Reset

func (m *Exemplar) Reset()

func (*Exemplar) String

func (m *Exemplar) String() string

func (*Exemplar) XXX_DiscardUnknown

func (m *Exemplar) XXX_DiscardUnknown()

func (*Exemplar) XXX_Marshal

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

func (*Exemplar) XXX_Merge

func (m *Exemplar) XXX_Merge(src proto.Message)

func (*Exemplar) XXX_Size

func (m *Exemplar) XXX_Size() int

func (*Exemplar) XXX_Unmarshal

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

type Gauge

type Gauge struct {
	Value                *float64 `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Gauge) Descriptor

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

func (*Gauge) GetValue

func (m *Gauge) GetValue() float64

func (*Gauge) ProtoMessage

func (*Gauge) ProtoMessage()

func (*Gauge) Reset

func (m *Gauge) Reset()

func (*Gauge) String

func (m *Gauge) String() string

func (*Gauge) XXX_DiscardUnknown

func (m *Gauge) XXX_DiscardUnknown()

func (*Gauge) XXX_Marshal

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

func (*Gauge) XXX_Merge

func (m *Gauge) XXX_Merge(src proto.Message)

func (*Gauge) XXX_Size

func (m *Gauge) XXX_Size() int

func (*Gauge) XXX_Unmarshal

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

type Histogram

type Histogram struct {
	SampleCount          *uint64   `protobuf:"varint,1,opt,name=sample_count,json=sampleCount" json:"sample_count,omitempty"`
	SampleSum            *float64  `protobuf:"fixed64,2,opt,name=sample_sum,json=sampleSum" json:"sample_sum,omitempty"`
	Bucket               []*Bucket `protobuf:"bytes,3,rep,name=bucket" json:"bucket,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*Histogram) Descriptor

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

func (*Histogram) GetBucket

func (m *Histogram) GetBucket() []*Bucket

func (*Histogram) GetSampleCount

func (m *Histogram) GetSampleCount() uint64

func (*Histogram) GetSampleSum

func (m *Histogram) GetSampleSum() float64

func (*Histogram) ProtoMessage

func (*Histogram) ProtoMessage()

func (*Histogram) Reset

func (m *Histogram) Reset()

func (*Histogram) String

func (m *Histogram) String() string

func (*Histogram) XXX_DiscardUnknown

func (m *Histogram) XXX_DiscardUnknown()

func (*Histogram) XXX_Marshal

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

func (*Histogram) XXX_Merge

func (m *Histogram) XXX_Merge(src proto.Message)

func (*Histogram) XXX_Size

func (m *Histogram) XXX_Size() int

func (*Histogram) XXX_Unmarshal

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

type LabelPair

type LabelPair struct {
	Name                 *string  `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Value                *string  `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*LabelPair) Descriptor

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

func (*LabelPair) GetName

func (m *LabelPair) GetName() string

func (*LabelPair) GetValue

func (m *LabelPair) GetValue() string

func (*LabelPair) ProtoMessage

func (*LabelPair) ProtoMessage()

func (*LabelPair) Reset

func (m *LabelPair) Reset()

func (*LabelPair) String

func (m *LabelPair) String() string

func (*LabelPair) XXX_DiscardUnknown

func (m *LabelPair) XXX_DiscardUnknown()

func (*LabelPair) XXX_Marshal

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

func (*LabelPair) XXX_Merge

func (m *LabelPair) XXX_Merge(src proto.Message)

func (*LabelPair) XXX_Size

func (m *LabelPair) XXX_Size() int

func (*LabelPair) XXX_Unmarshal

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

type Metric

type Metric struct {
	Label                []*LabelPair `protobuf:"bytes,1,rep,name=label" json:"label,omitempty"`
	Gauge                *Gauge       `protobuf:"bytes,2,opt,name=gauge" json:"gauge,omitempty"`
	Counter              *Counter     `protobuf:"bytes,3,opt,name=counter" json:"counter,omitempty"`
	Summary              *Summary     `protobuf:"bytes,4,opt,name=summary" json:"summary,omitempty"`
	Untyped              *Untyped     `protobuf:"bytes,5,opt,name=untyped" json:"untyped,omitempty"`
	Histogram            *Histogram   `protobuf:"bytes,7,opt,name=histogram" json:"histogram,omitempty"`
	TimestampMs          *int64       `protobuf:"varint,6,opt,name=timestamp_ms,json=timestampMs" json:"timestamp_ms,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*Metric) Descriptor

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

func (*Metric) GetCounter

func (m *Metric) GetCounter() *Counter

func (*Metric) GetGauge

func (m *Metric) GetGauge() *Gauge

func (*Metric) GetHistogram

func (m *Metric) GetHistogram() *Histogram

func (*Metric) GetLabel

func (m *Metric) GetLabel() []*LabelPair

func (*Metric) GetSummary

func (m *Metric) GetSummary() *Summary

func (*Metric) GetTimestampMs

func (m *Metric) GetTimestampMs() int64

func (*Metric) GetUntyped

func (m *Metric) GetUntyped() *Untyped

func (*Metric) ProtoMessage

func (*Metric) ProtoMessage()

func (*Metric) Reset

func (m *Metric) Reset()

func (*Metric) String

func (m *Metric) String() string

func (*Metric) XXX_DiscardUnknown

func (m *Metric) XXX_DiscardUnknown()

func (*Metric) XXX_Marshal

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

func (*Metric) XXX_Merge

func (m *Metric) XXX_Merge(src proto.Message)

func (*Metric) XXX_Size

func (m *Metric) XXX_Size() int

func (*Metric) XXX_Unmarshal

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

type MetricFamily

type MetricFamily struct {
	Name                 *string     `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Help                 *string     `protobuf:"bytes,2,opt,name=help" json:"help,omitempty"`
	Type                 *MetricType `protobuf:"varint,3,opt,name=type,enum=io.prometheus.client.MetricType" json:"type,omitempty"`
	Metric               []*Metric   `protobuf:"bytes,4,rep,name=metric" json:"metric,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*MetricFamily) Descriptor

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

func (*MetricFamily) GetHelp

func (m *MetricFamily) GetHelp() string

func (*MetricFamily) GetMetric

func (m *MetricFamily) GetMetric() []*Metric

func (*MetricFamily) GetName

func (m *MetricFamily) GetName() string

func (*MetricFamily) GetType

func (m *MetricFamily) GetType() MetricType

func (*MetricFamily) ProtoMessage

func (*MetricFamily) ProtoMessage()

func (*MetricFamily) Reset

func (m *MetricFamily) Reset()

func (*MetricFamily) String

func (m *MetricFamily) String() string

func (*MetricFamily) XXX_DiscardUnknown

func (m *MetricFamily) XXX_DiscardUnknown()

func (*MetricFamily) XXX_Marshal

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

func (*MetricFamily) XXX_Merge

func (m *MetricFamily) XXX_Merge(src proto.Message)

func (*MetricFamily) XXX_Size

func (m *MetricFamily) XXX_Size() int

func (*MetricFamily) XXX_Unmarshal

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

type MetricType

type MetricType int32
const (
	MetricType_COUNTER   MetricType = 0
	MetricType_GAUGE     MetricType = 1
	MetricType_SUMMARY   MetricType = 2
	MetricType_UNTYPED   MetricType = 3
	MetricType_HISTOGRAM MetricType = 4
)

func (MetricType) Enum

func (x MetricType) Enum() *MetricType

func (MetricType) EnumDescriptor

func (MetricType) EnumDescriptor() ([]byte, []int)

func (MetricType) String

func (x MetricType) String() string

func (*MetricType) UnmarshalJSON

func (x *MetricType) UnmarshalJSON(data []byte) error

type Quantile

type Quantile struct {
	Quantile             *float64 `protobuf:"fixed64,1,opt,name=quantile" json:"quantile,omitempty"`
	Value                *float64 `protobuf:"fixed64,2,opt,name=value" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Quantile) Descriptor

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

func (*Quantile) GetQuantile

func (m *Quantile) GetQuantile() float64

func (*Quantile) GetValue

func (m *Quantile) GetValue() float64

func (*Quantile) ProtoMessage

func (*Quantile) ProtoMessage()

func (*Quantile) Reset

func (m *Quantile) Reset()

func (*Quantile) String

func (m *Quantile) String() string

func (*Quantile) XXX_DiscardUnknown

func (m *Quantile) XXX_DiscardUnknown()

func (*Quantile) XXX_Marshal

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

func (*Quantile) XXX_Merge

func (m *Quantile) XXX_Merge(src proto.Message)

func (*Quantile) XXX_Size

func (m *Quantile) XXX_Size() int

func (*Quantile) XXX_Unmarshal

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

type Summary

type Summary struct {
	SampleCount          *uint64     `protobuf:"varint,1,opt,name=sample_count,json=sampleCount" json:"sample_count,omitempty"`
	SampleSum            *float64    `protobuf:"fixed64,2,opt,name=sample_sum,json=sampleSum" json:"sample_sum,omitempty"`
	Quantile             []*Quantile `protobuf:"bytes,3,rep,name=quantile" json:"quantile,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*Summary) Descriptor

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

func (*Summary) GetQuantile

func (m *Summary) GetQuantile() []*Quantile

func (*Summary) GetSampleCount

func (m *Summary) GetSampleCount() uint64

func (*Summary) GetSampleSum

func (m *Summary) GetSampleSum() float64

func (*Summary) ProtoMessage

func (*Summary) ProtoMessage()

func (*Summary) Reset

func (m *Summary) Reset()

func (*Summary) String

func (m *Summary) String() string

func (*Summary) XXX_DiscardUnknown

func (m *Summary) XXX_DiscardUnknown()

func (*Summary) XXX_Marshal

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

func (*Summary) XXX_Merge

func (m *Summary) XXX_Merge(src proto.Message)

func (*Summary) XXX_Size

func (m *Summary) XXX_Size() int

func (*Summary) XXX_Unmarshal

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

type Untyped

type Untyped struct {
	Value                *float64 `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Untyped) Descriptor

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

func (*Untyped) GetValue

func (m *Untyped) GetValue() float64

func (*Untyped) ProtoMessage

func (*Untyped) ProtoMessage()

func (*Untyped) Reset

func (m *Untyped) Reset()

func (*Untyped) String

func (m *Untyped) String() string

func (*Untyped) XXX_DiscardUnknown

func (m *Untyped) XXX_DiscardUnknown()

func (*Untyped) XXX_Marshal

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

func (*Untyped) XXX_Merge

func (m *Untyped) XXX_Merge(src proto.Message)

func (*Untyped) XXX_Size

func (m *Untyped) XXX_Size() int

func (*Untyped) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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