grafana

package
v1.86.1 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DashboardSupplier = findDashboard

Functions

This section is empty.

Types

type DashboardSupplierFunc

type DashboardSupplierFunc func(string, string, *config.Auth) ([]byte, int, error)

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service provides discovery and info about Grafana.

func NewService

func NewService(conf *config.Config, homeClusterSAClient kubernetes.ClientInterface) *Service

NewService creates a new Grafana service.

func (*Service) Info

func (s *Service) Info(ctx context.Context, dashboardSupplier DashboardSupplierFunc) (*models.GrafanaInfo, int, error)

GetGrafanaInfo returns the Grafana URL and other info, the HTTP status code (int) and eventually an error

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

func (*Service) URL

func (s *Service) URL(ctx context.Context) string

Jump to

Keyboard shortcuts

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