Documentation ¶
Index ¶
- Constants
- type SurfacerConf
- func (*SurfacerConf) Descriptor() ([]byte, []int)
- func (m *SurfacerConf) GetIncludeTimestamp() bool
- func (m *SurfacerConf) GetMetricsBufferSize() int64
- func (m *SurfacerConf) GetMetricsUrl() string
- func (*SurfacerConf) ProtoMessage()
- func (m *SurfacerConf) Reset()
- func (m *SurfacerConf) String() string
- func (m *SurfacerConf) XXX_DiscardUnknown()
- func (m *SurfacerConf) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SurfacerConf) XXX_Merge(src proto.Message)
- func (m *SurfacerConf) XXX_Size() int
- func (m *SurfacerConf) XXX_Unmarshal(b []byte) error
Constants ¶
View Source
const Default_SurfacerConf_IncludeTimestamp bool = true
View Source
const Default_SurfacerConf_MetricsBufferSize int64 = 10000
View Source
const Default_SurfacerConf_MetricsUrl string = "/metrics"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SurfacerConf ¶
type SurfacerConf struct { // How many metrics entries (EventMetrics) to buffer. Incoming metrics // processing is paused while serving data to prometheus. This buffer is to // make writes to prometheus surfacer non-blocking. MetricsBufferSize *int64 `protobuf:"varint,1,opt,name=metrics_buffer_size,json=metricsBufferSize,def=10000" json:"metrics_buffer_size,omitempty"` // Whether to include timestamps in metrics. If enabled (default) each metric // string includes the metric timestamp as recorded in the EventMetric. // Prometheus associates the scraped values with this timestamp. If disabled, // i.e. timestamps are not exported, prometheus associates scraped values with // scrape timestamp. IncludeTimestamp *bool `protobuf:"varint,2,opt,name=include_timestamp,json=includeTimestamp,def=1" json:"include_timestamp,omitempty"` // URL that prometheus scrapes metrics from. MetricsUrl *string `protobuf:"bytes,3,opt,name=metrics_url,json=metricsUrl,def=/metrics" json:"metrics_url,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SurfacerConf) Descriptor ¶
func (*SurfacerConf) Descriptor() ([]byte, []int)
func (*SurfacerConf) GetIncludeTimestamp ¶
func (m *SurfacerConf) GetIncludeTimestamp() bool
func (*SurfacerConf) GetMetricsBufferSize ¶
func (m *SurfacerConf) GetMetricsBufferSize() int64
func (*SurfacerConf) GetMetricsUrl ¶
func (m *SurfacerConf) GetMetricsUrl() string
func (*SurfacerConf) ProtoMessage ¶
func (*SurfacerConf) ProtoMessage()
func (*SurfacerConf) Reset ¶
func (m *SurfacerConf) Reset()
func (*SurfacerConf) String ¶
func (m *SurfacerConf) String() string
func (*SurfacerConf) XXX_DiscardUnknown ¶
func (m *SurfacerConf) XXX_DiscardUnknown()
func (*SurfacerConf) XXX_Marshal ¶
func (m *SurfacerConf) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SurfacerConf) XXX_Merge ¶
func (dst *SurfacerConf) XXX_Merge(src proto.Message)
func (*SurfacerConf) XXX_Size ¶
func (m *SurfacerConf) XXX_Size() int
func (*SurfacerConf) XXX_Unmarshal ¶
func (m *SurfacerConf) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.