googlecloudconfig

package
v1.11.3 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package googlecloudconfig contains configuration arguments specific to the Google Cloud exporter. See https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/exporter/googlecloudexporter/README.md for documentation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttributeMappings

type AttributeMappings struct {
	Key         string `alloy:"key,attr"`
	Replacement string `alloy:"replacement,attr"`
}

type ExperimentalWAL

type ExperimentalWAL struct {
	Directory  string        `alloy:"directory,attr,optional"`
	MaxBackoff time.Duration `alloy:"max_backoff,attr,optional"`
}

ExperimentalWAL represents experimental_wal config.

Here, we could default the `directory` argument to Alloy's storage.path config value. However, to maintain simplicity as a wrapper around the upstream contrib library and ensure predictable behavior for users, we decided to keep the configuration style consistent with the upstream library.

type GoogleCloudImpersonateArguments

type GoogleCloudImpersonateArguments struct {
	TargetPrincipal string   `alloy:"target_principal,attr,optional"`
	Subject         string   `alloy:"subject,attr,optional"`
	Delegates       []string `alloy:"delegates,attr,optional"`
}

func (*GoogleCloudImpersonateArguments) Convert

func (*GoogleCloudImpersonateArguments) SetToDefault

func (args *GoogleCloudImpersonateArguments) SetToDefault()

type GoogleCloudLogArguments

type GoogleCloudLogArguments struct {
	Endpoint              string           `alloy:"endpoint,attr,optional"`
	Compression           string           `alloy:"compression,attr,optional"`
	GRPCPoolSize          int              `alloy:"grpc_pool_size,attr,optional"`
	UseInsecure           bool             `alloy:"use_insecure,attr,optional"`
	DefaultLogName        string           `alloy:"default_log_name,attr,optional"`
	ResourceFilters       []ResourceFilter `alloy:"resource_filters,attr,optional"`
	ServiceResourceLabels bool             `alloy:"service_resource_labels,attr,optional"`
	ErrorReportingType    bool             `alloy:"error_reporting_type,attr,optional"`
}

func (*GoogleCloudLogArguments) Convert

func (*GoogleCloudLogArguments) SetToDefault

func (args *GoogleCloudLogArguments) SetToDefault()

type GoogleCloudMetricArguments

type GoogleCloudMetricArguments struct {
	Prefix                           string           `alloy:"prefix,attr,optional"`
	Endpoint                         string           `alloy:"endpoint,attr,optional"`
	Compression                      string           `alloy:"compression,attr,optional"`
	GRPCPoolSize                     int              `alloy:"grpc_pool_size,attr,optional"`
	UseInsecure                      bool             `alloy:"use_insecure,attr,optional"`
	KnownDomains                     []string         `alloy:"known_domains,attr,optional"`
	SkipCreateDescriptor             bool             `alloy:"skip_create_descriptor,attr,optional"`
	InstrumentationLibraryLabels     bool             `alloy:"instrumentation_library_labels,attr,optional"`
	CreateServiceTimeseries          bool             `alloy:"create_service_timeseries,attr,optional"`
	CreateMetricDescriptorBufferSize int              `alloy:"create_metric_descriptor_buffer_size,attr,optional"`
	ServiceResourceLabels            bool             `alloy:"service_resource_labels,attr,optional"`
	ResourceFilters                  []ResourceFilter `alloy:"resource_filters,attr,optional"`
	CumulativeNormalization          bool             `alloy:"cumulative_normalization,attr,optional"`
	SumOfSquaredDeviation            bool             `alloy:"sum_of_squared_deviation,attr,optional"`
	ExperimentalWAL                  *ExperimentalWAL `alloy:"experimental_wal,block,optional"`
}

func (*GoogleCloudMetricArguments) Convert

func (*GoogleCloudMetricArguments) SetToDefault

func (args *GoogleCloudMetricArguments) SetToDefault()

type GoogleCloudTraceArguments

type GoogleCloudTraceArguments struct {
	Endpoint          string              `alloy:"endpoint,attr,optional"`
	GRPCPoolSize      int                 `alloy:"grpc_pool_size,attr,optional"`
	UseInsecure       bool                `alloy:"use_insecure,attr,optional"`
	AttributeMappings []AttributeMappings `alloy:"attribute_mappings,attr,optional"`
}

func (*GoogleCloudTraceArguments) Convert

func (*GoogleCloudTraceArguments) SetToDefault

func (args *GoogleCloudTraceArguments) SetToDefault()

type ResourceFilter

type ResourceFilter struct {
	Prefix string `alloy:"prefix,attr,optional"`
	Regex  string `alloy:"regex,attr,optional"`
}

Jump to

Keyboard shortcuts

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