Skip to content

Commit

Permalink
chart: add service monitor scrape timeout and fix scrape interval
Browse files Browse the repository at this point in the history
  • Loading branch information
maso7 committed May 26, 2023
1 parent 400811a commit 33cc2c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion charts/ec2-price-exporter/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ spec:
endpoints:
- targetPort: {{ .Values.service.port }}
path: {{ .Values.serviceMonitor.metricsPath }}
interval: {{ .Values.serviceMonitor.interval }}
scrapeTimeout: {{ .Values.serviceMonitor.scrapeTimeout }}
{{- with .Values.serviceMonitor.metricRelabelings }}
metricRelabelings:
{{ toYaml . | nindent 8 }}
Expand All @@ -17,7 +19,7 @@ spec:
namespaceSelector:
matchNames:
- {{ .Release.Namespace }}
interval: {{ .Values.serviceMonitor.interval }}

selector:
matchLabels:
{{- include "ec2-price-exporter.selectorLabels" . | nindent 6 }}
Expand Down
3 changes: 2 additions & 1 deletion charts/ec2-price-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ autoscaling:
serviceMonitor:
enabled: false
metricsPath: "/metrics"
interval: 60s
interval: 30s
scrapeTimeout: 30s
metricRelabelings: []

nodeSelector: {}
Expand Down

0 comments on commit 33cc2c6

Please sign in to comment.