Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultSDConfig = SDConfig{ Port: 80, RefreshInterval: model.Duration(60 * time.Second), }
DefaultSDConfig is the default EC2 SD configuration.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { EcsSDConfig SDConfig `yaml:"ecs_sd_config"` // contains filtered or unexported fields }
Config is the top-level configuration for Prometheus's config files.
type SDConfig ¶
type SDConfig struct { Region string `yaml:"region"` AccessKey string `yaml:"access_key,omitempty"` SecretKey string `yaml:"secret_key,omitempty"` RefreshInterval model.Duration `yaml:"refresh_interval,omitempty"` Port int `yaml:"port"` Filters []*Filter `yaml:"filters,omitempty"` }
func (*SDConfig) UnmarshalYAML ¶
UnmarshalYAML implements the yaml.Unmarshaler interface.
Click to show internal directories.
Click to hide internal directories.