安装Prometheus Server
时间: 2023-11-29 21:51:26 浏览: 86
Prometheus server 安装资料
安装Prometheus Server有两种方法:
方法一:使用Docker镜像
对于已经使用Docker的用户,可以直接使用Prometheus的镜像启动Prometheus Server。只需执行以下命令:
```
docker run -p 9090:9090 -v /etc/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml prom/prometheus
```
其中,`-p 9090:9090`指定了Prometheus Server的端口映射,`-v /etc/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml`则指定了配置文件的挂载路径。通过这个命令,Prometheus Server将会在本地的9090端口运行。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [Prometheus学习笔记——安装Prometheus Server](https://blog.csdn.net/asmartkiller/article/details/121512775)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [Prometheus系列(一)安装](https://blog.csdn.net/weixin_44352521/article/details/127947313)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文