src.nth.io/

summaryrefslogtreecommitdiff
path: root/prometheus
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2020-05-13 09:25:09 -0500
committerLuke Hoersten <[email protected]>2020-05-13 09:25:09 -0500
commit2053a218439b0afb8aa06947a3ad88572dfd9107 (patch)
tree419617a9282c63015ccf5de75f38f8e5a4849e38 /prometheus
parentf9ff911e14b6928147e2c04101e55daa634e33ae (diff)
Disable prometheus rpi exporter GPU query.
Diffstat (limited to 'prometheus')
-rw-r--r--prometheus/rpi-client/tasks/main.yaml7
1 files changed, 7 insertions, 0 deletions
diff --git a/prometheus/rpi-client/tasks/main.yaml b/prometheus/rpi-client/tasks/main.yaml
index 328bb9a..05102f6 100644
--- a/prometheus/rpi-client/tasks/main.yaml
+++ b/prometheus/rpi-client/tasks/main.yaml
@@ -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: