Started working on Prometheus but the client side doesn't look easily automated. Keeping for later.
This commit is contained in:
		
							
								
								
									
										38
									
								
								tasks/server/prometheus.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										38
									
								
								tasks/server/prometheus.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,38 @@
 | 
				
			|||||||
 | 
					---
 | 
				
			||||||
 | 
					# DB for analytics, used for Grafana.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Installing from source seems a bit too complicated since `make` and `make build` isn't working
 | 
				
			||||||
 | 
					# Try this: https://devopscube.com/install-configure-prometheus-linux/
 | 
				
			||||||
 | 
					# Release: https://github.com/prometheus/prometheus/releases/download/v2.25.1/prometheus-2.25.1.linux-amd64.tar.gz
 | 
				
			||||||
 | 
					# Client?: https://prometheus.io/docs/guides/node-exporter/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## Variables ##
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#- name: Server | Prometheus | Variables
 | 
				
			||||||
 | 
					#  set_facts:
 | 
				
			||||||
 | 
					#    prom_path: /usr/local/prometheus
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## Pre-reqs ##
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#- name: Server | Prometheus | Pre-Requirements | Install
 | 
				
			||||||
 | 
					#  package: 
 | 
				
			||||||
 | 
					#    name: 
 | 
				
			||||||
 | 
					#      - make
 | 
				
			||||||
 | 
					#      - golang-go
 | 
				
			||||||
 | 
					#      - nodejs
 | 
				
			||||||
 | 
					#      - yarn
 | 
				
			||||||
 | 
					#    state: present
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#- name: Server | Prometheus | Pre-Requirements | Path
 | 
				
			||||||
 | 
					#  shell:  '{{ item }}'
 | 
				
			||||||
 | 
					#  loop: 
 | 
				
			||||||
 | 
					#    - mkdir -p {{ prom_path }}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## Install ##
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#- name: Server | Prometheus | Install
 | 
				
			||||||
 | 
					#  shell: "{{ item }}"
 | 
				
			||||||
 | 
					#  loop:
 | 
				
			||||||
 | 
					#    - 
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## Configure ##
 | 
				
			||||||
		Reference in New Issue
	
	Block a user