business

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2020 License: Apache-2.0 Imports: 16 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

GetGrafanaLinks returns the links to Grafana dashboards and other info, the HTTP status code (int) and eventually an error

Types

type DashboardsService

type DashboardsService struct {
	Logger log.SafeAdapter
	// contains filtered or unexported fields
}

DashboardsService deals with fetching dashboards from k8s client

func NewDashboardsService

func NewDashboardsService(conf config.Config, logger log.LogAdapter) DashboardsService

NewDashboardsService initializes this business service

func (*DashboardsService) DiscoverDashboards

func (in *DashboardsService) DiscoverDashboards(namespace string, labelsFilters map[string]string) []model.Runtime

DiscoverDashboards tries to discover dashboards based on existing metrics

func (*DashboardsService) GetDashboard

func (in *DashboardsService) GetDashboard(params model.DashboardQuery, template string) (*model.MonitoringDashboard, error)

GetDashboard returns a dashboard filled-in with target data

func (*DashboardsService) SearchExplicitDashboards

func (in *DashboardsService) SearchExplicitDashboards(namespace string, pods []model.Pod) []model.Runtime

SearchExplicitDashboards will check annotations of all supplied pods to extract a unique list of dashboards

Accepted annotations are "kiali.io/runtimes" and "kiali.io/dashboards"

Jump to

Keyboard shortcuts

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