GO GET配置
git config --global http.proxy http://域账号:密码
git config --global https.proxy https://域账号:密码
git config --global http.sslverify false
git config --global https.sslverify false
GO MODULE配置
export GO111MODULE=on
export GOPROXY=http://***/
export GONOSUMDB=*
配置数据库白名单
host all all ip md5
配置启动opengauss_exporter
cd opengauss_exporter-master
make build
export DATA_SOURCE_NAME="postgresql://tpcc:******@ip:port/tpcc?sslmode=disable"
./bin/opengauss_exporter --config="og_exporter_default.yaml"
注:默认端口为9187
启动效果
2.4 prometheus的使用
prometheus.yml 文件配置参考
scrape_configs:# The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.-job_name:'prometheus'# metrics_path defaults to '/metrics'# scheme defaults to 'http'.static_configs:-targets:['prometheus_ip:9090']-job_name:'pushgateway'static_configs:-targets:['pushgateway_ip:9091']labels:instance: pushgateway
-job_name:'opgs_report'static_configs:-targets:['opgs_report:9187']labels:instance: opgs_report
#启动方式
./prometheus
启动效果
2.5 grafana的使用
yum install grafana-7.1.5-1.aarch64.rpm
service grafana-server start
网访问prometheus_ip:3000
初始用户名密码均为admin
登录后可发表评论
点击登录