diff --git a/charts/prometheus-yet-another-cloudwatch-exporter/Chart.yaml b/charts/prometheus-yet-another-cloudwatch-exporter/Chart.yaml index 9e9d48667202..e5c51de99fb8 100644 --- a/charts/prometheus-yet-another-cloudwatch-exporter/Chart.yaml +++ b/charts/prometheus-yet-another-cloudwatch-exporter/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: prometheus-yet-another-cloudwatch-exporter description: Yace - Yet Another CloudWatch Exporter type: application -version: 0.40.2 +version: 0.40.3 appVersion: "v0.62.1" home: https://github.com/prometheus-community/helm-charts sources: diff --git a/charts/prometheus-yet-another-cloudwatch-exporter/templates/servicemonitor.yaml b/charts/prometheus-yet-another-cloudwatch-exporter/templates/servicemonitor.yaml index 5a35bbd9cdda..a51e7a128c6c 100644 --- a/charts/prometheus-yet-another-cloudwatch-exporter/templates/servicemonitor.yaml +++ b/charts/prometheus-yet-another-cloudwatch-exporter/templates/servicemonitor.yaml @@ -30,6 +30,9 @@ spec: {{- if .Values.serviceMonitor.metricRelabelings }} metricRelabelings: {{ toYaml .Values.serviceMonitor.metricRelabelings | indent 6 }} +{{- end }} +{{- if .Values.serviceMonitor.sampleLimit }} + sampleLimit: {{ .Values.serviceMonitor.sampleLimit }} {{- end }} jobLabel: {{ template "yet-another-cloudwatch-exporter.fullname" . }} namespaceSelector: diff --git a/charts/prometheus-yet-another-cloudwatch-exporter/values.yaml b/charts/prometheus-yet-another-cloudwatch-exporter/values.yaml index e3c9ce1a4d1b..9d6026f7923c 100644 --- a/charts/prometheus-yet-another-cloudwatch-exporter/values.yaml +++ b/charts/prometheus-yet-another-cloudwatch-exporter/values.yaml @@ -160,6 +160,8 @@ serviceMonitor: # relabelings: [] # Set metricRelabelings for the ServiceMonitor, use to apply to samples for ingestion # metricRelabelings: [] + # Set sampleLimit for the ServiceMonitor, defines per-scrape limit on number of scraped samples that will be accepted + # sampleLimit: 0 # # Example - note the Kubernetes convention of camelCase instead of Prometheus' snake_case # metricRelabelings: