prometheus/rpi-client/tasks/main.yaml
changeset 21 fecc27fe5aef
parent 15 6d7db9bae6c2
child 22 adeda2afeb75
--- a/prometheus/rpi-client/tasks/main.yaml	Wed May 13 09:24:18 2020 -0500
+++ b/prometheus/rpi-client/tasks/main.yaml	Wed May 13 09:25:09 2020 -0500
@@ -17,6 +17,13 @@
     remote_src: yes
     dest: "/lib/systemd/system/rpi_exporter.service"
 
+- name: disable GPU temp scraping
+  become: yes
+  lineinfile:
+    path: "/lib/systemd/system/rpi_exporter.service"
+    regexp: "^ExecStart=/usr/local/bin/rpi_exporter"
+    line: "ExecStart=/usr/local/bin/rpi_exporter --collector.gpu=false"
+
 - name: install rpi-exporter binary
   become: yes
   copy: