diff --git a/charts/prometheus-stackdriver-exporter/Chart.yaml b/charts/prometheus-stackdriver-exporter/Chart.yaml index 12bccec87df4..2ba74712e1db 100644 --- a/charts/prometheus-stackdriver-exporter/Chart.yaml +++ b/charts/prometheus-stackdriver-exporter/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v1 description: Stackdriver exporter for Prometheus name: prometheus-stackdriver-exporter -version: 2.1.0 +version: 2.1.1 appVersion: 0.12.0 home: https://www.stackdriver.com/ sources: diff --git a/charts/prometheus-stackdriver-exporter/templates/servicemonitor.yaml b/charts/prometheus-stackdriver-exporter/templates/servicemonitor.yaml index 0178026eaf32..e1a6026a4609 100644 --- a/charts/prometheus-stackdriver-exporter/templates/servicemonitor.yaml +++ b/charts/prometheus-stackdriver-exporter/templates/servicemonitor.yaml @@ -19,6 +19,8 @@ spec: - port: http {{- if .Values.serviceMonitor.interval }} interval: {{ .Values.serviceMonitor.interval }} + {{- end }} + {{- if .Values.serviceMonitor.scrapeTimeout }} scrapeTimeout: {{ .Values.serviceMonitor.scrapeTimeout }} {{- end }} honorLabels: {{ .Values.serviceMonitor.honorLabels }}