Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Event ¶
type Event struct { APIVersion string `json:"apiVersion"` Count int64 `json:"count"` FirstTimestamp *time.Time `json:"firstTimestamp"` InvolvedObject struct { APIVersion string `json:"apiVersion"` Kind string `json:"kind"` Name string `json:"name"` ResourceVersion string `json:"resourceVersion"` UID string `json:"uid"` } `json:"involvedObject"` Kind string `json:"kind"` LastTimestamp *time.Time `json:"lastTimestamp"` Message string `json:"message"` Metadata ObjectMeta `json:"metadata"` Reason string `json:"reason"` Source struct { Component string `json:"component"` Host string `json:"host"` } `json:"source"` Type string `json:"type"` }
type MetricSet ¶
type MetricSet struct { mb.BaseMetricSet // contains filtered or unexported fields }
MetricSet type defines all fields of the MetricSet The event MetricSet listens to events from Kubernetes API server and streams them to the output. MetricSet implements the mb.PushMetricSet interface, and therefore does not rely on polling.
func (*MetricSet) Run ¶
func (m *MetricSet) Run(reporter mb.PushReporter)
Run method provides the Kubernetes event watcher with a reporter with which events can be reported.
type ObjectMeta ¶
type ObjectMeta struct { Annotations map[string]string `json:"annotations"` CreationTimestamp *time.Time `json:"creationTimestamp"` DeletionTimestamp *time.Time `json:"deletionTimestamp"` GenerateName string `json:"generateName"` Labels map[string]string `json:"labels"` Name string `json:"name"` Namespace string `json:"namespace"` OwnerReferences []struct { APIVersion string `json:"apiVersion"` Controller bool `json:"controller"` Kind string `json:"kind"` Name string `json:"name"` UID string `json:"uid"` } `json:"ownerReferences"` ResourceVersion string `json:"resourceVersion"` SelfLink string `json:"selfLink"` UID string `json:"uid"` }
type Watcher ¶
type Watcher struct {
// contains filtered or unexported fields
}
Watcher is a controller that synchronizes Pods.
func NewWatcher ¶
NewWatcher initializes the watcher client to provide a local state of pods from the cluster (filtered to the given host)
Click to show internal directories.
Click to hide internal directories.