package aws
Import Path
contrib.go.opencensus.io/exporter/stackdriver/monitoredresource/aws (on go.dev)
Dependency Relation
imports 4 packages, and imported by one package
Package-Level Type Names (total 3, in which 2 are exported)
EC2Instance represents aws_ec2_instance type monitored resource.
For definition refer to
https://cloud.google.com/monitoring/api/resources#tag_aws_ec2_instance
AWSAccount is the AWS account number for the VM.
InstanceID is the instance id of the instance.
Region is the AWS region for the VM. The format of this field is "aws:{region}",
where supported values for {region} are listed at
http://docs.aws.amazon.com/general/latest/gr/rande.html.
MonitoredResource returns resource type and resource labels for AWSEC2Instance
*T : Interface
*T : contrib.go.opencensus.io/exporter/stackdriver/monitoredresource.Interface
*T : contrib.go.opencensus.io/exporter/stackdriver/monitoredresource/gcp.Interface
func createEC2InstanceMonitoredResource(awsIdentityDoc *awsIdentityDocument) *EC2Instance
Interface is a type that represent monitor resource that satisfies monitoredresource.Interface
MonitoredResource returns the resource type and resource labels.
*EC2Instance
*contrib.go.opencensus.io/exporter/stackdriver/monitoredresource.AWSEC2Instance
*contrib.go.opencensus.io/exporter/stackdriver/monitoredresource.GCEInstance
*contrib.go.opencensus.io/exporter/stackdriver/monitoredresource.GKEContainer
contrib.go.opencensus.io/exporter/stackdriver/monitoredresource.Interface (interface)
*contrib.go.opencensus.io/exporter/stackdriver/monitoredresource/gcp.GCEInstance
*contrib.go.opencensus.io/exporter/stackdriver/monitoredresource/gcp.GKEContainer
contrib.go.opencensus.io/exporter/stackdriver/monitoredresource/gcp.Interface (interface)
*golang.org/x/pkgsite/internal/dcensus.monitoredResource
T : contrib.go.opencensus.io/exporter/stackdriver/monitoredresource.Interface
T : contrib.go.opencensus.io/exporter/stackdriver/monitoredresource/gcp.Interface
func Autodetect() Interface
func detectResourceType(awsIdentityDoc *awsIdentityDocument) Interface
var autoDetected
Package-Level Functions (total 4, in which 1 are exported)
Autodetect auto detects monitored resources based on
the environment where the application is running.
It supports detection of following resource types
1. aws_ec2_instance:
Returns MonitoredResInterface which implements getLabels() and getType()
For resource definition go to https://cloud.google.com/monitoring/api/resources
Package-Level Variables (total 2, neither is exported)
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |