 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
      View Source
      
  
const StatefulSetControllerSubsystem = "statefulset_controller"
    Variables ¶
      View Source
      
  
var ( // MaxUnavailableStatefulSet feature enabled. This gauge reflects the configured maximum number of pods // that can be unavailable during rolling updates, providing visibility into the availability constraints. // The metric is set to 1 by default. // // Sample monitoring queries: // - Current maxUnavailable setting: statefulset_max_unavailable // - Compare with actual unavailable: statefulset_unavailable_replicas - statefulset_max_unavailable // - Alert when exceeding limit: statefulset_unavailable_replicas > statefulset_max_unavailable // - Monitor configuration changes: changes(statefulset_max_unavailable[1h]) MaxUnavailable = metrics.NewGaugeVec( &metrics.GaugeOpts{ Subsystem: StatefulSetControllerSubsystem, Name: "statefulset_max_unavailable", Help: "Maximum number of unavailable pods allowed during StatefulSet rolling updates", StabilityLevel: metrics.ALPHA, }, []string{"statefulset_namespace", "statefulset_name", "pod_management_policy"}, ) // This gauge reflects the real-time count of pods that are either missing or unavailable // (i.e., not ready for .spec.minReadySeconds). // // Sample monitoring queries: // - Current unavailable pods: statefulset_unavailable_replicas // - Availability percentage: (statefulset_replicas - statefulset_unavailable_replicas) / statefulset_replicas * 100 // - Alert on high unavailability: statefulset_unavailable_replicas > statefulset_max_unavailable // - Monitor availability trends: statefulset_unavailable_replicas UnavailableReplicas = metrics.NewGaugeVec( &metrics.GaugeOpts{ Subsystem: StatefulSetControllerSubsystem, Name: "statefulset_unavailable_replicas", Help: "Current number of unavailable pods in StatefulSet", StabilityLevel: metrics.ALPHA, }, []string{"statefulset_namespace", "statefulset_name", "pod_management_policy"}, ) )
Functions ¶
Types ¶
This section is empty.
 Click to show internal directories. 
   Click to hide internal directories.