server

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: MIT Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommandStartAdapterServer

func NewCommandStartAdapterServer(stopCh <-chan struct{}) *cobra.Command

NewCommandStartAdapterServer provides a CLI handler for 'start adapter server' command

Types

type AdapterServerOptions

type AdapterServerOptions struct {
	*options.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
	// NakadiEndpoint enables Nakadi metrics from the specified endpoint
	NakadiEndpoint string
	// NakadiTokenName is the name of the token used to call Nakadi
	NakadiTokenName 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
	// SkipperRouteGroupMetrics switches on support for skipper routegroup
	// based metric collection.
	SkipperRouteGroupMetrics 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
	// TTL for metrics that are stored in in-memory cache
	MetricsTTL time.Duration
	// Interval to clean up metrics that are stored in in-memory cache
	GCInterval time.Duration
	// Time-based scaling based on the CRDs ScheduleScaling and ClusterScheduleScaling.
	ScalingScheduleMetrics bool
	// Default ramp-up/ramp-down window duration for scheduled metrics
	DefaultScheduledScalingWindow time.Duration
	// Number of steps utilized during the rampup and rampdown for scheduled metrics
	RampSteps int
	// Default time zone to use for ScalingSchedules.
	DefaultTimeZone string
	// Feature flag to enable external rps metric collector
	ExternalRPSMetrics bool
	// Name of the Prometheus metric that stores RPS by hostname for external RPS metrics.
	ExternalRPSMetricName string
}

func (AdapterServerOptions) RunCustomMetricsAdapterServer

func (o AdapterServerOptions) RunCustomMetricsAdapterServer(stopCh <-chan struct{}) error

Jump to

Keyboard shortcuts

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