Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { Opts ServiceOpts Ctx context.Context Config *rest.Config Clientset *kubernetes.Clientset Nodes []ServiceNode Prometheus map[string]*ServicePrometheus // contains filtered or unexported fields }
func NewService ¶
func NewService(opts ServiceOpts) (*Service, error)
func (*Service) CleanupPrometheusTargets ¶ added in v0.1.10
func (s *Service) CleanupPrometheusTargets()
func (*Service) PrometheusForTarget ¶
func (s *Service) PrometheusForTarget(target string) (*ServicePrometheus, error)
func (*Service) UpdateNodes ¶
type ServiceNode ¶
type ServiceOpts ¶
type ServicePrometheus ¶
type ServicePrometheus struct { Reachable prometheus.Gauge Latency prometheus.Histogram PacketsSent prometheus.Counter PacketsReceived prometheus.Counter PacketsLost prometheus.Counter }
func (ServicePrometheus) Register ¶ added in v0.1.10
func (sp ServicePrometheus) Register() error
func (ServicePrometheus) Unregister ¶ added in v0.1.10
func (sp ServicePrometheus) Unregister()
Click to show internal directories.
Click to hide internal directories.