src.nth.io/

summaryrefslogtreecommitdiff
path: root/prometheus
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2020-02-09 12:05:37 -0600
committerLuke Hoersten <[email protected]>2020-02-09 12:05:37 -0600
commit1cb30cc0aa4fda9bf0bac0b41ace862b1db434b8 (patch)
treee4b27462ba4b8b249bb5eaac4b4be0006ca0392c /prometheus
parent195a4a3fcf65bf47ecb1a0ea2a9fb070c18eb20f (diff)
Moved roles to top level
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