mixer

package
v0.0.0-...-f77f7f2 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2024 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Overview

Ignore deprecated warnings until we fix https://github.com/monitoring-mixins/mixtool/issues/22

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateAlerts

func GenerateAlerts(filename string, opts GenerateOptions) ([]byte, error)

func GenerateDashboards

func GenerateDashboards(filename string, opts GenerateOptions) (map[string]json.RawMessage, error)

func GenerateRules

func GenerateRules(filename string, opts GenerateOptions) ([]byte, error)

func GenerateRulesAlerts

func GenerateRulesAlerts(filename string, opts GenerateOptions) ([]byte, error)

func Lint

func Lint(w io.Writer, filename string, options LintOptions) error

func NewGrafanaDashboard

func NewGrafanaDashboard() ([]byte, error)

func NewPrometheusAlerts

func NewPrometheusAlerts() ([]byte, error)

func NewPrometheusRules

func NewPrometheusRules() ([]byte, error)

func NewVM

func NewVM(jpath []string) *jsonnet.VM

Types

type GenerateOptions

type GenerateOptions struct {
	AlertsFilename string
	RulesFilename  string
	Directory      string
	JPaths         []string
	YAML           bool
}

type LintOptions

type LintOptions struct {
	JPaths     []string
	Grafana    bool
	Prometheus bool
}

Jump to

Keyboard shortcuts

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