Disable prometheus rpi exporter GPU query.
authorLuke Hoersten <luke@hoersten.org>
Wed, 13 May 2020 09:25:09 -0500
changeset 21 fecc27fe5aef
parent 20 9cacee5eec83
child 22 adeda2afeb75
Disable prometheus rpi exporter GPU query.
prometheus/rpi-client/tasks/main.yaml
--- 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: