Documentation ¶
Index ¶
- Constants
- Variables
- type LabelToColumn
- func (*LabelToColumn) Descriptor() ([]byte, []int)deprecated
- func (x *LabelToColumn) GetColumn() string
- func (x *LabelToColumn) GetLabel() string
- func (*LabelToColumn) ProtoMessage()
- func (x *LabelToColumn) ProtoReflect() protoreflect.Message
- func (x *LabelToColumn) Reset()
- func (x *LabelToColumn) String() string
- type SurfacerConf
- func (*SurfacerConf) Descriptor() ([]byte, []int)deprecated
- func (x *SurfacerConf) GetConnectionString() string
- func (x *SurfacerConf) GetLabelToColumn() []*LabelToColumn
- func (x *SurfacerConf) GetMetricsBufferSize() int64
- func (x *SurfacerConf) GetMetricsTableName() string
- func (*SurfacerConf) ProtoMessage()
- func (x *SurfacerConf) ProtoReflect() protoreflect.Message
- func (x *SurfacerConf) Reset()
- func (x *SurfacerConf) String() string
Constants ¶
View Source
const (
Default_SurfacerConf_MetricsBufferSize = int64(10000)
)
Default values for SurfacerConf fields.
Variables ¶
View Source
var File_github_com_cloudprober_cloudprober_surfacers_postgres_proto_config_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type LabelToColumn ¶ added in v0.12.0
type LabelToColumn struct { Label *string `protobuf:"bytes,1,req,name=label" json:"label,omitempty"` Column *string `protobuf:"bytes,2,req,name=column" json:"column,omitempty"` // contains filtered or unexported fields }
Adding label_to_column fields changes how labels are stored in a Postgres table. If this field is not specified at all, all the labels are stored as a jsonb values as the 'labels' column (this mode impacts performance negatively). If label_to_colum entries are specified for some labels, those labels are stored in their dedicated columns, all the labels that don't have a mapping will be dropped.
func (*LabelToColumn) Descriptor
deprecated
added in
v0.12.0
func (*LabelToColumn) Descriptor() ([]byte, []int)
Deprecated: Use LabelToColumn.ProtoReflect.Descriptor instead.
func (*LabelToColumn) GetColumn ¶ added in v0.12.0
func (x *LabelToColumn) GetColumn() string
func (*LabelToColumn) GetLabel ¶ added in v0.12.0
func (x *LabelToColumn) GetLabel() string
func (*LabelToColumn) ProtoMessage ¶ added in v0.12.0
func (*LabelToColumn) ProtoMessage()
func (*LabelToColumn) ProtoReflect ¶ added in v0.12.0
func (x *LabelToColumn) ProtoReflect() protoreflect.Message
func (*LabelToColumn) Reset ¶ added in v0.12.0
func (x *LabelToColumn) Reset()
func (*LabelToColumn) String ¶ added in v0.12.0
func (x *LabelToColumn) String() string
type SurfacerConf ¶
type SurfacerConf struct { ConnectionString *string `protobuf:"bytes,1,req,name=connection_string,json=connectionString" json:"connection_string,omitempty"` MetricsTableName *string `protobuf:"bytes,2,req,name=metrics_table_name,json=metricsTableName" json:"metrics_table_name,omitempty"` LabelToColumn []*LabelToColumn `protobuf:"bytes,4,rep,name=label_to_column,json=labelToColumn" json:"label_to_column,omitempty"` MetricsBufferSize *int64 `protobuf:"varint,3,opt,name=metrics_buffer_size,json=metricsBufferSize,def=10000" json:"metrics_buffer_size,omitempty"` // contains filtered or unexported fields }
func (*SurfacerConf) Descriptor
deprecated
func (*SurfacerConf) Descriptor() ([]byte, []int)
Deprecated: Use SurfacerConf.ProtoReflect.Descriptor instead.
func (*SurfacerConf) GetConnectionString ¶
func (x *SurfacerConf) GetConnectionString() string
func (*SurfacerConf) GetLabelToColumn ¶ added in v0.12.0
func (x *SurfacerConf) GetLabelToColumn() []*LabelToColumn
func (*SurfacerConf) GetMetricsBufferSize ¶ added in v0.11.4
func (x *SurfacerConf) GetMetricsBufferSize() int64
func (*SurfacerConf) GetMetricsTableName ¶
func (x *SurfacerConf) GetMetricsTableName() string
func (*SurfacerConf) ProtoMessage ¶
func (*SurfacerConf) ProtoMessage()
func (*SurfacerConf) ProtoReflect ¶ added in v0.11.4
func (x *SurfacerConf) ProtoReflect() protoreflect.Message
func (*SurfacerConf) Reset ¶
func (x *SurfacerConf) Reset()
func (*SurfacerConf) String ¶
func (x *SurfacerConf) String() string
Click to show internal directories.
Click to hide internal directories.