ctx

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDashboardFiles added in v0.0.5

func GetDashboardFiles(ctx context.Context) map[string][]byte

GetDashboardFiles gets Grafana dashboard files from the context

func GetDashboards added in v0.0.5

func GetDashboards(ctx context.Context) []map[string]interface{}

GetDashboards gets Grafana dashboards from the context

func GetPromRules

func GetPromRules(ctx context.Context) map[string][]rulefmt.RuleGroup

GetPromRules gets Prometheus rule groups from the context

func GetPromServers added in v0.0.5

func GetPromServers(ctx context.Context) []string

GetPromServers gets Prometheus server IP's from the context

func GetPromTargets

func GetPromTargets(ctx context.Context) map[string]map[string][]labels.Labels

func SetDashboardFiles added in v0.0.5

func SetDashboardFiles(ctx context.Context, dashboards map[string][]byte) context.Context

SetDashboardFiles adds Grafana dashboard files to the Context

func SetDashboards added in v0.0.5

func SetDashboards(ctx context.Context, dashboards []map[string]interface{}) context.Context

SetDashboards adds dashboards to the context

func SetPromRules

func SetPromRules(ctx context.Context, tg string, rules []rulefmt.RuleGroup) context.Context

SetPromRules adds Prometheus rule groups to the context

func SetPromServers added in v0.0.5

func SetPromServers(ctx context.Context, servers []string) context.Context

SetPromServers adds Prometheus server IP's to the context

func SetPromTargets

func SetPromTargets(ctx context.Context, targets map[string]map[string][]labels.Labels) context.Context

Types

This section is empty.

Jump to

Keyboard shortcuts

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