proto

package
v0.13.4 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Default_SurfacerConf_Prefix           = string("cloudprober")
	Default_SurfacerConf_MetricsBatchSize = int32(1000)
	Default_SurfacerConf_BatchTimerSec    = int32(30)
)

Default values for SurfacerConf fields.

Variables

View Source
var File_github_com_cloudprober_cloudprober_surfacers_internal_datadog_proto_config_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type SurfacerConf

type SurfacerConf struct {

	// Prefix to add to all metrics.
	Prefix *string `protobuf:"bytes,1,opt,name=prefix,def=cloudprober" json:"prefix,omitempty"`
	// Datadog API key. If not set, DD_API_KEY env variable is used.
	ApiKey *string `protobuf:"bytes,2,opt,name=api_key,json=apiKey" json:"api_key,omitempty"`
	// Datadog APP key. If not set, DD_APP_KEY env variable is used.
	AppKey *string `protobuf:"bytes,3,opt,name=app_key,json=appKey" json:"app_key,omitempty"`
	// Datadog server, default: "api.datadoghq.com"
	Server *string `protobuf:"bytes,4,opt,name=server" json:"server,omitempty"`
	// The maximum number of metrics that will be published at one
	// time. Metrics will be stored locally in a cache until this
	// limit is reached. Datadog's SubmitMetric API has a maximum payload
	// size of 500 kilobytes (512000 bytes). Compressed payloads must have a
	// decompressed size of less than 5 megabytes (5242880 bytes).
	// Metrics will be published when the timer expires, or the buffer is
	// full, whichever happens first.
	MetricsBatchSize *int32 `protobuf:"varint,5,opt,name=metrics_batch_size,json=metricsBatchSize,def=1000" json:"metrics_batch_size,omitempty"`
	// The maximum amount of time to hold metrics in the buffer (above).
	// Metrics will be published when the timer expires, or the buffer is
	// full, whichever happens first.
	BatchTimerSec *int32 `protobuf:"varint,6,opt,name=batch_timer_sec,json=batchTimerSec,def=30" json:"batch_timer_sec,omitempty"`
	// Disable gzip compression of metric payload, when sending metrics to Datadog.
	// Compression is enabled by default.
	DisableCompression *bool `protobuf:"varint,7,opt,name=disable_compression,json=disableCompression" json:"disable_compression,omitempty"`
	// contains filtered or unexported fields
}

Surfacer config for datadog surfacer.

func (*SurfacerConf) Descriptor deprecated

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

Deprecated: Use SurfacerConf.ProtoReflect.Descriptor instead.

func (*SurfacerConf) GetApiKey

func (x *SurfacerConf) GetApiKey() string

func (*SurfacerConf) GetAppKey

func (x *SurfacerConf) GetAppKey() string

func (*SurfacerConf) GetBatchTimerSec

func (x *SurfacerConf) GetBatchTimerSec() int32

func (*SurfacerConf) GetDisableCompression

func (x *SurfacerConf) GetDisableCompression() bool

func (*SurfacerConf) GetMetricsBatchSize

func (x *SurfacerConf) GetMetricsBatchSize() int32

func (*SurfacerConf) GetPrefix

func (x *SurfacerConf) GetPrefix() string

func (*SurfacerConf) GetServer

func (x *SurfacerConf) GetServer() string

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

Jump to

Keyboard shortcuts

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