Versions in this module Expand all Collapse all v0 v0.8.2 Nov 19, 2026 v0.8.1 Nov 19, 2026 v0.8.0 Nov 19, 2026 v0.7.1 Nov 14, 2026 v0.7.0 Nov 12, 2026 v0.7.0-alpha.1 Nov 10, 2026 v0.6.0 Nov 9, 2026 Changes in this version type Kube + func KubeFor(kube kubernetes.Interface, inCluster bool) Kube v0.5.1 Nov 8, 2026 v0.5.0 Nov 7, 2026 Changes in this version + const CollectorName + const Key + const MaxBody + const OffReason + const StatsFilter + const StatsPort + const ValueKey + func NewHTTPClient() *http.Client + type Collector struct + func New(cfg Config) *Collector + func (c *Collector) Round(ctx context.Context) (Stats, uint64, bool) + func (c *Collector) Run(ctx context.Context, ...) error + func (c *Collector) Tracked() int + type Config struct + Clock clock.WithTicker + Every time.Duration + Installs func() ([]Install, *cache.Snapshot) + Off bool + Source Source + type Gateway struct + Gateway objects.Ref + Observed bool + Pods []Pod + type Install struct + Gateways []objects.Ref + Resolved install.Resolved + type Kube struct + Client *http.Client + Kube kubernetes.Interface + Port int32 + func (Kube) Interpret(t Target, body []byte) (PodStats, error) + func (k Kube) Fetch(ctx context.Context, t Target) ([]byte, error) + func (k Kube) Targets(in install.Resolved, gw objects.Ref, snap *cache.Snapshot) ([]Target, bool) + type Pair struct + Rejected int64 + Success int64 + type Pod struct + CDS Rejects + Clusters []string + ClustersTruncated bool + Connected *bool + Err string + LDS Rejects + Name string + Names []string + RDS []string + RDSTruncated bool + ServerState string + UID string + WarmingClusters *int64 + WarmingListeners *int64 + type PodStats struct + CDS Pair + Clusters map[string]int64 + ClustersTruncated bool + Connected *bool + Err string + Gateway objects.Ref + LDS Pair + Name string + RDS map[string]int64 + RDSTruncated bool + ServerState string + UID string + Uptime int64 + WarmingClusters *int64 + WarmingListeners *int64 + func ParseEnvoy(body []byte) (PodStats, error) + type Rejects struct + Seen bool + Since time.Time + type Source interface + Fetch func(ctx context.Context, t Target) ([]byte, error) + Interpret func(t Target, body []byte) (PodStats, error) + Targets func(in install.Resolved, gw objects.Ref, snap *cache.Snapshot) ([]Target, bool) + type Stats map[string][]Gateway + type Target struct + Addr string + Gateway objects.Ref + ID string + Name string