diff --git a/jsonnet/kube-prometheus/prometheus/prometheus.libsonnet b/jsonnet/kube-prometheus/prometheus/prometheus.libsonnet index 0cd727dddeabb48ef04abb414ef5401017579211..bd76f608a2659f17482f1c2b18b3ad636c6b9353 100644 --- a/jsonnet/kube-prometheus/prometheus/prometheus.libsonnet +++ b/jsonnet/kube-prometheus/prometheus/prometheus.libsonnet @@ -420,6 +420,11 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet'; regex: 'apiserver_admission_step_admission_latencies_seconds_.*', action: 'drop', }, + { + sourceLabels: ['__name__', 'le'], + regex: 'apiserver_request_duration_seconds_bucket;(0.15|0.25|0.3|0.35|0.4|0.45|0.6|0.7|0.8|0.9|1.25|1.5|1.75|2.5|3|3.5|4.5|6|7|8|9|15|25|30|50)', + action: 'drop', + }, ], }, ], diff --git a/manifests/prometheus-serviceMonitorApiserver.yaml b/manifests/prometheus-serviceMonitorApiserver.yaml index 8f481da44a21502dc19a5e0e30499c7cf6f6233a..500c0d3e74e49b21eed9c300e2dafc9f64e73d09 100644 --- a/manifests/prometheus-serviceMonitorApiserver.yaml +++ b/manifests/prometheus-serviceMonitorApiserver.yaml @@ -54,6 +54,11 @@ spec: regex: apiserver_admission_step_admission_latencies_seconds_.* sourceLabels: - __name__ + - action: drop + regex: apiserver_request_duration_seconds_bucket;(0.15|0.25|0.3|0.35|0.4|0.45|0.6|0.7|0.8|0.9|1.25|1.5|1.75|2.5|3|3.5|4.5|6|7|8|9|15|25|30|50) + sourceLabels: + - __name__ + - le port: https scheme: https tlsConfig: