1.prometheus
touch /root/config/prometheus.yml vim /root/config/prometheus.yml
docker run -d --name=prometheus -p 9090:9090 -v /root/config/prometheus.yml:/etc/prometheus/prometheus.yml prom/prometheus
2.grafana
docker run -d --name=grafana -p 3000:3000 grafana/grafana
3.node_exporter
docker run -d
--name node-exporter
--net=host
--pid=host
-v /proc:/host/proc:ro
-v /sys:/host/sys:ro
-v /:/host:ro,rslave
quay.io/prometheus/node-exporter
--path.rootfs=/host
4.snmp_exporter
touch /root/config/snmp.yml vim /root/config/snmp.yml
docker run -d --name snmp_exporter --net=host -v /root/config/snmp.yml:/etc/snmp_exporter/snmp.yml prom/snmp-exporter
yum install net-snmp net-snmp-utils