Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllowDenyLister ¶
AllowDenyLister interface for AllowDeny lister that can allow or exclude metrics by there names
type BuildStoresFunc ¶ added in v2.1.1
type BuildStoresFunc func(metricFamilies []generator.FamilyGenerator, expectedType interface{}, listWatchFunc func(kubeClient clientset.Interface, ns string) cache.ListerWatcher, useAPIServerCache bool, ) []*metricsstore.MetricsStore
BuildStoresFunc function signature that is used to return a list of metricsstore.MetricsStore
type BuilderInterface ¶
type BuilderInterface interface { WithMetrics(r prometheus.Registerer) WithEnabledResources(c []string) error WithNamespaces(n options.NamespaceList) WithSharding(shard int32, totalShards int) WithContext(ctx context.Context) WithKubeClient(c clientset.Interface) WithVPAClient(c vpaclientset.Interface) WithAllowDenyList(l AllowDenyLister) WithAllowLabels(l map[string][]string) WithGenerateStoresFunc(f BuildStoresFunc, useAPIServerCache bool) DefaultGenerateStoresFunc() BuildStoresFunc Build() []metricsstore.MetricsWriter }
BuilderInterface represent all methods that a Builder should implements
Click to show internal directories.
Click to hide internal directories.