Add dstat graph roles

Change-Id: Idc359579b307f5f156dfe5fb5aab5d99bdc46884
This commit is contained in:
James E. Blair
2019-07-11 15:01:44 -07:00
committed by Andreas Jaeger
parent 9d8e765881
commit 5fee4cd753
12 changed files with 140 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
Run dstat
Add this to a pre-run playbook to run ``dstat``.
The role :zuul:role:`dstat-graph` may optionally be used to graph the
resulting data.
**Role Variables**
.. zuul:rolevar:: dstat_data_path
:default: "{{ ansible_user_dir }}/zuul-output/logs/dstat.csv"
The path to the dstat data file.

View File

@@ -0,0 +1 @@
dstat_data_path: "{{ ansible_user_dir }}/zuul-output/logs/dstat.csv"

View File

@@ -0,0 +1,9 @@
- name: Install dstat
package:
name: dstat
state: present
become: true
- name: Run dstat
shell: "dstat -tcmndrylpg --tcp --output {{ dstat_data_path }} >& /dev/null &"
args:
executable: /bin/bash