Skip to content

Commit

Permalink
Merge pull request #56 from YaSuenag/pr/add-attachMetadata
Browse files Browse the repository at this point in the history
Add attachMetadata for ServiceMonitor
  • Loading branch information
rootfs authored Jan 23, 2024
2 parents 42bba8b + 0e96565 commit 1b84dfa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion chart/kepler/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ annotations:
url: https://keybase.io/bradmccoydev/pgp_keys.asc
type: application
version: 0.5.4
version: 0.5.5
appVersion: release-0.7.2
4 changes: 4 additions & 0 deletions chart/kepler/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ metadata:
{{- end }}
spec:
jobLabel: app.kubernetes.io/name
{{- with .Values.serviceMonitor.attachMetadata }}
attachMetadata:
{{- toYaml . | nindent 4 }}
{{- end }}
endpoints:
- port: http
{{- with .Values.serviceMonitor.interval }}
Expand Down
2 changes: 2 additions & 0 deletions chart/kepler/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ serviceMonitor:
interval: 30s
scrapeTimeout: 5s
labels: {}
attachMetadata:
node: false
relabelings:
- action: replace
regex: (.*)
Expand Down

0 comments on commit 1b84dfa

Please sign in to comment.