diff --git a/internal/utils/config.go b/internal/utils/config.go index 2a92ce7..342a01e 100644 --- a/internal/utils/config.go +++ b/internal/utils/config.go @@ -205,8 +205,6 @@ func parseConfigMap(configMap *v1.ConfigMap) (parsed *Config, err error) { func setKotaryMetrics(kotaryConfig *Config) { - MaxJobsLimitNSGauge.Set(float64(kotaryConfig.MaxJobsLimitNS)) - MaxJobsLimitClusterGauge.Set(float64(kotaryConfig.MaxJobsLimitCluster)) RatioMaxAllocationCPUGauge.Set(float64(kotaryConfig.RatioMaxAllocationCPU)) RatioMaxAllocationMemoryGauge.Set(float64(kotaryConfig.RatioMaxAllocationMemory)) RatioOverCommitCPUGauge.Set(float64(kotaryConfig.RatioOverCommitCPU)) @@ -214,4 +212,3 @@ func setKotaryMetrics(kotaryConfig *Config) { klog.Infof("Kotary metrics updated from configuration") } - diff --git a/internal/utils/prometheus.go b/internal/utils/prometheus.go index b6ffa26..366044c 100644 --- a/internal/utils/prometheus.go +++ b/internal/utils/prometheus.go @@ -15,32 +15,22 @@ var DefaultClaimCounter = promauto.NewCounterVec(prometheus.CounterOpts{ Help: "Number of default claims created", }, []string{"status"}) -var MaxJobsLimitNSGauge = promauto.NewGauge(prometheus.GaugeOpts{ - Name: "kotary_max_jobs_batch_limit_ns", - Help: "Maximum number of jobs allowed per namespace", - }) - -var MaxJobsLimitClusterGauge = promauto.NewGauge(prometheus.GaugeOpts{ - Name: "kotary_max_jobs_batch_limit_cluster", - Help: "Maximum total number of jobs allowed across the cluster", -}) - var RatioMaxAllocationCPUGauge = promauto.NewGauge(prometheus.GaugeOpts{ - Name: "kotary_ratio_max_allocation_cpu", - Help: "Maximum CPU allocation ratio allowed per namespace compared to total cluster CPU", + Name: "kotary_ratio_max_allocation_cpu", + Help: "Maximum CPU allocation ratio allowed per namespace compared to total cluster CPU", }) var RatioMaxAllocationMemoryGauge = promauto.NewGauge(prometheus.GaugeOpts{ - Name: "kotary_ratio_max_allocation_memory", - Help: "Maximum memory allocation ratio allowed per namespace compared to total cluster memory", + Name: "kotary_ratio_max_allocation_memory", + Help: "Maximum memory allocation ratio allowed per namespace compared to total cluster memory", }) var RatioOverCommitCPUGauge = promauto.NewGauge(prometheus.GaugeOpts{ - Name: "kotary_ratio_over_commit_cpu", - Help: "CPU over-commit ratio applied to node available resources (percentage)", + Name: "kotary_ratio_over_commit_cpu", + Help: "CPU over-commit ratio applied to node available resources (percentage)", }) var RatioOverCommitMemoryGauge = promauto.NewGauge(prometheus.GaugeOpts{ - Name: "kotary_ratio_over_commit_memory", - Help: "Memory over-commit ratio applied to node available resources (percentage)", -}) \ No newline at end of file + Name: "kotary_ratio_over_commit_memory", + Help: "Memory over-commit ratio applied to node available resources (percentage)", +})