Have telegraf monitor systemd units

This commit is contained in:
Salt 2020-08-31 21:02:12 -05:00
parent 1982326553
commit af2dc2332d
2 changed files with 11 additions and 0 deletions

View File

@ -17,4 +17,12 @@
apt: apt:
name: name:
- telegraf - telegraf
- name: Copy configs
template:
src: "{{ item.src }}"
dest: "/etc/telegraf/telegraf.d/{{ item.dest }}"
mode: "0644"
loop:
- { src: "50-ansible.conf", dest: "50-ansible.conf" }
notify: restart telegraf
become: yes become: yes

View File

@ -0,0 +1,3 @@
# This file managed via Ansible
[[inputs.systemd_units]]