Documentation ¶
Overview ¶
Package ecs is a file-based observer that is primarily meant for development and test purposes. It will watch a json file, which should consist of an array of serialized service instances.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { config.ObserverConfig // The URL of the ECS task metadata. Default is http://169.254.170.2/v2/metadata, which is hardcoded by AWS for version 2. MetadataEndpoint string `yaml:"metadataEndpoint" default:"http://169.254.170.2/v2/metadata"` // A mapping of container label names to dimension names that will get // applied to the metrics of all discovered services. The corresponding // label values will become the dimension values for the mapped name. E.g. // `io.kubernetes.container.name: container_spec_name` would result in a // dimension called `container_spec_name` that has the value of the // `io.kubernetes.container.name` container label. LabelsToDimensions map[string]string `yaml:"labelsToDimensions"` }
Config for the ecs observer
Click to show internal directories.
Click to hide internal directories.