How to set GOMAXPROCS parameter for all node-exporter pods
Problem
- How to set the GOMAXPROCS parameter in clusters on PMK v5.6?
Environment
- Platform9 Managed Kubernetes - v5.6 or Less
Procedure
- Edit the node-exporter daemonset in the pf9-monitoring namespace
kubectl get ds node-exporter -n pf9-monitoring -o yaml
- In the containers section of the spec , add this environment variable as below:
env:
- name: GOMAXPROCS
value: 1
Additional Information
- v.1.6.0+ of node-exporter has GOMAXPROCS runtime environment as 1 by default.
- PMK releases v5.9 and greater have node-exporter with v1.6.1 that already contains the default setting of GOMAXPROCS parameter.
Was this page helpful?