aboutsummaryrefslogtreecommitdiff
path: root/roles/monitoring/tasks/node.yaml
diff options
context:
space:
mode:
authorKumar Damani <me@kumardamani.net>2022-08-23 16:02:28 +0000
committerKumar Damani <me@kumardamani.net>2022-09-07 20:15:37 +0000
commitc85806e3289b5e207d51d382f8dc75edad04404d (patch)
tree244d2f1ad38320863fb60f695c88c97799be1171 /roles/monitoring/tasks/node.yaml
parent4d34de2f5e757bfeae5738547aabb61d3d28a2f8 (diff)
switched to alpine initial commit
Diffstat (limited to 'roles/monitoring/tasks/node.yaml')
-rw-r--r--roles/monitoring/tasks/node.yaml23
1 files changed, 23 insertions, 0 deletions
diff --git a/roles/monitoring/tasks/node.yaml b/roles/monitoring/tasks/node.yaml
new file mode 100644
index 0000000..5d38f1f
--- /dev/null
+++ b/roles/monitoring/tasks/node.yaml
@@ -0,0 +1,23 @@
+# https://www.robustperception.io/temperature-and-hardware-monitoring-metrics-from-the-node-exporter/
+---
+
+# Need to install lm-sensors lm-sensors-detect
+# Run sensors, for configurations.
+
+# Node Exporter for OS level monitoring is recommneded to be installed w/o Docker.
+- block:
+ - name: 'Install node-exporter'
+ become: true
+ become_method: 'doas'
+ package:
+ name: 'prometheus-node-exporter'
+ state: 'present'
+
+ - name: 'Start and enable node-exporter service'
+ become: true
+ become_method: 'doas'
+ service:
+ name: 'node-exporter'
+ state: 'started'
+ enabled: true
+ when: 'ansible_os_family == "Alpine"'