package monitoredresource
Import Path
contrib.go.opencensus.io/exporter/stackdriver/monitoredresource (on go.dev)
Dependency Relation
imports 3 packages, and imported by one package
Package-Level Type Names (total 4, all are exported)
AWSEC2Instance represents aws_ec2_instance type monitored resource.
For definition refer to
https://cloud.google.com/monitoring/api/resources#tag_aws_ec2_instance
Deprecated: please use aws.EC2Container from "contrib.go.opencensus.io/exporter/stackdriver/monitoredresource/aws".
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/aws.Interface
*T : contrib.go.opencensus.io/exporter/stackdriver/monitoredresource/gcp.Interface
GCEInstance represents gce_instance type monitored resource.
For definition refer to
https://cloud.google.com/monitoring/api/resources#tag_gce_instance
Deprecated: please use gcp.GCEInstance from "contrib.go.opencensus.io/exporter/stackdriver/monitoredresource/gcp".
InstanceID is the numeric VM instance identifier assigned by Compute Engine.
ProjectID is the identifier of the GCP project associated with this resource, such as "my-project".
Zone is the Compute Engine zone in which the VM is running.
MonitoredResource returns resource type and resource labels for GCEInstance
*T : Interface
*T : contrib.go.opencensus.io/exporter/stackdriver/monitoredresource/aws.Interface
*T : contrib.go.opencensus.io/exporter/stackdriver/monitoredresource/gcp.Interface
GKEContainer represents gke_container type monitored resource.
For definition refer to
https://cloud.google.com/monitoring/api/resources#tag_gke_container
Deprecated: please use gcp.GKEContainer from "contrib.go.opencensus.io/exporter/stackdriver/monitoredresource/gcp".
ClusterName is the name for the cluster the container is running in.
ContainerName is the name of the container.
InstanceID is the numeric VM instance identifier assigned by Compute Engine.
LoggingMonitoringV2Enabled is the identifier if user enabled V2 logging and monitoring for GKE
NamespaceID is the identifier for the cluster namespace the container is running in
PodID is the identifier for the pod the container is running in.
ProjectID is the identifier of the GCP project associated with this resource, such as "my-project".
Zone is the Compute Engine zone in which the VM is running.
MonitoredResource returns resource type and resource labels for GKEContainer
*T : Interface
*T : contrib.go.opencensus.io/exporter/stackdriver/monitoredresource/aws.Interface
*T : contrib.go.opencensus.io/exporter/stackdriver/monitoredresource/gcp.Interface
Interface is a type that represent monitor resource that satisfies monitoredresource.Interface
MonitoredResource returns the resource type and resource labels.
*AWSEC2Instance
*GCEInstance
*GKEContainer
*contrib.go.opencensus.io/exporter/stackdriver/monitoredresource/aws.EC2Instance
contrib.go.opencensus.io/exporter/stackdriver/monitoredresource/aws.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/aws.Interface
T : contrib.go.opencensus.io/exporter/stackdriver/monitoredresource/gcp.Interface
func Autodetect() Interface
func contrib.go.opencensus.io/exporter/stackdriver.convertMonitoredResourceToPB(mr Interface) *monitoredrespb.MonitoredResource
var autoDetected
Package-Level Functions (only one, which is exported)
Autodetect auto detects monitored resources based on
the environment where the application is running.
It supports detection of following resource types
1. gke_container:
2. gce_instance:
3. 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. |