Skip to content

Commit

Permalink
fix(metrics): Correct the name of k8s hpa metrics (part of kube-state…
Browse files Browse the repository at this point in the history
…-metrics)
  • Loading branch information
rnishtala-sumo committed Aug 21, 2024
1 parent a10a4c7 commit 28b15dc
Show file tree
Hide file tree
Showing 3 changed files with 115 additions and 114 deletions.
1 change: 1 addition & 0 deletions .changelog/3832.fixed.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fix(metrics): Correct the name of k8s hpa metrics (part of kube-state-metrics)
12 changes: 6 additions & 6 deletions deploy/helm/sumologic/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1119,11 +1119,11 @@ kube-prometheus-stack:
## kube_statefulset_replicas
## kube_statefulset_status_observed_generation
## kube_statefulset_status_replicas
## kube_hpa_spec_max_replicas
## kube_hpa_spec_min_replicas
## kube_hpa_status_condition
## kube_hpa_status_current_replicas
## kube_hpa_status_desired_replicas
## kube_horizontalpodautoscaler_spec_max_replicas
## kube_horizontalpodautoscaler_spec_min_replicas
## kube_horizontalpodautoscaler_status_condition
## kube_horizontalpodautoscaler_status_current_replicas
## kube_horizontalpodautoscaler_status_desired_replicas
## kube pod state metrics
## kube_pod_container_info
## kube_pod_container_resource_limits
Expand All @@ -1140,7 +1140,7 @@ kube-prometheus-stack:
## kube_service_status_load_balancer_ingress
metricRelabelings:
- action: keep
regex: (?:kube_statefulset_status_observed_generation|kube_statefulset_status_replicas|kube_statefulset_replicas|kube_statefulset_metadata_generation|kube_daemonset_status_current_number_scheduled|kube_daemonset_status_desired_number_scheduled|kube_daemonset_status_number_misscheduled|kube_daemonset_status_number_unavailable|kube_deployment_spec_replicas|kube_deployment_status_replicas_available|kube_deployment_status_replicas_unavailable|kube_node_info|kube_node_status_allocatable|kube_node_status_capacity|kube_node_status_condition|kube_hpa_spec_max_replicas|kube_hpa_spec_min_replicas|kube_hpa_status_(condition|(current|desired)_replicas)|kube_pod_container_info|kube_pod_container_resource_requests|kube_pod_container_resource_limits|kube_pod_container_status_ready|kube_pod_container_status_terminated_reason|kube_pod_container_status_waiting_reason|kube_pod_container_status_restarts_total|kube_pod_status_phase|kube_pod_info|kube_service_info|kube_service_spec_external_ip|kube_service_spec_type|kube_service_status_load_balancer_ingress)
regex: (?:kube_statefulset_status_observed_generation|kube_statefulset_status_replicas|kube_statefulset_replicas|kube_statefulset_metadata_generation|kube_daemonset_status_current_number_scheduled|kube_daemonset_status_desired_number_scheduled|kube_daemonset_status_number_misscheduled|kube_daemonset_status_number_unavailable|kube_deployment_spec_replicas|kube_deployment_status_replicas_available|kube_deployment_status_replicas_unavailable|kube_node_info|kube_node_status_allocatable|kube_node_status_capacity|kube_node_status_condition|kube_horizontalpodautoscaler_spec_max_replicas|kube_horizontalpodautoscaler_spec_min_replicas|kube_horizontalpodautoscaler_status_(condition|(current|desired)_replicas)|kube_pod_container_info|kube_pod_container_resource_requests|kube_pod_container_resource_limits|kube_pod_container_status_ready|kube_pod_container_status_terminated_reason|kube_pod_container_status_waiting_reason|kube_pod_container_status_restarts_total|kube_pod_status_phase|kube_pod_info|kube_service_info|kube_service_spec_external_ip|kube_service_spec_type|kube_service_status_load_balancer_ingress)
sourceLabels: [__name__]
## Drop unnecessary labels Prometheus adds to these metrics
## We don't want container=kube-state-metrics on everything
Expand Down
Loading

0 comments on commit 28b15dc

Please sign in to comment.