cloudmetrics

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

This controller reconciles metrics for cloud resources (currently redis and postgres) It takes a sync the world approach, reconciling all cloud resources every set period of time (currently every 5 minutes)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudMetricsReconciler

type CloudMetricsReconciler struct {
	k8sclient.Client
	// contains filtered or unexported fields
}

PostgresReconciler reconciles a Postgres object

func New

New returns a new reconcile.Reconciler

func (*CloudMetricsReconciler) Reconcile

func (r *CloudMetricsReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*CloudMetricsReconciler) SetupWithManager

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

type CroGaugeMetric

type CroGaugeMetric struct {
	Name         string
	GaugeVec     *prometheus.GaugeVec
	ProviderType map[string]providers.CloudProviderMetricType
}

CroGaugeMetric allows for a mapping between an exposed prometheus metric and multiple cloud provider specific metric

Jump to

Keyboard shortcuts

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