Skip to content

Commit

Permalink
feat: add sampleLimit for prometheus serviceMonitor (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
ypoplavs authored Jan 24, 2025
2 parents 92a7f60 + 425ab95 commit 5f0dd63
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charts/testkube-cloud-api/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ metadata:
{{- toYaml . | nindent 4 -}}
{{- end }}
spec:
{{- if .Values.prometheus.sampleLimit }}
sampleLimit: {{ .Values.prometheus.sampleLimit }}
{{- end }}
selector:
matchLabels:
{{- include "testkube-cloud-api.selectorLabels" . | nindent 6 }}
Expand Down
2 changes: 2 additions & 0 deletions charts/testkube-cloud-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,8 @@ prometheus:
port: metrics
# -- Metrics path which will be scraped
path: /metrics
# -- SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
#sampleLimit: 1000
nodeSelector: {}
tolerations: []
affinity: {}
Expand Down

0 comments on commit 5f0dd63

Please sign in to comment.