安装Prometheus
docker run --name=prometheus1 -d \
-p 9091:9090 \
-v ~/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml \
--privileged=true \
prom/prometheus \
--config.file=/etc/prometheus/prometheus.yml \
--web.enable-lifecycle
docker run -d -p 9093:9093 --name alertmanager -v ~/alertmanager/alertmanager.yml:/etc/alertmanager/alertmanager.yml --privileged=true prom/alertmanager