Deploying the Go Environment
Deploy the Go environment on all nodes.
- Open the environment variable configuration file.
1vi /etc/profile - Press i to enter the insert mode and add the following content to the end of the file:
1 2
export GO_HOME=/opt/prometheus/go export PATH=$GO_HOME/bin:$PATH
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Update the environment variable.
1source /etc/profile
- View the version to check whether the installation is successful.
1go version
Parent topic: Installing Prometheus, Grafana, and Node Exporter