aws

package
v0.0.0-...-a9aaa21 Latest Latest
Warning

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

Go to latest
Published: May 4, 2022 License: MIT-0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IpAddressAttribute      = "AWS_INSTANCE_IPV4"
	PortNumberAttribute     = "AWS_INSTANCE_PORT"
	ClusterNameAttribute    = "ECS_CLUSTER_NAME"
	ServiceNameAttribute    = "ECS_SERVICE_NAME"
	TaskDefinitionAttribute = "ECS_TASK_DEFINITION_FAMILY"
	MetricsPortTag          = "METRICS_PORT"
	MetricsPathTag          = "METRICS_PATH"
	EcsMetricsPortTag       = "ECS_METRICS_PORT"
	EcsMetricsPathTag       = "ECS_METRICS_PATH"
)

Variables

This section is empty.

Functions

func GetParameter

func GetParameter(parameterName string) *string

Retrive the value for a given SSM Parameter name

func GetPrometheusScrapeConfig

func GetPrometheusScrapeConfig(selectedNamespaces []string) *string

Retrieve a JSON object that provides a list of ECS targets to be scraped for Prometheus metrics

func InitializeAWSSession

func InitializeAWSSession()

Types

type CloudMapClient

type CloudMapClient struct {
	// contains filtered or unexported fields
}

type InstanceScrapeConfig

type InstanceScrapeConfig struct {
	Targets []string          `json:"targets,omitempty"`
	Labels  map[string]string `json:"labels,omitempty"`
}

type ServiceDiscoveryInstance

type ServiceDiscoveryInstance struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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