backend

package
v0.10.0-rc5 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2023 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// The "default" default node spec. Exported for testing purposes.
	FallbackDefaultNodeSpec = &node.MetricsCapabilitySpec{
		Rules: &v1beta1.RulesSpec{
			Discovery: &v1beta1.DiscoverySpec{
				PrometheusRules: &v1beta1.PrometheusRulesSpec{},
			},
		},
		Driver: &node.MetricsCapabilitySpec_Prometheus{
			Prometheus: &node.PrometheusSpec{
				DeploymentStrategy: "externalPromOperator",
			},
		},
	}
)

Functions

This section is empty.

Types

type KVClients added in v0.9.2

type KVClients struct {
	DefaultCapabilitySpec storage.ValueStoreT[*node.MetricsCapabilitySpec]
	NodeCapabilitySpecs   storage.KeyValueStoreT[*node.MetricsCapabilitySpec]
}

type MetricsBackend

func (*MetricsBackend) AddTarget added in v0.8.2

func (*MetricsBackend) CanInstall

func (m *MetricsBackend) CanInstall(_ context.Context, _ *emptypb.Empty) (*emptypb.Empty, error)

func (*MetricsBackend) CancelUninstall

func (m *MetricsBackend) CancelUninstall(ctx context.Context, cluster *corev1.Reference) (*emptypb.Empty, error)

func (*MetricsBackend) ConfigureCluster

func (m *MetricsBackend) ConfigureCluster(ctx context.Context, in *cortexops.ClusterConfiguration) (*emptypb.Empty, error)

func (*MetricsBackend) Discover added in v0.8.2

func (*MetricsBackend) EditTarget added in v0.8.2

func (m *MetricsBackend) EditTarget(ctx context.Context, request *remoteread.TargetEditRequest) (*emptypb.Empty, error)

func (*MetricsBackend) GetClusterConfiguration

func (m *MetricsBackend) GetClusterConfiguration(ctx context.Context, in *emptypb.Empty) (*cortexops.ClusterConfiguration, error)

func (*MetricsBackend) GetClusterStatus

func (m *MetricsBackend) GetClusterStatus(ctx context.Context, in *emptypb.Empty) (*cortexops.InstallStatus, error)

func (*MetricsBackend) GetDefaultConfiguration added in v0.9.2

func (m *MetricsBackend) GetDefaultConfiguration(ctx context.Context, _ *emptypb.Empty) (*node.MetricsCapabilitySpec, error)

func (*MetricsBackend) GetNodeConfiguration added in v0.9.2

func (m *MetricsBackend) GetNodeConfiguration(ctx context.Context, node *v1.Reference) (*node.MetricsCapabilitySpec, error)

func (*MetricsBackend) GetTargetStatus added in v0.8.2

func (*MetricsBackend) Info

func (*MetricsBackend) Initialize

func (m *MetricsBackend) Initialize(conf MetricsBackendConfig)

func (*MetricsBackend) Install

func (*MetricsBackend) InstallerTemplate

func (*MetricsBackend) ListTargets added in v0.8.2

func (*MetricsBackend) RemoveTarget added in v0.8.2

func (m *MetricsBackend) RemoveTarget(ctx context.Context, request *remoteread.TargetRemoveRequest) (*emptypb.Empty, error)

func (*MetricsBackend) SetDefaultConfiguration added in v0.9.2

func (m *MetricsBackend) SetDefaultConfiguration(ctx context.Context, conf *node.MetricsCapabilitySpec) (*emptypb.Empty, error)

func (*MetricsBackend) SetNodeConfiguration added in v0.9.2

func (m *MetricsBackend) SetNodeConfiguration(ctx context.Context, req *node.NodeConfigRequest) (*emptypb.Empty, error)

func (*MetricsBackend) Start added in v0.8.2

func (*MetricsBackend) Status

func (*MetricsBackend) Stop added in v0.8.2

func (*MetricsBackend) Sync

Implements node.NodeMetricsCapabilityServer

func (*MetricsBackend) Uninstall

func (m *MetricsBackend) Uninstall(ctx context.Context, req *v1.UninstallRequest) (*emptypb.Empty, error)

func (*MetricsBackend) UninstallCluster

func (m *MetricsBackend) UninstallCluster(ctx context.Context, in *emptypb.Empty) (*emptypb.Empty, error)

func (*MetricsBackend) UninstallStatus

func (m *MetricsBackend) UninstallStatus(_ context.Context, cluster *corev1.Reference) (*corev1.TaskStatus, error)

type MetricsBackendConfig

type MetricsBackendConfig struct {
	Logger              *zap.SugaredLogger                                         `validate:"required"`
	StorageBackend      storage.Backend                                            `validate:"required"`
	MgmtClient          managementv1.ManagementClient                              `validate:"required"`
	NodeManagerClient   capabilityv1.NodeManagerClient                             `validate:"required"`
	UninstallController *task.Controller                                           `validate:"required"`
	ClusterDriver       drivers.ClusterDriver                                      `validate:"required"`
	Delegate            streamext.StreamDelegate[remoteread.RemoteReadAgentClient] `validate:"required"`
	KV                  *KVClients
}

Jump to

Keyboard shortcuts

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