[bitnami/kube-prometheus] Allow setting sampleLimit/enforcedSampleLimit (#18413)

* [bitnami/kube-prometheus] Allow setting sampleLimit/enforcedSampleLimit

Signed-off-by: Federico Marzocchi <federico.marzocchi@deliveryhero.com>

* address review feedback

Signed-off-by: Federico Marzocchi <federico.marzocchi@deliveryhero.com>

---------

Signed-off-by: Federico Marzocchi <federico.marzocchi@deliveryhero.com>
Signed-off-by: Fran de Paz Galán <fdepaz@vmware.com>
Co-authored-by: Fran de Paz Galán <fdepaz@vmware.com>
This commit is contained in:
Federico Marzocchi
2023-08-18 16:43:46 +02:00
committed by GitHub
parent e3fd0b9a9f
commit 149af405d1
4 changed files with 15 additions and 1 deletions

View File

@@ -46,4 +46,4 @@ maintainers:
name: kube-prometheus
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/kube-prometheus
version: 8.16.3
version: 8.17.0

View File

@@ -270,6 +270,8 @@ The command removes all the Kubernetes components associated with the chart and
| `prometheus.scrapeInterval` | Interval between consecutive scrapes | `""` |
| `prometheus.evaluationInterval` | Interval between consecutive evaluations | `""` |
| `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.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` |

View File

@@ -98,6 +98,12 @@ spec:
{{- if .Values.prometheus.scrapeTimeout }}
scrapeTimeout: {{ .Values.prometheus.scrapeTimeout }}
{{- end }}
{{- if .Values.prometheus.sampleLimit }}
sampleLimit: {{ .Values.prometheus.sampleLimit }}
{{- end }}
{{- if .Values.prometheus.enforcedSampleLimit }}
enforcedSampleLimit: {{ .Values.prometheus.enforcedSampleLimit }}
{{- end }}
{{- if .Values.prometheus.resources }}
resources: {{- toYaml .Values.prometheus.resources | nindent 4 }}
{{- end }}

View File

@@ -829,6 +829,12 @@ prometheus:
## ref: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#scrape_config
##
scrapeTimeout: ""
## @param prometheus.sampleLimit Per-scrape max number of scraped samples. Requires Prometheus v2.45.0 and newer
## ref: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#scrape_config
sampleLimit: ""
## @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.listenLocal ListenLocal makes the Prometheus server listen on loopback
##
listenLocal: false