部署Prometheus

2023/09 08 16:09

refer Prometheus+Grafana (史上最全) – 疯狂创客圈 – 博客园 (cnblogs.com)

docker pull prom/prometheus

然后本地挂载

mkdir -p /cab/prometheus/{data,config,rules}

chmod -R 777 /cab/prometheus/*

生成配置文件,参考Docker部署Prometheus_docker部署普罗米修斯_拾年一剑的博客-CSDN博客

docker run -d -p 9090:9090 –name prometheus \
-v /cab/prometheus/data:/prometheus/data \
-v /cab/prometheus/config:/etc/prometheus \
-v /cab/prometheus/rules:/prometheus/rules \
prom/prometheus –config.file=/etc/prometheus/prometheus.yml –web.enable-lifecycle

dashboard download Dashboards | Grafana Labs

发表回复

欢迎回来 (打开)

(必填)