Versions in this module Expand all Collapse all v2 v2.30.1 Jul 6, 2021 Changes in this version + const NodeLegacyHostIP + var DefaultSDConfig = SDConfig + func GetControllerOf(controllee metav1.Object) *metav1.OwnerReference + type Discovery struct + func New(l log.Logger, conf *SDConfig) (*Discovery, error) + func (d *Discovery) Run(ctx context.Context, ch chan<- []*targetgroup.Group) + type EndpointSlice struct + func NewEndpointSlice(l log.Logger, svc, eps, pod cache.SharedInformer) *EndpointSlice + func (e *EndpointSlice) Run(ctx context.Context, ch chan<- []*targetgroup.Group) + type Endpoints struct + func NewEndpoints(l log.Logger, svc, eps, pod cache.SharedInformer) *Endpoints + func (e *Endpoints) Run(ctx context.Context, ch chan<- []*targetgroup.Group) + type Ingress struct + func NewIngress(l log.Logger, inf cache.SharedInformer) *Ingress + func (i *Ingress) Run(ctx context.Context, ch chan<- []*targetgroup.Group) + type NamespaceDiscovery struct + Names []string + func (c *NamespaceDiscovery) UnmarshalYAML(unmarshal func(interface{}) error) error + type Node struct + func NewNode(l log.Logger, inf cache.SharedInformer) *Node + func (n *Node) Run(ctx context.Context, ch chan<- []*targetgroup.Group) + type Pod struct + func NewPod(l log.Logger, pods cache.SharedInformer) *Pod + func (p *Pod) Run(ctx context.Context, ch chan<- []*targetgroup.Group) + type Role string + const RoleEndpoint + const RoleEndpointSlice + const RoleIngress + const RoleNode + const RolePod + const RoleService + func (c *Role) UnmarshalYAML(unmarshal func(interface{}) error) error + type SDConfig struct + APIServer config.URL + HTTPClientConfig config.HTTPClientConfig + KubeConfig string + NamespaceDiscovery NamespaceDiscovery + Role Role + Selectors []SelectorConfig + func (*SDConfig) Name() string + func (c *SDConfig) NewDiscoverer(opts discovery.DiscovererOptions) (discovery.Discoverer, error) + func (c *SDConfig) SetDirectory(dir string) + func (c *SDConfig) UnmarshalYAML(unmarshal func(interface{}) error) error + type SelectorConfig struct + Field string + Label string + Role Role + type Service struct + func NewService(l log.Logger, inf cache.SharedInformer) *Service + func (s *Service) Run(ctx context.Context, ch chan<- []*targetgroup.Group) Other modules containing this package github.com/wangjc0216/prometheus