Documentation ¶
Index ¶
- Constants
- Variables
- type Compression
- func (Compression) Descriptor() protoreflect.EnumDescriptor
- func (x Compression) Enum() *Compression
- func (Compression) EnumDescriptor() ([]byte, []int)deprecated
- func (x Compression) Number() protoreflect.EnumNumber
- func (x Compression) String() string
- func (Compression) Type() protoreflect.EnumType
- func (x *Compression) UnmarshalJSON(b []byte) errordeprecated
- type GRPCExporter
- func (*GRPCExporter) Descriptor() ([]byte, []int)deprecated
- func (x *GRPCExporter) GetCompression() Compression
- func (x *GRPCExporter) GetEndpoint() string
- func (x *GRPCExporter) GetHttpHeader() map[string]string
- func (x *GRPCExporter) GetInsecure() bool
- func (x *GRPCExporter) GetTlsConfig() *proto.TLSConfig
- func (*GRPCExporter) ProtoMessage()
- func (x *GRPCExporter) ProtoReflect() protoreflect.Message
- func (x *GRPCExporter) Reset()
- func (x *GRPCExporter) String() string
- type HTTPExporter
- func (*HTTPExporter) Descriptor() ([]byte, []int)deprecated
- func (x *HTTPExporter) GetCompression() Compression
- func (x *HTTPExporter) GetEndpointUrl() string
- func (x *HTTPExporter) GetHttpHeader() map[string]string
- func (x *HTTPExporter) GetTlsConfig() *proto.TLSConfig
- func (*HTTPExporter) ProtoMessage()
- func (x *HTTPExporter) ProtoReflect() protoreflect.Message
- func (x *HTTPExporter) Reset()
- func (x *HTTPExporter) String() string
- type SurfacerConf
- func (*SurfacerConf) Descriptor() ([]byte, []int)deprecated
- func (x *SurfacerConf) GetExportIntervalSec() int32
- func (m *SurfacerConf) GetExporter() isSurfacerConf_Exporter
- func (x *SurfacerConf) GetMetricsPrefix() string
- func (x *SurfacerConf) GetOtlpGrpcExporter() *GRPCExporter
- func (x *SurfacerConf) GetOtlpHttpExporter() *HTTPExporter
- func (x *SurfacerConf) GetResourceAttribute() []*SurfacerConf_Attribute
- func (*SurfacerConf) ProtoMessage()
- func (x *SurfacerConf) ProtoReflect() protoreflect.Message
- func (x *SurfacerConf) Reset()
- func (x *SurfacerConf) String() string
- type SurfacerConf_Attribute
- func (*SurfacerConf_Attribute) Descriptor() ([]byte, []int)deprecated
- func (x *SurfacerConf_Attribute) GetKey() string
- func (x *SurfacerConf_Attribute) GetValue() string
- func (*SurfacerConf_Attribute) ProtoMessage()
- func (x *SurfacerConf_Attribute) ProtoReflect() protoreflect.Message
- func (x *SurfacerConf_Attribute) Reset()
- func (x *SurfacerConf_Attribute) String() string
- type SurfacerConf_OtlpGrpcExporter
- type SurfacerConf_OtlpHttpExporter
Constants ¶
View Source
const ( Default_SurfacerConf_ExportIntervalSec = int32(10) Default_SurfacerConf_MetricsPrefix = string("cloudprober_") )
Default values for SurfacerConf fields.
Variables ¶
View Source
var ( Compression_name = map[int32]string{ 0: "NONE", 1: "GZIP", } Compression_value = map[string]int32{ "NONE": 0, "GZIP": 1, } )
Enum value maps for Compression.
View Source
var File_github_com_cloudprober_cloudprober_surfacers_internal_otel_proto_config_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Compression ¶
type Compression int32
const ( Compression_NONE Compression = 0 Compression_GZIP Compression = 1 )
func (Compression) Descriptor ¶
func (Compression) Descriptor() protoreflect.EnumDescriptor
func (Compression) Enum ¶
func (x Compression) Enum() *Compression
func (Compression) EnumDescriptor
deprecated
func (Compression) EnumDescriptor() ([]byte, []int)
Deprecated: Use Compression.Descriptor instead.
func (Compression) Number ¶
func (x Compression) Number() protoreflect.EnumNumber
func (Compression) String ¶
func (x Compression) String() string
func (Compression) Type ¶
func (Compression) Type() protoreflect.EnumType
func (*Compression) UnmarshalJSON
deprecated
func (x *Compression) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type GRPCExporter ¶
type GRPCExporter struct { // If no URL is provided, OpenTelemetry SDK will use the environment variable // OTEL_EXPORTER_OTLP_METRICS_ENDPOINT or OTEL_EXPORTER_OTLP_ENDPOINT in that // preference order. Endpoint *string `protobuf:"bytes,1,opt,name=endpoint" json:"endpoint,omitempty"` TlsConfig *proto.TLSConfig `protobuf:"bytes,2,opt,name=tls_config,json=tlsConfig" json:"tls_config,omitempty"` // HTTP request headers. These can also be set using environment variables. HttpHeader map[string]string `` /* 158-byte string literal not displayed */ // Compression algorithm to use for gRPC requests. Compression *Compression `protobuf:"varint,4,opt,name=compression,enum=cloudprober.surfacer.otel.Compression" json:"compression,omitempty"` // Whether to use insecure gRPC connection. Insecure *bool `protobuf:"varint,5,opt,name=insecure" json:"insecure,omitempty"` // contains filtered or unexported fields }
func (*GRPCExporter) Descriptor
deprecated
func (*GRPCExporter) Descriptor() ([]byte, []int)
Deprecated: Use GRPCExporter.ProtoReflect.Descriptor instead.
func (*GRPCExporter) GetCompression ¶
func (x *GRPCExporter) GetCompression() Compression
func (*GRPCExporter) GetEndpoint ¶
func (x *GRPCExporter) GetEndpoint() string
func (*GRPCExporter) GetHttpHeader ¶
func (x *GRPCExporter) GetHttpHeader() map[string]string
func (*GRPCExporter) GetInsecure ¶
func (x *GRPCExporter) GetInsecure() bool
func (*GRPCExporter) GetTlsConfig ¶
func (x *GRPCExporter) GetTlsConfig() *proto.TLSConfig
func (*GRPCExporter) ProtoMessage ¶
func (*GRPCExporter) ProtoMessage()
func (*GRPCExporter) ProtoReflect ¶
func (x *GRPCExporter) ProtoReflect() protoreflect.Message
func (*GRPCExporter) Reset ¶
func (x *GRPCExporter) Reset()
func (*GRPCExporter) String ¶
func (x *GRPCExporter) String() string
type HTTPExporter ¶
type HTTPExporter struct { // If no URL is provided, OpenTelemetry SDK will use the environment variable // OTEL_EXPORTER_OTLP_METRICS_ENDPOINT or OTEL_EXPORTER_OTLP_ENDPOINT in that // preference order. EndpointUrl *string `protobuf:"bytes,1,opt,name=endpoint_url,json=endpointUrl" json:"endpoint_url,omitempty"` TlsConfig *proto.TLSConfig `protobuf:"bytes,2,opt,name=tls_config,json=tlsConfig" json:"tls_config,omitempty"` // HTTP request headers. These can also be set using environment variables. HttpHeader map[string]string `` /* 158-byte string literal not displayed */ // Compression algorithm to use for HTTP requests. Compression *Compression `protobuf:"varint,4,opt,name=compression,enum=cloudprober.surfacer.otel.Compression" json:"compression,omitempty"` // contains filtered or unexported fields }
func (*HTTPExporter) Descriptor
deprecated
func (*HTTPExporter) Descriptor() ([]byte, []int)
Deprecated: Use HTTPExporter.ProtoReflect.Descriptor instead.
func (*HTTPExporter) GetCompression ¶
func (x *HTTPExporter) GetCompression() Compression
func (*HTTPExporter) GetEndpointUrl ¶
func (x *HTTPExporter) GetEndpointUrl() string
func (*HTTPExporter) GetHttpHeader ¶
func (x *HTTPExporter) GetHttpHeader() map[string]string
func (*HTTPExporter) GetTlsConfig ¶
func (x *HTTPExporter) GetTlsConfig() *proto.TLSConfig
func (*HTTPExporter) ProtoMessage ¶
func (*HTTPExporter) ProtoMessage()
func (*HTTPExporter) ProtoReflect ¶
func (x *HTTPExporter) ProtoReflect() protoreflect.Message
func (*HTTPExporter) Reset ¶
func (x *HTTPExporter) Reset()
func (*HTTPExporter) String ¶
func (x *HTTPExporter) String() string
type SurfacerConf ¶
type SurfacerConf struct { // Types that are assignable to Exporter: // // *SurfacerConf_OtlpHttpExporter // *SurfacerConf_OtlpGrpcExporter Exporter isSurfacerConf_Exporter `protobuf_oneof:"exporter"` // How often metrics will be exported. Note that metrics are accumulated // internally and exported at this interval. Increasing this value will // increase the memory usage. ExportIntervalSec *int32 `protobuf:"varint,3,opt,name=export_interval_sec,json=exportIntervalSec,def=10" json:"export_interval_sec,omitempty"` // Prefix to use for metrics. Defaults to "cloudprober_". MetricsPrefix *string `protobuf:"bytes,4,opt,name=metrics_prefix,json=metricsPrefix,def=cloudprober_" json:"metrics_prefix,omitempty"` ResourceAttribute []*SurfacerConf_Attribute `protobuf:"bytes,5,rep,name=resource_attribute,json=resourceAttribute" json:"resource_attribute,omitempty"` // contains filtered or unexported fields }
func (*SurfacerConf) Descriptor
deprecated
func (*SurfacerConf) Descriptor() ([]byte, []int)
Deprecated: Use SurfacerConf.ProtoReflect.Descriptor instead.
func (*SurfacerConf) GetExportIntervalSec ¶
func (x *SurfacerConf) GetExportIntervalSec() int32
func (*SurfacerConf) GetExporter ¶
func (m *SurfacerConf) GetExporter() isSurfacerConf_Exporter
func (*SurfacerConf) GetMetricsPrefix ¶
func (x *SurfacerConf) GetMetricsPrefix() string
func (*SurfacerConf) GetOtlpGrpcExporter ¶
func (x *SurfacerConf) GetOtlpGrpcExporter() *GRPCExporter
func (*SurfacerConf) GetOtlpHttpExporter ¶
func (x *SurfacerConf) GetOtlpHttpExporter() *HTTPExporter
func (*SurfacerConf) GetResourceAttribute ¶ added in v0.13.3
func (x *SurfacerConf) GetResourceAttribute() []*SurfacerConf_Attribute
func (*SurfacerConf) ProtoMessage ¶
func (*SurfacerConf) ProtoMessage()
func (*SurfacerConf) ProtoReflect ¶
func (x *SurfacerConf) ProtoReflect() protoreflect.Message
func (*SurfacerConf) Reset ¶
func (x *SurfacerConf) Reset()
func (*SurfacerConf) String ¶
func (x *SurfacerConf) String() string
type SurfacerConf_Attribute ¶ added in v0.13.3
type SurfacerConf_Attribute struct { Key *string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"` Value *string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"` // contains filtered or unexported fields }
Additional attributes to be added to all the metrics.
func (*SurfacerConf_Attribute) Descriptor
deprecated
added in
v0.13.3
func (*SurfacerConf_Attribute) Descriptor() ([]byte, []int)
Deprecated: Use SurfacerConf_Attribute.ProtoReflect.Descriptor instead.
func (*SurfacerConf_Attribute) GetKey ¶ added in v0.13.3
func (x *SurfacerConf_Attribute) GetKey() string
func (*SurfacerConf_Attribute) GetValue ¶ added in v0.13.3
func (x *SurfacerConf_Attribute) GetValue() string
func (*SurfacerConf_Attribute) ProtoMessage ¶ added in v0.13.3
func (*SurfacerConf_Attribute) ProtoMessage()
func (*SurfacerConf_Attribute) ProtoReflect ¶ added in v0.13.3
func (x *SurfacerConf_Attribute) ProtoReflect() protoreflect.Message
func (*SurfacerConf_Attribute) Reset ¶ added in v0.13.3
func (x *SurfacerConf_Attribute) Reset()
func (*SurfacerConf_Attribute) String ¶ added in v0.13.3
func (x *SurfacerConf_Attribute) String() string
type SurfacerConf_OtlpGrpcExporter ¶
type SurfacerConf_OtlpGrpcExporter struct { // OTLP gRPC exporter. OtlpGrpcExporter *GRPCExporter `protobuf:"bytes,2,opt,name=otlp_grpc_exporter,json=otlpGrpcExporter,oneof"` }
type SurfacerConf_OtlpHttpExporter ¶
type SurfacerConf_OtlpHttpExporter struct { // OTLP HTTP exporter. OtlpHttpExporter *HTTPExporter `protobuf:"bytes,1,opt,name=otlp_http_exporter,json=otlpHttpExporter,oneof"` }
Click to show internal directories.
Click to hide internal directories.