Skip to content

Commit

Permalink
Merge pull request #28 from grzesuav/paraeterize-scrape
Browse files Browse the repository at this point in the history
fix: Parameterize prometheus scrape annotation
  • Loading branch information
def authored Aug 28, 2024
2 parents 8564aa1 + ab48bc2 commit e969159
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 @@ -23,6 +23,7 @@ resources:
memory: "1Gi"

port: 80
scrape: "true"

env: []

Expand Down

0 comments on commit e969159

Please sign in to comment.