exporters reorganization
This commit is contained in:
		
							
								
								
									
										28
									
								
								tasks/exporter/services/mongodb.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								tasks/exporter/services/mongodb.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,28 @@ | ||||
| --- | ||||
| - include_tasks: ../common.yml | ||||
|   tags: ['prometheus_mongodb_exporter'] | ||||
|  | ||||
| - name: 'mongodb exporter < v0.2 | move to /usr/local/bin' | ||||
|   copy: | ||||
|     src: /tmp/mongodb_exporter | ||||
|     dest: /usr/local/bin/prometheus-mongodb-exporter | ||||
|     remote_src: yes | ||||
|     owner: root | ||||
|     group: root | ||||
|     mode: 0755 | ||||
|   notify: | ||||
|     - 'mongodb-exporter-restart' | ||||
|   when: | ||||
|     - prometheus_mongodb_exporter_latest_version.stdout < '0.2' | ||||
|   tags: ['prometheus_mongodb_exporter'] | ||||
|  | ||||
| - name: 'mongodb exporter | configuration' | ||||
|   template: | ||||
|     src: conf/prometheus-mongodb-exporter.j2 | ||||
|     dest: /etc/default/prometheus-mongodb-exporter | ||||
|     owner: root | ||||
|     group: root | ||||
|     mode: 0600 | ||||
|   notify: | ||||
|     - 'mongodb-exporter-restart' | ||||
|   tags: ['prometheus_mongodb_exporter'] | ||||
		Reference in New Issue
	
	Block a user