diff --git a/bitnami/kube-prometheus/CHANGELOG.md b/bitnami/kube-prometheus/CHANGELOG.md index 85c7e18d92..d54aedc278 100644 --- a/bitnami/kube-prometheus/CHANGELOG.md +++ b/bitnami/kube-prometheus/CHANGELOG.md @@ -1,8 +1,12 @@ # Changelog -## 9.4.1 (2024-06-06) +## 9.5.0 (2024-06-10) -* [bitnami/kube-prometheus] Release 9.4.1 ([#27007](https://github.com/bitnami/charts/pull/27007)) +* [bitnami/kube-prometheus] Add keepDroppedTargets parameter kube-prometheus configuration ([#26409](https://github.com/bitnami/charts/pull/26409)) + +## 9.4.1 (2024-06-06) + +* [bitnami/kube-prometheus] Release 9.4.1 (#27007) ([40c13fe](https://github.com/bitnami/charts/commit/40c13fe226aafbd7c200274871005f4eb36b00c7)), closes [#27007](https://github.com/bitnami/charts/issues/27007) ## 9.4.0 (2024-06-06) diff --git a/bitnami/kube-prometheus/Chart.yaml b/bitnami/kube-prometheus/Chart.yaml index db6427e6bc..d9c208b2ef 100644 --- a/bitnami/kube-prometheus/Chart.yaml +++ b/bitnami/kube-prometheus/Chart.yaml @@ -46,4 +46,4 @@ maintainers: name: kube-prometheus sources: - https://github.com/bitnami/charts/tree/main/bitnami/kube-prometheus -version: 9.4.1 +version: 9.5.0 diff --git a/bitnami/kube-prometheus/README.md b/bitnami/kube-prometheus/README.md index 31d7c8610e..06f38a5337 100644 --- a/bitnami/kube-prometheus/README.md +++ b/bitnami/kube-prometheus/README.md @@ -373,6 +373,7 @@ As an alternative, use one of the preset configurations for pod affinity, pod an | `prometheus.scrapeTimeout` | Timeout after which the global scrape is ended | `""` | | `prometheus.sampleLimit` | Per-scrape max number of scraped samples. Requires Prometheus v2.45.0 and newer | `""` | | `prometheus.enforcedSampleLimit` | Override sampleLimits set by ServiceMonitor, PodMonitor or Probe objects | `""` | +| `prometheus.keepDroppedTargets` | Limit per scrape config on the number of targets dropped by relabeling that will be kept in memory. 0 means no limit. | `""` | | `prometheus.listenLocal` | ListenLocal makes the Prometheus server listen on loopback | `false` | | `prometheus.livenessProbe.enabled` | Turn on and off liveness probe | `true` | | `prometheus.livenessProbe.path` | Path of the HTTP service for checking the healthy state | `/-/healthy` | diff --git a/bitnami/kube-prometheus/templates/prometheus/prometheus.yaml b/bitnami/kube-prometheus/templates/prometheus/prometheus.yaml index df2eb7411c..3a164cbef5 100644 --- a/bitnami/kube-prometheus/templates/prometheus/prometheus.yaml +++ b/bitnami/kube-prometheus/templates/prometheus/prometheus.yaml @@ -102,6 +102,9 @@ spec: {{- if .Values.prometheus.enforcedSampleLimit }} enforcedSampleLimit: {{ .Values.prometheus.enforcedSampleLimit }} {{- end }} + {{- if .Values.prometheus.keepDroppedTargets }} + keepDroppedTargets: {{ .Values.prometheus.keepDroppedTargets }} + {{- end }} {{- if .Values.prometheus.resources }} resources: {{- toYaml .Values.prometheus.resources | nindent 4 }} {{- else if ne .Values.prometheus.resourcesPreset "none" }} diff --git a/bitnami/kube-prometheus/values.yaml b/bitnami/kube-prometheus/values.yaml index a03f31de1d..eb38988b88 100644 --- a/bitnami/kube-prometheus/values.yaml +++ b/bitnami/kube-prometheus/values.yaml @@ -1038,6 +1038,10 @@ prometheus: ## @param prometheus.enforcedSampleLimit Override sampleLimits set by ServiceMonitor, PodMonitor or Probe objects ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#monitoring.coreos.com/v1.PrometheusSpec enforcedSampleLimit: "" + ## @param prometheus.keepDroppedTargets Limit per scrape config on the number of targets dropped by relabeling that will be kept in memory. 0 means no limit. + ## Requires Prometheus v2.47.0 and newer + ## ref: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#scrape_config + keepDroppedTargets: "" ## @param prometheus.listenLocal ListenLocal makes the Prometheus server listen on loopback ## listenLocal: false