Add dstat graph roles
Change-Id: Idc359579b307f5f156dfe5fb5aab5d99bdc46884
This commit is contained in:
committed by
Andreas Jaeger
parent
9d8e765881
commit
5fee4cd753
13
roles/run-dstat/README.rst
Normal file
13
roles/run-dstat/README.rst
Normal 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.
|
||||
1
roles/run-dstat/defaults/main.yaml
Normal file
1
roles/run-dstat/defaults/main.yaml
Normal file
@@ -0,0 +1 @@
|
||||
dstat_data_path: "{{ ansible_user_dir }}/zuul-output/logs/dstat.csv"
|
||||
9
roles/run-dstat/tasks/main.yaml
Normal file
9
roles/run-dstat/tasks/main.yaml
Normal 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
|
||||
Reference in New Issue
Block a user