package gcp
Import Path
contrib.go.opencensus.io/exporter/stackdriver/monitoredresource/gcp (on go.dev)
Dependency Relation
imports 9 packages, and imported by 2 packages
Package-Level Type Names (total 4, in which 3 are exported)
GCEInstance represents gce_instance type monitored resource.
For definition refer to
https://cloud.google.com/monitoring/api/resources#tag_gce_instance
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.Interface
*T : contrib.go.opencensus.io/exporter/stackdriver/monitoredresource/aws.Interface
func createGCEInstanceMonitoredResource(gcpMetadata *gcpMetadata) *GCEInstance
GKEContainer represents gke_container type monitored resource.
For definition refer to
https://cloud.google.com/monitoring/api/resources#tag_gke_container
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.Interface
*T : contrib.go.opencensus.io/exporter/stackdriver/monitoredresource/aws.Interface
func createGKEContainerMonitoredResource(gcpMetadata *gcpMetadata) *GKEContainer
Interface is a type that represent monitor resource that satisfies monitoredresource.Interface
MonitoredResource returns the resource type and resource labels.
*GCEInstance
*GKEContainer
*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/aws.EC2Instance
contrib.go.opencensus.io/exporter/stackdriver/monitoredresource/aws.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/aws.Interface
func Autodetect() Interface
func detectResourceType(gcpMetadata *gcpMetadata) Interface
var autoDetected
Package-Level Functions (total 6, 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. gke_container:
2. gce_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. |