Skip to content

Commit 1e108cf

Browse files
authored
[kube-prometheus-stack] add support for scrapeFailureLogFile (#5306)
* [kube-prometheus-stack] add support for scrapeFailureLogFile Signed-off-by: Amos Shapira <amos.shapira@gmail.com> * [kube-prometheus-stack] update version to catch up with parallel bump Signed-off-by: Amos Shapira <amos.shapira@gmail.com> * [kube-prometheus-stack] bump to version 69.2.3 to catch up with parallel bump Signed-off-by: Amos Shapira <amos.shapira@gmail.com> --------- Signed-off-by: Amos Shapira <amos.shapira@gmail.com>
1 parent 25e73a9 commit 1e108cf

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

charts/kube-prometheus-stack/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ name: kube-prometheus-stack
3131
sources:
3232
- https://github.com/prometheus-community/helm-charts
3333
- https://github.com/prometheus-operator/kube-prometheus
34-
version: 69.2.2
34+
version: 69.2.3
3535
appVersion: v0.80.0
3636
kubeVersion: ">=1.19.0-0"
3737
home: https://github.com/prometheus-operator/kube-prometheus

charts/kube-prometheus-stack/templates/prometheus/prometheus.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ spec:
118118
scrapeClasses:
119119
{{- tpl (toYaml . | nindent 4) $ }}
120120
{{- end }}
121+
{{- if .Values.prometheus.prometheusSpec.scrapeFailureLogFile }}
122+
scrapeFailureLogFile: {{ .Values.prometheus.prometheusSpec.scrapeFailureLogFile }}
123+
{{- end }}
121124
{{- if .Values.prometheus.prometheusSpec.scrapeInterval }}
122125
scrapeInterval: {{ .Values.prometheus.prometheusSpec.scrapeInterval }}
123126
{{- end }}

charts/kube-prometheus-stack/values.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3747,6 +3747,13 @@ prometheus:
37473747
## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#monitoring.coreos.com/v1.Prometheus
37483748
additionalArgs: []
37493749

3750+
## File to which scrape failures are logged.
3751+
## Reloading the configuration will reopen the file.
3752+
## Defaults to empty (disabled)
3753+
## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#monitoring.coreos.com/v1.Prometheus
3754+
##
3755+
scrapeFailureLogFile: ""
3756+
37503757
## Interval between consecutive scrapes.
37513758
## Defaults to 30s.
37523759
## ref: https://github.com/prometheus-operator/prometheus-operator/blob/release-0.44/pkg/prometheus/promcfg.go#L180-L183

0 commit comments

Comments
 (0)