From e3464dbfda1365e661f1f47ed5f4e4e79cbd670f Mon Sep 17 00:00:00 2001 From: Hyperling Date: Tue, 16 Mar 2021 19:41:10 -0500 Subject: [PATCH] Add server software for populating Grafana with metrics. --- tasks/server/influxdb.yml | 9 +++++++++ tasks/server/telegraf.yml | 9 +++++++++ 2 files changed, 18 insertions(+) create mode 100644 tasks/server/influxdb.yml create mode 100644 tasks/server/telegraf.yml diff --git a/tasks/server/influxdb.yml b/tasks/server/influxdb.yml new file mode 100644 index 0000000..af6f070 --- /dev/null +++ b/tasks/server/influxdb.yml @@ -0,0 +1,9 @@ +--- +# Application that populates InfluxDB with metric data. + +- shell: "{{ item }}" + args: + chdir: "{{ ansible_env.HOME }}/Downloads/" + loop: + - wget https://dl.influxdata.com/influxdb/releases/influxdb2-2.0.4-amd64.deb + - sudo dpkg -i influxdb2-2.0.4-amd64.deb diff --git a/tasks/server/telegraf.yml b/tasks/server/telegraf.yml new file mode 100644 index 0000000..f8f71f9 --- /dev/null +++ b/tasks/server/telegraf.yml @@ -0,0 +1,9 @@ +--- +# Application that populates InfluxDB with metric data. + +- shell: "{{ item }}" + args: + chdir: "{{ ansible_env.HOME }}/Downloads/" + loop: + - wget https://dl.influxdata.com/telegraf/releases/telegraf_1.17.3-1_amd64.deb + - sudo dpkg -i telegraf_1.17.3-1_amd64.deb \ No newline at end of file