Skip to content

Commit

Permalink
Merge pull request #2413 from zalando-incubator/node-exporter-configu…
Browse files Browse the repository at this point in the history
…rable

Make node_exporter resources configurable
  • Loading branch information
aermakov-zalando authored Aug 13, 2019
2 parents f696afb + c65f4d2 commit 4d79869
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions cluster/config-defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ image_policy: "dev"
cadvisor_cpu: "150m"
cadvisor_memory: "150Mi"

# node exporter settings
node_exporter_cpu: "20m"
node_exporter_memory: "75Mi"

# Monitoring settings
{{if eq .Environment "e2e"}}
logging_agent_enabled: "false"
Expand Down
8 changes: 4 additions & 4 deletions cluster/manifests/prometheus-node-exporter/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ spec:
hostPort: 9100
resources:
limits:
cpu: 20m
memory: 75Mi
cpu: {{.Cluster.ConfigItems.node_exporter_cpu}}
memory: {{.Cluster.ConfigItems.node_exporter_memory}}
requests:
cpu: 20m
memory: 75Mi
cpu: {{.Cluster.ConfigItems.node_exporter_cpu}}
memory: {{.Cluster.ConfigItems.node_exporter_memory}}
securityContext:
privileged: true
volumeMounts:
Expand Down

0 comments on commit 4d79869

Please sign in to comment.