Documentation ¶
Index ¶
- func GetDashboardFiles(ctx context.Context) map[string][]byte
- func GetDashboards(ctx context.Context) []map[string]interface{}
- func GetPromRules(ctx context.Context) map[string][]rulefmt.RuleGroup
- func GetPromServers(ctx context.Context) []string
- func GetPromTargets(ctx context.Context) map[string]map[string][]labels.Labels
- func SetDashboardFiles(ctx context.Context, dashboards map[string][]byte) context.Context
- func SetDashboards(ctx context.Context, dashboards []map[string]interface{}) context.Context
- func SetPromRules(ctx context.Context, tg string, rules []rulefmt.RuleGroup) context.Context
- func SetPromServers(ctx context.Context, servers []string) context.Context
- func SetPromTargets(ctx context.Context, targets map[string]map[string][]labels.Labels) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDashboardFiles ¶ added in v0.0.5
GetDashboardFiles gets Grafana dashboard files from the context
func GetDashboards ¶ added in v0.0.5
GetDashboards gets Grafana dashboards from the context
func GetPromRules ¶
GetPromRules gets Prometheus rule groups from the context
func GetPromServers ¶ added in v0.0.5
GetPromServers gets Prometheus server IP's from the context
func GetPromTargets ¶
func SetDashboardFiles ¶ added in v0.0.5
SetDashboardFiles adds Grafana dashboard files to the Context
func SetDashboards ¶ added in v0.0.5
SetDashboards adds dashboards to the context
func SetPromRules ¶
SetPromRules adds Prometheus rule groups to the context
func SetPromServers ¶ added in v0.0.5
SetPromServers adds Prometheus server IP's to the context
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.