一 、Golang编译器离线安装
1.解压缩文件
tar -C /usr/local -xzf go1.x.x.linux-amd64.tar.gz
2.配置环境变量并生效
vi /etc/profile export PATH=$PATH:/usr/local/go/bin export GOPATH=/your/gopath # 可选,如果您需要设置 GOPATH source /etc/profile
二、Opensatck exporter 安装
1.解压缩 openstack exporter go程序包
下载原地址:GitHub - openstack-exporter/openstack-exporter: OpenStack Exporter for Prometheus
unzip -zxvf openstack-exporter-main.zip
2.编写node_exporter运行的配置文件
官方示例:
vim /etc/openstack/clouds.yaml clouds: default: region_name: { { openstack_region_name }} //default identity_api_version: 3 identity_interface: internal auth: username: { { keystone_admin_user }} //keystone