src.nth.io/

summaryrefslogtreecommitdiff
path: root/prometheus
diff options
context:
space:
mode:
Diffstat (limited to 'prometheus')
-rw-r--r--prometheus/client/tasks/main.yaml4
-rw-r--r--prometheus/server/tasks/main.yaml19
2 files changed, 23 insertions, 0 deletions
diff --git a/prometheus/client/tasks/main.yaml b/prometheus/client/tasks/main.yaml
new file mode 100644
index 0000000..f763a88
--- /dev/null
+++ b/prometheus/client/tasks/main.yaml
@@ -0,0 +1,4 @@
+---
+
+- name: install prometheus node exporter
+ apt: name="prometheus-node-exportery"
diff --git a/prometheus/server/tasks/main.yaml b/prometheus/server/tasks/main.yaml
new file mode 100644
index 0000000..470c1cc
--- /dev/null
+++ b/prometheus/server/tasks/main.yaml
@@ -0,0 +1,19 @@
+---
+
+- name: add grafana apt key
+ become: yes
+ apt_key: url="https://packages.grafana.com/gpg.key"
+
+- name: add grafana apt repo
+ become: yes
+ apt_repository: repo="deb https://packages.grafana.com/oss/deb stable main"
+
+- name: install prometheus and grafana
+ become: yes
+ apt: name="{{item}}" state="latest"
+ with_items:
+ - "prometheus"
+ - "grafana"
+
+# /etc/prometheus/prometheus.yml
+# /etc/grafana/grafana.ini