grafana

package
v2.0.0-...-27a1933 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultDataSource             = "prometheus"
	GPerm             os.FileMode = 0644
)

Variables

View Source
var Cmd = &cobra.Command{
	Use:   "grafana",
	Short: "Import/export Grafana dashboards",
	Long:  "Grafana tool - Import/Export Grafana dashboards",
}

Functions

func ShortPath

func ShortPath(dashPath string) string

ShortPath turns ../../../grafana/dashboards/cmode/aggregate.json into cmode/aggregate.json

func VisitAllPanels

func VisitAllPanels(data []byte, handle func(path string, key gjson.Result, value gjson.Result))

func VisitDashboards

func VisitDashboards(dirs []string, eachDash func(path string, data []byte))

Types

type Folder

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

type Metric

type Metric struct {
	Metric         string `yaml:"metric"`
	OntapUnit      string `yaml:"ontapUnit"`
	GrafanaJSON    string `yaml:"grafanaJson"`
	GrafanaDisplay string `yaml:"grafanaDisplay"`
	Comment        string `yaml:"comment"`
	// contains filtered or unexported fields
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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