Documentation ¶
Index ¶
- func GetGrafanaLinks(logger log.SafeAdapter, cfg extconfig.GrafanaConfig, ...) ([]model.ExternalLink, int, error)
- type DashboardsService
- func (in *DashboardsService) DiscoverDashboards(namespace string, labelsFilters map[string]string) []model.Runtime
- func (in *DashboardsService) GetDashboard(params model.DashboardQuery, template string) (*model.MonitoringDashboard, error)
- func (in *DashboardsService) SearchExplicitDashboards(namespace string, pods []model.Pod) []model.Runtime
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGrafanaLinks ¶ added in v0.3.0
func GetGrafanaLinks(logger log.SafeAdapter, cfg extconfig.GrafanaConfig, linksSpec []v1alpha1.MonitoringDashboardExternalLink) ([]model.ExternalLink, int, error)
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"
Click to show internal directories.
Click to hide internal directories.