ec2

package
v0.38.0-rc.6 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClusterNameFromAttributes

func ClusterNameFromAttributes(attrs pcommon.Map) (clusterName string, ok bool)

ClusterNameFromAttributes gets the AWS cluster name from attributes

func HostnameFromAttributes

func HostnameFromAttributes(attrs pcommon.Map, usePreviewRules bool) (string, bool)

HostnameFromAttributes gets a valid hostname from labels if available

Types

type HostInfo

type HostInfo struct {
	InstanceID  string
	EC2Hostname string
	EC2Tags     []string
}

HostInfo holds the EC2 host information.

func HostInfoFromAttributes

func HostInfoFromAttributes(attrs pcommon.Map) (hostInfo *HostInfo)

HostInfoFromAttributes gets EC2 host info from attributes following OpenTelemetry semantic conventions

Jump to

Keyboard shortcuts

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