datahub

package
v4.2.160+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2019 License: Apache-2.0 Imports: 46 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	BindAddress string                      `mapstructure:"bind-address"`
	Prometheus  *prometheus.Config          `mapstructure:"prometheus"`
	InfluxDB    *influxdb_repository.Config `mapstructure:"influxdb"`
	WeaveScope  *weavescope.Config          `mapstructure:"weavescope"`
	Log         *log.Config                 `mapstructure:"log"`
}

func NewDefaultConfig

func NewDefaultConfig() Config

func (*Config) Validate

func (c *Config) Validate() error

type Server

type Server struct {
	Config    Config
	K8SClient client.Client
	// contains filtered or unexported fields
}

func NewServer

func NewServer(cfg Config) (*Server, error)

func (*Server) CreateAlamedaNodes

func (s *Server) CreateAlamedaNodes(ctx context.Context, in *datahub_v1alpha1.CreateAlamedaNodesRequest) (*status.Status, error)

CreateAlamedaNodes add node information to database

func (*Server) CreateControllerPlannings

func (s *Server) CreateControllerPlannings(ctx context.Context, in *datahub_v1alpha1.CreateControllerPlanningsRequest) (*status.Status, error)

CreateControllerPlannings add controller plannings information to database

func (*Server) CreateControllerRecommendations added in v0.3.8

func (s *Server) CreateControllerRecommendations(ctx context.Context, in *datahub_v1alpha1.CreateControllerRecommendationsRequest) (*status.Status, error)

CreatePodRecommendations add pod recommendations information to database

func (*Server) CreateControllers added in v0.3.9

func (*Server) CreateNodePredictions

func (s *Server) CreateNodePredictions(ctx context.Context, in *datahub_v1alpha1.CreateNodePredictionsRequest) (*status.Status, error)

CreateNodePredictions add node predictions information to database

func (*Server) CreatePodPlannings

func (s *Server) CreatePodPlannings(ctx context.Context, in *datahub_v1alpha1.CreatePodPlanningsRequest) (*status.Status, error)

CreatePodPlannings add pod plannings information to database

func (*Server) CreatePodPredictions

func (s *Server) CreatePodPredictions(ctx context.Context, in *datahub_v1alpha1.CreatePodPredictionsRequest) (*status.Status, error)

CreatePodPredictions add pod predictions information to database

func (*Server) CreatePodRecommendations

func (s *Server) CreatePodRecommendations(ctx context.Context, in *datahub_v1alpha1.CreatePodRecommendationsRequest) (*status.Status, error)

CreatePodRecommendations add pod recommendations information to database

func (*Server) CreatePods

CreatePods add containers information of pods to database

func (*Server) CreateSimulatedSchedulingScores

func (s *Server) CreateSimulatedSchedulingScores(ctx context.Context, in *datahub_v1alpha1.CreateSimulatedSchedulingScoresRequest) (*status.Status, error)

CreateSimulatedSchedulingScores add simulated scheduling scores to database

func (*Server) DeleteAlamedaNodes

func (s *Server) DeleteAlamedaNodes(ctx context.Context, in *datahub_v1alpha1.DeleteAlamedaNodesRequest) (*status.Status, error)

DeleteAlamedaNodes remove node information to database

func (*Server) DeleteControllers added in v0.3.11

func (*Server) DeletePods

DeletePods update containers information of pods to database

func (*Server) Err

func (s *Server) Err() <-chan error

func (*Server) GetWeaveScopeContainerDetails added in v0.3.21

func (*Server) GetWeaveScopeHostDetails added in v0.3.21

func (*Server) GetWeaveScopePodDetails added in v0.3.21

func (*Server) InitInfluxdbDatabase added in v0.3.8

func (s *Server) InitInfluxdbDatabase()

func (*Server) ListAlamedaNodes

ListAlamedaNodes list nodes in cluster

func (*Server) ListAlamedaPods

ListAlamedaPods returns predicted pods

func (*Server) ListAvailablePodRecommendations added in v0.3.8

ListAvailablePodRecommendations list pod recommendations

func (*Server) ListControllerPlannings

ListControllerPlannings list controller plannings

func (*Server) ListControllerRecommendations added in v0.3.8

ListControllerRecommendations list controller recommendations

func (*Server) ListControllers added in v0.3.9

func (*Server) ListNodeMetrics

ListNodeMetrics list nodes' metrics

func (*Server) ListNodePredictions

ListNodePredictions list nodes' predictions

func (*Server) ListNodes added in v0.3.0

func (*Server) ListPodMetrics

ListPodMetrics list pods' metrics

func (*Server) ListPodMetricsDemo added in v0.3.8

ListPodMetrics list pods' metrics for demo

func (*Server) ListPodPlannings

ListPodPlannings list pod plannings

func (*Server) ListPodPredictions

ListPodPredictions list pods' predictions

func (*Server) ListPodPredictionsDemo added in v0.3.8

ListPodPredictions list pods' predictions for demo

func (*Server) ListPodRecommendations

ListPodRecommendations list pod recommendations

func (*Server) ListPodsByNodeName

ListPodsByNodeName list pods running on specific nodes

func (*Server) ListSimulatedSchedulingScores

ListSimulatedSchedulingScores list simulated scheduling scores

func (*Server) ListWeaveScopeContainers added in v0.3.21

func (*Server) ListWeaveScopeContainersByHostname added in v0.3.21

func (*Server) ListWeaveScopeContainersByImage added in v0.3.21

func (*Server) ListWeaveScopeHosts added in v0.3.21

func (*Server) ListWeaveScopePods added in v0.3.21

func (*Server) Ping added in v0.3.50

func (s *Server) Ping(ctx context.Context, in *empty.Empty) (*status.Status, error)

func (*Server) ReadRawdata added in v0.3.31

Read rawdata from database

func (*Server) Run

func (s *Server) Run() error

func (*Server) Stop

func (s *Server) Stop() error

func (*Server) WriteRawdata added in v0.3.31

Write rawdata to database

Jump to

Keyboard shortcuts

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