Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CurrentOnlines = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Name: "k8s_current_logs", Help: "Current logs websocket from k8s", }, []string{"namespace", "pod", "container"}, ) LogBufferTraffic = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: "k8s_log_traffic", Help: "k8s container log traffic", }, []string{"namespace", "pod", "container"}) )
Functions ¶
This section is empty.
Types ¶
type ContainerFilter ¶ added in v0.2.0
type ContainerFilter interface {
Accept(cs v1.ContainerStatus) bool
}
func NewContainerFilter ¶ added in v0.2.0
func NewContainerFilter(names []string) ContainerFilter
type Controller ¶
type Controller interface { Events() <-chan Event Close() Done() <-chan struct{} }
func NewController ¶
func NewController( ctx context.Context, cs kubernetes.Interface, rc *rest.Config, pcontroller pod.Controller, filter ContainerFilter, since time.Duration, taillines *int64) (Controller, error)
type DS ¶
type DS interface { Pods() pod.Controller Ready() <-chan struct{} Done() <-chan struct{} Close() }
type DSBuilder ¶
type DSBuilder interface { WithIgnore(selectors ...labels.Selector) DSBuilder WithSelectors(selectors ...labels.Selector) DSBuilder WithPods(id ...nsname.NSName) DSBuilder WithNamespace(name ...string) DSBuilder WithIgnoreNamespace(name ...string) DSBuilder WithService(id ...nsname.NSName) DSBuilder WithNode(name ...string) DSBuilder WithRC(id ...nsname.NSName) DSBuilder WithRS(id ...nsname.NSName) DSBuilder WithDS(id ...nsname.NSName) DSBuilder WithDeployment(id ...nsname.NSName) DSBuilder WithIngress(id ...nsname.NSName) DSBuilder Create(ctx context.Context, cs kubernetes.Interface, namespace string) (DS, error) }
func NewDSBuilder ¶
func NewDSBuilder() DSBuilder
type Event ¶
type Event interface { Source() EventSource Log() []byte }
type EventSource ¶
func SourcesForPod ¶ added in v0.5.0
func SourcesForPod( filter ContainerFilter, pod *v1.Pod) (nsname.NSName, []EventSource)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.