metrics

package
v1.18.5 Latest Latest
Warning

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

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

Documentation

Overview

Package metrics handles the processing of all metrics. This file handles metrics for ipamd

Package metrics provide common data structure and routines for converting/aggregating prometheus metrics to cloudwatch metrics

Index

Constants

This section is empty.

Variables

View Source
var InterestingCNIMetrics = map[string]metricsConvert{
	"awscni_assigned_ip_addresses": {
		// contains filtered or unexported fields
	},
	"awscni_total_ip_addresses": {
		// contains filtered or unexported fields
	},
	"awscni_total_ipv4_prefixes": {
		// contains filtered or unexported fields
	},
	"awscni_assigned_ip_per_cidr": {
		// contains filtered or unexported fields
	},
	"awscni_eni_allocated": {
		// contains filtered or unexported fields
	},
	"awscni_eni_max": {
		// contains filtered or unexported fields
	},
	"awscni_ip_max": {
		// contains filtered or unexported fields
	},
	"awscni_aws_api_latency_ms": {
		// contains filtered or unexported fields
	},
	"awscni_aws_api_error_count": {
		// contains filtered or unexported fields
	},
	"awscni_aws_utils_error_count": {
		// contains filtered or unexported fields
	},
	"awscni_ipamd_error_count": {
		// contains filtered or unexported fields
	},
	"awscni_force_removed_enis": {
		// contains filtered or unexported fields
	},
	"awscni_force_removed_ips": {
		// contains filtered or unexported fields
	},
	"awscni_ipamd_action_inprogress": {
		// contains filtered or unexported fields
	},
	"awscni_reconcile_count": {
		// contains filtered or unexported fields
	},
	"awscni_add_ip_req_count": {
		// contains filtered or unexported fields
	},
	"awscni_del_ip_req_count": {
		// contains filtered or unexported fields
	},
	"awscni_pod_eni_error_count": {
		// contains filtered or unexported fields
	},
	"awscni_ec2api_req_count": {
		// contains filtered or unexported fields
	},
	"awscni_ec2api_error_count": {
		// contains filtered or unexported fields
	},
}

InterestingCNIMetrics defines metrics parsing definition for kube-state-metrics

Functions

func Handler

func Handler(ctx context.Context, t metricsTarget)

Handler grabs metrics from target, aggregates the metrics and convert them into cloudwatch metrics

func NewDefaultPodWatcher added in v1.8.0

func NewDefaultPodWatcher(k8sClient client.Client, log logger.Logger) *defaultPodWatcher

NewDefaultPodWatcher creates a new podWatcher

Types

type CNIMetricsTarget

type CNIMetricsTarget struct {
	// contains filtered or unexported fields
}

CNIMetricsTarget defines data structure for kube-state-metric target

func CNIMetricsNew

func CNIMetricsNew(k8sClient kubernetes.Interface, cw publisher.Publisher, submitCW bool, submitPrometheus bool, l logger.Logger,
	watcher *defaultPodWatcher) *CNIMetricsTarget

CNIMetricsNew creates a new metricsTarget

type PodWatcher added in v1.8.0

type PodWatcher interface {
	GetCNIPods(ctx context.Context) ([]string, error)
}

Jump to

Keyboard shortcuts

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