Cloud Foundry (CF) is a platform as a service (PaaS) which has implemented their own container technology. The component in charge of providing a local API in each node (also known as "diego-cell") is named Garden.
The cfgarden_observer looks at the current host to discover Garden containers.
type CfConfig struct {
// The URL of the CloudFoundry API Endpoint string `mapstructure:"endpoint"`
// Authentication details Auth CfAuth `mapstructure:"auth"`
}
type Config struct {
// CloudFoundry API Configuration CloudFoundry CfConfig `mapstructure:"cloud_foundry"`
// Garden API Configuration Garden GardenConfig `mapstructure:"garden"`
// RefreshInterval determines the frequency at which the observer// needs to poll for collecting information about new processes.// Default: "1m"
RefreshInterval time.Duration `mapstructure:"refresh_interval"`
// The time to wait before resyncing app information on cached containers// using the CloudFoundry API.// Default: "5m"
CacheSyncInterval time.Duration `mapstructure:"cache_sync_interval"`
// Determines whether or not Application labels get added to the Endpoint labels.// This requires cloud_foundry to be configured, such that API calls can be made// Default: false
IncludeAppLabels bool `mapstructure:"include_app_labels"`
}
Config defines configuration for CF Garden observer.