Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCommandStartAdapterServer ¶
NewCommandStartAdapterServer provides a CLI handler for 'start adapter server' command
Types ¶
type AdapterServerOptions ¶
type AdapterServerOptions struct { *server.CustomMetricsAdapterServerOptions // RemoteKubeConfigFile is the config used to list pods from the master API server RemoteKubeConfigFile string // EnableCustomMetricsAPI switches on sample apiserver for Custom Metrics API EnableCustomMetricsAPI bool // EnableExternalMetricsAPI switches on sample apiserver for External Metrics API EnableExternalMetricsAPI bool // PrometheusServer enables prometheus queries to the specified // server PrometheusServer string // InfluxDBAddress enables Flux queries to the specified InfluxDB instance InfluxDBAddress string // InfluxDBToken is the token used for querying InfluxDB InfluxDBToken string // InfluxDBOrg is the organization ID used for querying InfluxDB InfluxDBOrg string // ZMONKariosDBEndpoint enables ZMON check queries to the specified // kariosDB endpoint ZMONKariosDBEndpoint string // ZMONTokenName is the name of the token used to query ZMON ZMONTokenName string // Token is an oauth2 token used to authenticate with services like // ZMON. Token string // CredentialsDir is the path to the dir where tokens are stored CredentialsDir string // SkipperIngressMetrics switches on support for skipper ingress based // metric collection. SkipperIngressMetrics bool // AWSExternalMetrics switches on support for getting external metrics // from AWS. AWSExternalMetrics bool // AWSRegions the AWS regions which are supported for monitoring. AWSRegions []string // MetricsAddress is the address where to serve prometheus metrics. MetricsAddress string // SkipperBackendWeightAnnotation is the annotation on the ingress indicating the backend weights SkipperBackendWeightAnnotation []string // Whether to disregard failing to create collectors for incompatible HPAs - such as when using // kube-metrics-adapter beside another Metrics Provider DisregardIncompatibleHPAs bool }
func (AdapterServerOptions) RunCustomMetricsAdapterServer ¶
func (o AdapterServerOptions) RunCustomMetricsAdapterServer(stopCh <-chan struct{}) error
Click to show internal directories.
Click to hide internal directories.