stores

package
v1.247346.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MeasurementsExpiry = 10 * time.Minute
	PodsExpiry         = 2 * time.Minute
)

Variables

This section is empty.

Functions

This section is empty.

Types

type K8sStore

type K8sStore interface {
	Decorate(metric telegraf.Metric, kubernetesBlob map[string]interface{}) bool
	RefreshTick()
}

type Owner

type Owner struct {
	OwnerKind string `json:"owner_kind"`
	OwnerName string `json:"owner_name"`
}

type PodStore

type PodStore struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewPodStore

func NewPodStore(hostIP string, prefFullPodName bool) *PodStore

func (*PodStore) Decorate

func (p *PodStore) Decorate(metric telegraf.Metric, kubernetesBlob map[string]interface{}) bool

func (*PodStore) RefreshTick

func (p *PodStore) RefreshTick()

type ServiceStore

type ServiceStore struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewServiceStore

func NewServiceStore() *ServiceStore

func (*ServiceStore) Decorate

func (s *ServiceStore) Decorate(metric telegraf.Metric, kubernetesBlob map[string]interface{}) bool

service info is not mandatory

func (*ServiceStore) RefreshTick

func (s *ServiceStore) RefreshTick()

Jump to

Keyboard shortcuts

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