Documentation ¶
Index ¶
Constants ¶
View Source
const (
// TypeStr is type of detector.
TypeStr = "gcp"
)
Variables ¶
This section is empty.
Functions ¶
func NewDetector ¶ added in v0.53.0
func NewDetector(set processor.CreateSettings, dcfg internal.DetectorConfig) (internal.Detector, error)
NewDetector returns a detector which can detect resource attributes on: * Google Compute Engine (GCE). * Google Kubernetes Engine (GKE). * Google App Engine (GAE). * Cloud Run. * Cloud Functions.
Types ¶
type Config ¶ added in v0.81.0
type Config struct {
ResourceAttributes metadata.ResourceAttributesConfig `mapstructure:"resource_attributes"`
}
func CreateDefaultConfig ¶ added in v0.81.0
func CreateDefaultConfig() Config
Click to show internal directories.
Click to hide internal directories.