metrics

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Total number of node groups using outdated AMIs
	OutdatedNodeGroups = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name: "eks_nodegroup_outdated_total",
			Help: "Number of node groups that are not using the latest AMI per cluster",
		},
		[]string{"cluster"},
	)

	// Total number of upgrade attempts, labeled by cluster, nodegroup, and status
	UpgradeAttempts = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "ami_upgrade_attempts_total",
			Help: "Total number of AMI upgrade attempts",
		},
		[]string{"cluster", "nodegroup", "status"},
	)

	// Compliance status per node group (1 = compliant, 0 = not)
	ComplianceStatus = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name: "ami_compliance_status",
			Help: "Compliance status of node groups with latest AMI (1 = compliant, 0 = not)",
		},
		[]string{"cluster", "nodegroup"},
	)

	// Last checked timestamp per node group
	LastCheckedTimestamp = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name: "ami_last_checked_timestamp_seconds",
			Help: "Unix timestamp of the last AMI compliance check",
		},
		[]string{"cluster", "nodegroup"},
	)

	DeletedPolicies = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "eks_nodegroup_deleted_policies_total",
			Help: "Total number of NodeGroupUpgradePolicy resources deleted",
		},
		[]string{"cluster", "nodegroup"},
	)
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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