Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProvider ¶
func NewProvider(ctx context.Context, adapterLogger logr.Logger, client client.Client, grpcClient metricsservice.GrpcClient) provider.ExternalMetricsProvider
NewProvider returns an instance of KedaProvider
Types ¶
type KedaProvider ¶
type KedaProvider struct { defaults.DefaultExternalMetricsProvider // contains filtered or unexported fields }
KedaProvider implements External Metrics Provider
func (*KedaProvider) GetExternalMetric ¶
func (p *KedaProvider) GetExternalMetric(ctx context.Context, namespace string, metricSelector labels.Selector, info provider.ExternalMetricInfo) (*external_metrics.ExternalMetricValueList, error)
GetExternalMetric retrieves metrics from the scalers Metric is normally identified by a name and a set of labels/tags. It is up to a specific implementation how to translate metricSelector to a filter for metric values. Namespace can be used by the implementation for metric identification, access control or ignored.
Click to show internal directories.
Click to hide internal directories.