Documentation
¶
Index ¶
Constants ¶
View Source
const ( // QuotaLabelsPerMetricDescriptor is the limit // to labels (tags) per metric descriptor. QuotaLabelsPerMetricDescriptor = 10 // QuotaStringLengthForLabelKey is the limit // to string length for label key. QuotaStringLengthForLabelKey = 100 // QuotaStringLengthForLabelValue is the limit // to string length for label value. QuotaStringLengthForLabelValue = 1024 // MaxInt is the max int64 value. MaxInt = int(^uint(0) >> 1) )
Variables ¶
This section is empty.
Functions ¶
func GetCounterCacheKey ¶ added in v1.21.3
func NewCounterCache ¶ added in v1.21.3
func NewCounterCacheEntry ¶ added in v1.21.3
func NewCounterCacheEntry(value *monpb.TypedValue, ts *tspb.Timestamp) *counterCacheEntry
Types ¶
type Stackdriver ¶
type Stackdriver struct { Project string `toml:"project"` Namespace string `toml:"namespace"` ResourceType string `toml:"resource_type"` ResourceLabels map[string]string `toml:"resource_labels"` MetricTypePrefix string `toml:"metric_type_prefix"` Log telegraf.Logger `toml:"-"` // contains filtered or unexported fields }
Stackdriver is the Google Stackdriver config info.
func (*Stackdriver) Close ¶
func (s *Stackdriver) Close() error
Close will terminate the session to the backend, returning error if an issue arises.
func (*Stackdriver) Connect ¶
func (s *Stackdriver) Connect() error
Connect initiates the primary connection to the GCP project.
func (*Stackdriver) Init ¶ added in v1.26.3
func (s *Stackdriver) Init() error
func (*Stackdriver) SampleConfig ¶
func (*Stackdriver) SampleConfig() string
Click to show internal directories.
Click to hide internal directories.