Skip to content

Commit

Permalink
fix: Parameterize prometheus scrape annotation
Browse files Browse the repository at this point in the history
Signed-off-by: grzesuav <[email protected]>
  • Loading branch information
grzesuav committed Aug 23, 2024
1 parent 8c7d7f9 commit ab48bc2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/node-agent/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
{{- include "node-agent.selectorLabels" . | nindent 8 }}
app: coroot-node-agent
annotations:
prometheus.io/scrape: 'true'
prometheus.io/scrape: '{{ .Values.scrape | default true}}'
prometheus.io/port: '{{ .Values.port }}'
{{- if .Values.podAnnotations }}
{{- toYaml .Values.podAnnotations | nindent 8 }}
Expand Down
1 change: 1 addition & 0 deletions charts/node-agent/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ resources:
memory: "1Gi"

port: 80
scrape: "true"

env: []

Expand Down

0 comments on commit ab48bc2

Please sign in to comment.