Docker 安装
安装
$ docker run --name prometheus -d -p 9090:9090 quay.io/prometheus/prometheus:v2.39.1
Docker 管理 prometheus
Docker 镜像配置参数
Last updated
$ docker run --name prometheus -d -p 9090:9090 quay.io/prometheus/prometheus:v2.39.1
Last updated
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
e9ebc2435387 quay.io/prometheus/prometheus "/bin/prometheus -..." 26 minutes ago Up 26 minutes 127.0.0.1:9090->9090/tcp prometheusENTRYPOINT [ "/bin/prometheus" ]
CMD [ "--config.file=/etc/prometheus/prometheus.yml", \
"--storage.tsdb.path=/prometheus", \
"--web.console.libraries=/usr/share/prometheus/console_libraries", \
"--web.console.templates=/usr/share/prometheus/consoles" ]docker run --name prometheus
-v=$(pwd)/examples/prometheus.yml:/etc/prometheus/prometheus.yml \
-v=$(pwd)/examples/tsdb:/prometheus \
-d -p 9090:9090 \
quay.io/prometheus/prometheus:v2.39.1docker run --name prometheus \
-v=$(pwd)/examples/prometheus.yml:/etc/prometheus/prometheus.yml \
-v=$(pwd)/examples/tsdb:/prometheus \
-d -p 9090:9090 \
quay.io/prometheus/prometheus:v2.39.1 \
--config.file=/etc/prometheus/prometheus.yml \
--storage.tsdb.path=/prometheus \
--web.console.libraries=/usr/share/prometheus/console_libraries \
--web.console.templates=/usr/share/prometheus/consoles \
--web.enable-lifecycle