observabilityendpoint

package
v0.0.0-...-b9d0bfa Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2021 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Overview

Copyright (c) 2021 Red Hat, Inc. Copyright Contributors to the Open Cluster Management project.

Copyright (c) 2021 Red Hat, Inc. Copyright Contributors to the Open Cluster Management project.

Copyright (c) 2021 Red Hat, Inc. Copyright Contributors to the Open Cluster Management project.

Copyright (c) 2021 Red Hat, Inc. Copyright Contributors to the Open Cluster Management project.

Copyright (c) 2021 Red Hat, Inc. Copyright Contributors to the Open Cluster Management project.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HubInfo

type HubInfo struct {
	ClusterName          string `yaml:"cluster-name"`
	Endpoint             string `yaml:"endpoint"`
	AlertmanagerEndpoint string `yaml:"alertmanager-endpoint"`
	AlertmanagerRouterCA string `yaml:"alertmanager-router-ca"`
}

HubInfo is the struct for hub info

type MetricsAllowlist

type MetricsAllowlist struct {
	NameList  []string          `yaml:"names"`
	MatchList []string          `yaml:"matches"`
	ReNameMap map[string]string `yaml:"renames"`
	RuleList  []Rule            `yaml:"rules"`
}

type ObservabilityAddonReconciler

type ObservabilityAddonReconciler struct {
	Client    client.Client
	Scheme    *runtime.Scheme
	HubClient client.Client
}

ObservabilityAddonReconciler reconciles a ObservabilityAddon object

func (*ObservabilityAddonReconciler) Reconcile

Reconcile reads that state of the cluster for a ObservabilityAddon object and makes changes based on the state read and what is in the ObservabilityAddon.Spec The Controller will requeue the Request to be processed again if the returned error is non-nil or Result.Requeue is true, otherwise upon completion it will remove the work from the queue.

func (*ObservabilityAddonReconciler) SetupWithManager

func (r *ObservabilityAddonReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type Rule

type Rule struct {
	Record string `yaml:"record"`
	Expr   string `yaml:"expr"`
}

Rule is the struct for recording rules and alert rules

Jump to

Keyboard shortcuts

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