grafana

package
v0.0.0-...-d125d34 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Content

type Content struct {
	APIVersion  int          `yaml:"apiVersion"`
	Datasources []DataSource `yaml:"datasources"`
}

type Dashboard

type Dashboard struct {
	Title string   `json:"title"`
	UID   string   `json:"uid"`
	Tags  []string `json:"tags"`
}

Dashboard used to unmarshal grafana dashboard's content

type DataSource

type DataSource struct {
	Name string `yaml:"name"`
	Type string `yaml:"type"` // only use prometheus currently
	URL  string `yaml:"url"`
}

type Service

type Service interface {
	SyncDatasource(ctx context.Context)
	ListDashboards(ctx context.Context) ([]*Dashboard, error)
}

func NewService

func NewService(config grafana.Config, manager *managerparam.Manager, client kubernetes.Interface) Service

Jump to

Keyboard shortcuts

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