[stable/nginx-ingress] Make prometheus scrape interval configurable (#17613)

Signed-off-by: Emil Marklund <emil.marklund@vkmedia.se>
This commit is contained in:
Emil Marklund
2019-10-02 11:04:09 -07:00
committed by Kubernetes Prow Robot
parent 9eba7b1c80
commit b0608212e4
4 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: nginx-ingress
version: 1.23.0
version: 1.24.0
appVersion: 0.26.1
home: https://github.com/kubernetes/ingress-nginx
description: An nginx Ingress controller that uses ConfigMap to store the nginx configuration.
+2 -1
View File
@@ -137,8 +137,9 @@ Parameter | Description | Default
`controller.metrics.service.type` | type of Prometheus metrics service to create | `ClusterIP`
`controller.metrics.serviceMonitor.enabled` | Set this to `true` to create ServiceMonitor for Prometheus operator | `false`
`controller.metrics.serviceMonitor.additionalLabels` | Additional labels that can be used so ServiceMonitor will be discovered by Prometheus | `{}`
`controller.metrics.serviceMonitor.namespace` | namespace where servicemonitor resource should be created | `the same namespace as nginx ingress`
`controller.metrics.serviceMonitor.honorLabels` | honorLabels chooses the metric's labels on collisions with target labels. | `false`
`controller.metrics.serviceMonitor.namespace` | namespace where servicemonitor resource should be created | `the same namespace as nginx ingress`
`controller.metrics.serviceMonitor.scrapeInterval` | interval between Prometheus scraping | `30s`
`controller.metrics.prometheusRule.enabled` | Set this to `true` to create prometheusRules for Prometheus operator | `false`
`controller.metrics.prometheusRule.additionalLabels` | Additional labels that can be used so prometheusRules will be discovered by Prometheus | `{}`
`controller.metrics.prometheusRule.namespace` | namespace where prometheusRules resource should be created | `the same namespace as nginx ingress`
@@ -18,7 +18,7 @@ metadata:
spec:
endpoints:
- port: metrics
interval: 30s
interval: {{ .Values.controller.metrics.serviceMonitor.scrapeInterval }}
{{- if .Values.controller.metrics.serviceMonitor.honorLabels }}
honorLabels: true
{{- end }}
+1
View File
@@ -365,6 +365,7 @@ controller:
enabled: false
additionalLabels: {}
namespace: ""
scrapeInterval: 30s
# honorLabels: true
prometheusRule: