Move telegraf to host

This makes metric collection for SMART much simpler. I'll still be using the prometheus node exporter for actual system metrics, though.
This commit is contained in:
Jake Howard
2021-03-05 20:39:11 +00:00
parent aa3da3cf10
commit 6b95b75fc2
11 changed files with 17 additions and 46 deletions

View File

@ -6,6 +6,3 @@
- name: Prometheus
include: prometheus.yml
- name: Telegraf
include: telegraf.yml

View File

@ -1,26 +0,0 @@
- name: Create telegraf install directory
file:
path: /opt/telegraf
state: directory
owner: "{{ docker_user.name }}"
mode: "{{ docker_compose_directory_mask }}"
become: true
- name: Install telegraf config
template:
src: files/telegraf/telegraf.conf
dest: /opt/telegraf/telegraf.conf
mode: "{{ docker_compose_file_mask }}"
owner: "{{ docker_user.name }}"
notify: restart telegraf
become: true
- name: Install telegraf compose file
template:
src: files/telegraf/docker-compose.yml
dest: /opt/telegraf/docker-compose.yml
mode: "{{ docker_compose_file_mask }}"
owner: "{{ docker_user.name }}"
validate: docker-compose -f %s config
notify: restart telegraf
become: true