update
This commit is contained in:
		
							
								
								
									
										21
									
								
								prometheus/Demo/SingleNode/README.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								prometheus/Demo/SingleNode/README.md
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,21 @@ | ||||
| # 部署单节点 prometheus | ||||
|  | ||||
| - 根据实际环境修改 | ||||
|     - docker-compose.yml | ||||
|  | ||||
| - 创建目录 | ||||
|     ``` | ||||
|     grep '\<source:' docker-compose.yml | cut -d: -f2 | xargs mkdir -p | ||||
|     ``` | ||||
|  | ||||
| - 启动 | ||||
|     ``` | ||||
|     docker-compose up -d | ||||
|     ``` | ||||
|  | ||||
| - 修改各组件的配置文件 | ||||
| - 重新启动 | ||||
|     ``` | ||||
|     docker-compose restart | ||||
|     ``` | ||||
|  | ||||
							
								
								
									
										22
									
								
								prometheus/Demo/SingleNode/docker-compose.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								prometheus/Demo/SingleNode/docker-compose.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,22 @@ | ||||
| version: "3.7" | ||||
|  | ||||
| services: | ||||
|   prometheus: | ||||
|     image: harbor.colben.cn/general/prometheus | ||||
|     container_name: prometheus | ||||
|     restart: "on-failure" | ||||
|     stop_grace_period: 5m | ||||
|     privileged: true | ||||
|     networks: | ||||
|       prometheus: | ||||
|     volumes: | ||||
|     - type: bind | ||||
|       source: ./prometheus/conf | ||||
|       target: /etc/prometheus | ||||
|     - type: bind | ||||
|       source: ./prometheus/data | ||||
|       target: /var/lib/prometheus | ||||
|     - type: bind | ||||
|       source: ./prometheus/log | ||||
|       target: /var/log/prometheus | ||||
|  | ||||
		Reference in New Issue
	
	Block a user