callback

package
v5.1.10-release+incomp... Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2020 License: LGPL-3.0 Imports: 11 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	discover.Callback
	Prometheus *prometheus.Manager
	// contains filtered or unexported fields
}

App 指app运行时信息,来源于所有子节点上的node 127.0.0.1:6100/app/metrics

func (*App) Add

func (e *App) Add(event *watch.Event)

Add add

func (*App) AddEndpoint

func (e *App) AddEndpoint(end *config.Endpoint)

AddEndpoint add endpoint

func (*App) Delete

func (e *App) Delete(event *watch.Event)

Delete Delete

func (*App) Error

func (e *App) Error(err error)

func (*App) Modify

func (e *App) Modify(event *watch.Event)

Modify Modify

func (*App) Name

func (e *App) Name() string

Name name

func (*App) UpdateEndpoints

func (e *App) UpdateEndpoints(endpoints ...*config.Endpoint)

UpdateEndpoints update endpoint

type Builder

type Builder struct {
	discover.Callback
	Prometheus *prometheus.Manager
	// contains filtered or unexported fields
}

Builder builder

func (*Builder) Error

func (b *Builder) Error(err error)

Error handle error

func (*Builder) Name

func (b *Builder) Name() string

Name name

func (*Builder) UpdateEndpoints

func (b *Builder) UpdateEndpoints(endpoints ...*config.Endpoint)

UpdateEndpoints update endpoints

type Cadvisor

type Cadvisor struct {
	discover.Callback
	Prometheus *prometheus.Manager

	ListenPort int
	// contains filtered or unexported fields
}

Cadvisor 指容器监控数据,来源于所有子节点上的kubelet 127.0.0.1:4194/metrics

func (*Cadvisor) Add

func (c *Cadvisor) Add(event *watch.Event)

Add add

func (*Cadvisor) AddEndpoint

func (c *Cadvisor) AddEndpoint(end *config.Endpoint)

AddEndpoint add endpoint

func (*Cadvisor) Delete

func (c *Cadvisor) Delete(event *watch.Event)

Delete delete

func (*Cadvisor) Error

func (c *Cadvisor) Error(err error)

func (*Cadvisor) Modify

func (c *Cadvisor) Modify(event *watch.Event)

Modify update

func (*Cadvisor) Name

func (c *Cadvisor) Name() string

Name name

func (*Cadvisor) UpdateEndpoints

func (c *Cadvisor) UpdateEndpoints(endpoints ...*config.Endpoint)

UpdateEndpoints update endpoint

type Etcd

type Etcd struct {
	discover.Callback
	Prometheus *prometheus.Manager
	// contains filtered or unexported fields
}

Etcd etcd discover

func (*Etcd) Error

func (e *Etcd) Error(err error)

func (*Etcd) Name

func (e *Etcd) Name() string

Name name

func (*Etcd) UpdateEndpoints

func (e *Etcd) UpdateEndpoints(endpoints ...*config.Endpoint)

UpdateEndpoints update endpoints

type EventLog

type EventLog struct {
	discover.Callback
	Prometheus *prometheus.Manager
	// contains filtered or unexported fields
}

EventLog event log

func (*EventLog) Error

func (e *EventLog) Error(err error)

func (*EventLog) Name

func (e *EventLog) Name() string

Name name

func (*EventLog) UpdateEndpoints

func (e *EventLog) UpdateEndpoints(endpoints ...*config.Endpoint)

UpdateEndpoints update endpoint

type GatewayNode

type GatewayNode struct {
	discover.Callback
	Prometheus *prometheus.Manager
	// contains filtered or unexported fields
}

GatewayNode node discover

func (*GatewayNode) AddEndpoint

func (e *GatewayNode) AddEndpoint(end *config.Endpoint)

AddEndpoint add endpoint

func (*GatewayNode) Error

func (e *GatewayNode) Error(err error)

func (*GatewayNode) Name

func (e *GatewayNode) Name() string

Name name

func (*GatewayNode) UpdateEndpoints

func (e *GatewayNode) UpdateEndpoints(endpoints ...*config.Endpoint)

UpdateEndpoints update endpoints

type Mq

type Mq struct {
	discover.Callback
	Prometheus *prometheus.Manager
	// contains filtered or unexported fields
}

Mq discover

func (*Mq) Error

func (m *Mq) Error(err error)

func (*Mq) Name

func (m *Mq) Name() string

Name name

func (*Mq) UpdateEndpoints

func (m *Mq) UpdateEndpoints(endpoints ...*config.Endpoint)

UpdateEndpoints update endpoint

type Node

type Node struct {
	discover.Callback
	Prometheus *prometheus.Manager
	// contains filtered or unexported fields
}

Node node discover

func (*Node) Add

func (e *Node) Add(event *watch.Event)

Add add

func (*Node) AddEndpoint

func (e *Node) AddEndpoint(end *config.Endpoint)

AddEndpoint add endpoint

func (*Node) Delete

func (e *Node) Delete(event *watch.Event)

Delete delete

func (*Node) Error

func (e *Node) Error(err error)

func (*Node) Modify

func (e *Node) Modify(event *watch.Event)

Modify modify

func (*Node) Name

func (e *Node) Name() string

Name name

func (*Node) UpdateEndpoints

func (e *Node) UpdateEndpoints(endpoints ...*config.Endpoint)

UpdateEndpoints update endpoints

type Prometheus

type Prometheus struct {
	discover.Callback
	Prometheus *prometheus.Manager
	// contains filtered or unexported fields
}

Prometheus 指prometheus的运行指标,数据来源于prometheus自身API

func (*Prometheus) Error

func (e *Prometheus) Error(err error)

Error handle error

func (*Prometheus) Name

func (e *Prometheus) Name() string

Name name

func (*Prometheus) UpdateEndpoints

func (e *Prometheus) UpdateEndpoints(endpoints ...*config.Endpoint)

UpdateEndpoints update endpoint

type Webcli

type Webcli struct {
	discover.Callback
	Prometheus *prometheus.Manager
	// contains filtered or unexported fields
}

Webcli webcli

func (*Webcli) Error

func (w *Webcli) Error(err error)

Error handle error

func (*Webcli) Name

func (w *Webcli) Name() string

Name name

func (*Webcli) UpdateEndpoints

func (w *Webcli) UpdateEndpoints(endpoints ...*config.Endpoint)

UpdateEndpoints update endpoints

type Worker

type Worker struct {
	discover.Callback
	Prometheus *prometheus.Manager
	// contains filtered or unexported fields
}

Worker worker monitor 127.0.0.1:6369/metrics

func (*Worker) Error

func (e *Worker) Error(err error)

func (*Worker) Name

func (e *Worker) Name() string

Name return name

func (*Worker) UpdateEndpoints

func (e *Worker) UpdateEndpoints(endpoints ...*config.Endpoint)

UpdateEndpoints update endpoint

Jump to

Keyboard shortcuts

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