From eb695b577352636e55c27c0e0fa73ac6430db9bf Mon Sep 17 00:00:00 2001 From: Vijit Singhal Date: Thu, 3 Sep 2020 10:25:37 -0700 Subject: [PATCH 1/9] add hpa metrics from kube-state-metrics --- deploy/helm/sumologic/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/helm/sumologic/values.yaml b/deploy/helm/sumologic/values.yaml index 845e782c55..ae60c24bfc 100644 --- a/deploy/helm/sumologic/values.yaml +++ b/deploy/helm/sumologic/values.yaml @@ -977,7 +977,7 @@ prometheus-operator: - url: http://$(CHART).$(NAMESPACE).svc.cluster.local:9888/prometheus.metrics.state writeRelabelConfigs: - action: keep - regex: kube-state-metrics;(?: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) + regex: kube-state-metrics;(?: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_metadata_generation|kube_hpa_spec_max_replicas|kube_hpa_spec_min_replicas|kube_hpa_status_current_replicas|kube_hpa_status_desired_replicas|kube_hpa_spec_target_metric) sourceLabels: [job, __name__] - action: labelmap regex: (pod|service) From 61c8322bd0eaae47bf5796185aa843e518f514e1 Mon Sep 17 00:00:00 2001 From: Vijit Singhal Date: Thu, 3 Sep 2020 10:29:59 -0700 Subject: [PATCH 2/9] use fullname instead of hpa --- deploy/helm/sumologic/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/helm/sumologic/values.yaml b/deploy/helm/sumologic/values.yaml index ae60c24bfc..236f40983a 100644 --- a/deploy/helm/sumologic/values.yaml +++ b/deploy/helm/sumologic/values.yaml @@ -977,7 +977,7 @@ prometheus-operator: - url: http://$(CHART).$(NAMESPACE).svc.cluster.local:9888/prometheus.metrics.state writeRelabelConfigs: - action: keep - regex: kube-state-metrics;(?: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_metadata_generation|kube_hpa_spec_max_replicas|kube_hpa_spec_min_replicas|kube_hpa_status_current_replicas|kube_hpa_status_desired_replicas|kube_hpa_spec_target_metric) + regex: kube-state-metrics;(?: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_metadata_generation|kube_horizontalpodautoscaler_spec_max_replicas|kube_horizontalpodautoscaler_spec_min_replicas|kube_horizontalpodautoscaler_status_current_replicas|kube_horizontalpodautoscaler_status_desired_replicas|kube_horizontalpodautoscaler_labels) sourceLabels: [job, __name__] - action: labelmap regex: (pod|service) From 94516041ff5ad7de46dcb604cd240065c274e5f6 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Thu, 3 Sep 2020 17:38:35 +0000 Subject: [PATCH 3/9] Generate new overrides yaml/libsonnet file(s). --- deploy/helm/prometheus-overrides.yaml | 2 +- deploy/kubernetes/kube-prometheus-sumo-logic-mixin.libsonnet | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/helm/prometheus-overrides.yaml b/deploy/helm/prometheus-overrides.yaml index f8fe3a2252..b8cf3a1e2b 100644 --- a/deploy/helm/prometheus-overrides.yaml +++ b/deploy/helm/prometheus-overrides.yaml @@ -200,7 +200,7 @@ prometheus: - url: http://$(CHART).$(NAMESPACE).svc.cluster.local:9888/prometheus.metrics.state writeRelabelConfigs: - action: keep - regex: kube-state-metrics;(?: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) + regex: kube-state-metrics;(?: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_metadata_generation|kube_horizontalpodautoscaler_spec_max_replicas|kube_horizontalpodautoscaler_spec_min_replicas|kube_horizontalpodautoscaler_status_current_replicas|kube_horizontalpodautoscaler_status_desired_replicas|kube_horizontalpodautoscaler_labels) sourceLabels: [job, __name__] - action: labelmap regex: (pod|service) diff --git a/deploy/kubernetes/kube-prometheus-sumo-logic-mixin.libsonnet b/deploy/kubernetes/kube-prometheus-sumo-logic-mixin.libsonnet index 4ddf5b7792..c594adab3b 100644 --- a/deploy/kubernetes/kube-prometheus-sumo-logic-mixin.libsonnet +++ b/deploy/kubernetes/kube-prometheus-sumo-logic-mixin.libsonnet @@ -10,7 +10,7 @@ writeRelabelConfigs: [ { action: "keep", - regex: "kube-state-metrics;(?: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)", + regex: "kube-state-metrics;(?: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_metadata_generation|kube_horizontalpodautoscaler_spec_max_replicas|kube_horizontalpodautoscaler_spec_min_replicas|kube_horizontalpodautoscaler_status_current_replicas|kube_horizontalpodautoscaler_status_desired_replicas|kube_horizontalpodautoscaler_labels)", sourceLabels: [ "job", "__name__" From 1922a4e124c0a209cef8fb1922fdf24e9d64c57c Mon Sep 17 00:00:00 2001 From: Vijit Singhal <56007827+vsinghal13@users.noreply.github.com> Date: Thu, 3 Sep 2020 13:02:56 -0700 Subject: [PATCH 4/9] add comments --- deploy/helm/sumologic/values.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/deploy/helm/sumologic/values.yaml b/deploy/helm/sumologic/values.yaml index 236f40983a..b874287809 100644 --- a/deploy/helm/sumologic/values.yaml +++ b/deploy/helm/sumologic/values.yaml @@ -993,6 +993,13 @@ prometheus-operator: ## kube_pod_container_status_terminated_reason ## kube_pod_container_status_waiting_reason ## kube_pod_status_phase + ## kube_horizontalpodautoscaler_metadata_generation + ## kube_horizontalpodautoscaler_spec_max_replicas + ## kube_horizontalpodautoscaler_spec_min_replicas + ## kube_horizontalpodautoscaler_status_current_replicas + ## kube_horizontalpodautoscaler_status_desired_replicas + ## kube_horizontalpodautoscaler_labels + - url: http://$(CHART).$(NAMESPACE).svc.cluster.local:9888/prometheus.metrics.state writeRelabelConfigs: - action: keep From efd596acf3d4b9a481457b8716abc299517f69da Mon Sep 17 00:00:00 2001 From: Vijit Singhal <56007827+vsinghal13@users.noreply.github.com> Date: Thu, 3 Sep 2020 13:06:27 -0700 Subject: [PATCH 5/9] fix comments section --- deploy/helm/sumologic/values.yaml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/deploy/helm/sumologic/values.yaml b/deploy/helm/sumologic/values.yaml index b874287809..2637fb1e91 100644 --- a/deploy/helm/sumologic/values.yaml +++ b/deploy/helm/sumologic/values.yaml @@ -974,6 +974,12 @@ prometheus-operator: ## kube_statefulset_replicas ## kube_statefulset_status_observed_generation ## kube_statefulset_status_replicas + ## kube_horizontalpodautoscaler_metadata_generation + ## kube_horizontalpodautoscaler_spec_max_replicas + ## kube_horizontalpodautoscaler_spec_min_replicas + ## kube_horizontalpodautoscaler_status_current_replicas + ## kube_horizontalpodautoscaler_status_desired_replicas + ## kube_horizontalpodautoscaler_labels - url: http://$(CHART).$(NAMESPACE).svc.cluster.local:9888/prometheus.metrics.state writeRelabelConfigs: - action: keep @@ -993,13 +999,6 @@ prometheus-operator: ## kube_pod_container_status_terminated_reason ## kube_pod_container_status_waiting_reason ## kube_pod_status_phase - ## kube_horizontalpodautoscaler_metadata_generation - ## kube_horizontalpodautoscaler_spec_max_replicas - ## kube_horizontalpodautoscaler_spec_min_replicas - ## kube_horizontalpodautoscaler_status_current_replicas - ## kube_horizontalpodautoscaler_status_desired_replicas - ## kube_horizontalpodautoscaler_labels - - url: http://$(CHART).$(NAMESPACE).svc.cluster.local:9888/prometheus.metrics.state writeRelabelConfigs: - action: keep From c56acdc180b97626ead7d02c45132ef91ed88e41 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Thu, 3 Sep 2020 20:10:48 +0000 Subject: [PATCH 6/9] Generate new overrides yaml/libsonnet file(s). --- deploy/helm/prometheus-overrides.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/deploy/helm/prometheus-overrides.yaml b/deploy/helm/prometheus-overrides.yaml index b8cf3a1e2b..255b75c92a 100644 --- a/deploy/helm/prometheus-overrides.yaml +++ b/deploy/helm/prometheus-overrides.yaml @@ -197,6 +197,12 @@ prometheus: ## kube_statefulset_replicas ## kube_statefulset_status_observed_generation ## kube_statefulset_status_replicas + ## kube_horizontalpodautoscaler_metadata_generation + ## kube_horizontalpodautoscaler_spec_max_replicas + ## kube_horizontalpodautoscaler_spec_min_replicas + ## kube_horizontalpodautoscaler_status_current_replicas + ## kube_horizontalpodautoscaler_status_desired_replicas + ## kube_horizontalpodautoscaler_labels - url: http://$(CHART).$(NAMESPACE).svc.cluster.local:9888/prometheus.metrics.state writeRelabelConfigs: - action: keep From db72b1853bb357b556de8fe670ff0d3cdd1f4c1b Mon Sep 17 00:00:00 2001 From: Vijit Singhal <56007827+vsinghal13@users.noreply.github.com> Date: Fri, 4 Sep 2020 09:04:58 -0700 Subject: [PATCH 7/9] remove 2 metrics --- deploy/helm/sumologic/values.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/deploy/helm/sumologic/values.yaml b/deploy/helm/sumologic/values.yaml index 2637fb1e91..778ebab0e6 100644 --- a/deploy/helm/sumologic/values.yaml +++ b/deploy/helm/sumologic/values.yaml @@ -974,16 +974,14 @@ prometheus-operator: ## kube_statefulset_replicas ## kube_statefulset_status_observed_generation ## kube_statefulset_status_replicas - ## kube_horizontalpodautoscaler_metadata_generation ## kube_horizontalpodautoscaler_spec_max_replicas ## kube_horizontalpodautoscaler_spec_min_replicas ## kube_horizontalpodautoscaler_status_current_replicas ## kube_horizontalpodautoscaler_status_desired_replicas - ## kube_horizontalpodautoscaler_labels - url: http://$(CHART).$(NAMESPACE).svc.cluster.local:9888/prometheus.metrics.state writeRelabelConfigs: - action: keep - regex: kube-state-metrics;(?: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_metadata_generation|kube_horizontalpodautoscaler_spec_max_replicas|kube_horizontalpodautoscaler_spec_min_replicas|kube_horizontalpodautoscaler_status_current_replicas|kube_horizontalpodautoscaler_status_desired_replicas|kube_horizontalpodautoscaler_labels) + regex: kube-state-metrics;(?: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_current_replicas|kube_horizontalpodautoscaler_status_desired_replicas) sourceLabels: [job, __name__] - action: labelmap regex: (pod|service) From 13a944c275261a221555c91af0fbe2de4e775163 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Fri, 4 Sep 2020 16:09:15 +0000 Subject: [PATCH 8/9] Generate new overrides yaml/libsonnet file(s). --- deploy/helm/prometheus-overrides.yaml | 4 +--- deploy/kubernetes/kube-prometheus-sumo-logic-mixin.libsonnet | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/deploy/helm/prometheus-overrides.yaml b/deploy/helm/prometheus-overrides.yaml index 255b75c92a..18d987873e 100644 --- a/deploy/helm/prometheus-overrides.yaml +++ b/deploy/helm/prometheus-overrides.yaml @@ -197,16 +197,14 @@ prometheus: ## kube_statefulset_replicas ## kube_statefulset_status_observed_generation ## kube_statefulset_status_replicas - ## kube_horizontalpodautoscaler_metadata_generation ## kube_horizontalpodautoscaler_spec_max_replicas ## kube_horizontalpodautoscaler_spec_min_replicas ## kube_horizontalpodautoscaler_status_current_replicas ## kube_horizontalpodautoscaler_status_desired_replicas - ## kube_horizontalpodautoscaler_labels - url: http://$(CHART).$(NAMESPACE).svc.cluster.local:9888/prometheus.metrics.state writeRelabelConfigs: - action: keep - regex: kube-state-metrics;(?: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_metadata_generation|kube_horizontalpodautoscaler_spec_max_replicas|kube_horizontalpodautoscaler_spec_min_replicas|kube_horizontalpodautoscaler_status_current_replicas|kube_horizontalpodautoscaler_status_desired_replicas|kube_horizontalpodautoscaler_labels) + regex: kube-state-metrics;(?: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_current_replicas|kube_horizontalpodautoscaler_status_desired_replicas) sourceLabels: [job, __name__] - action: labelmap regex: (pod|service) diff --git a/deploy/kubernetes/kube-prometheus-sumo-logic-mixin.libsonnet b/deploy/kubernetes/kube-prometheus-sumo-logic-mixin.libsonnet index c594adab3b..79cce41e2b 100644 --- a/deploy/kubernetes/kube-prometheus-sumo-logic-mixin.libsonnet +++ b/deploy/kubernetes/kube-prometheus-sumo-logic-mixin.libsonnet @@ -10,7 +10,7 @@ writeRelabelConfigs: [ { action: "keep", - regex: "kube-state-metrics;(?: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_metadata_generation|kube_horizontalpodautoscaler_spec_max_replicas|kube_horizontalpodautoscaler_spec_min_replicas|kube_horizontalpodautoscaler_status_current_replicas|kube_horizontalpodautoscaler_status_desired_replicas|kube_horizontalpodautoscaler_labels)", + regex: "kube-state-metrics;(?: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_current_replicas|kube_horizontalpodautoscaler_status_desired_replicas)", sourceLabels: [ "job", "__name__" From 3974cec73e3e0141089d4a97d78bf561a65ff804 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Fri, 11 Sep 2020 19:02:48 +0000 Subject: [PATCH 9/9] Generate new overrides yaml/libsonnet file(s). --- deploy/helm/prometheus-overrides.yaml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/deploy/helm/prometheus-overrides.yaml b/deploy/helm/prometheus-overrides.yaml index 35cc514e21..52ce196003 100644 --- a/deploy/helm/prometheus-overrides.yaml +++ b/deploy/helm/prometheus-overrides.yaml @@ -201,17 +201,17 @@ prometheus: ## kube_horizontalpodautoscaler_spec_min_replicas ## kube_horizontalpodautoscaler_status_current_replicas ## kube_horizontalpodautoscaler_status_desired_replicas - - url: http://$(CHART).$(NAMESPACE).svc.cluster.local:9888/prometheus.metrics.state - writeRelabelConfigs: - - action: keep - regex: kube-state-metrics;(?: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_current_replicas|kube_horizontalpodautoscaler_status_desired_replicas) - sourceLabels: [job, __name__] - - action: labelmap - regex: (pod|service) - replacement: service_discovery_${1} - - action: labeldrop - regex: (pod|service) - ## kube pod state metrics + url: http://$(CHART).$(NAMESPACE).svc.cluster.local:9888/prometheus.metrics.state + writeRelabelConfigs: + - action: keep + regex: kube-state-metrics;(?: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_current_replicas|kube_horizontalpodautoscaler_status_desired_replicas) + sourceLabels: [job, __name__] + - action: labelmap + regex: (pod|service) + replacement: service_discovery_${1} + - action: labeldrop + regex: (pod|service) + - ## kube pod state metrics ## kube_pod_container_info ## kube_pod_container_resource_limits ## kube_pod_container_resource_requests