Use pcp instead of dstand and return dstat graph artifact

Dstat is dead, but pcp supplies a compatible interface.

Installation can be unreliable, so let's ignore failures since
this isn't generally critical.

Change-Id: I9234b226242f145db9c235797649202aa530ec74
This commit is contained in:
James E. Blair 2021-10-21 14:32:24 -07:00
parent bd60fbd744
commit 61d00fec6f
2 changed files with 13 additions and 1 deletions

View File

@ -18,3 +18,13 @@
shell: "./generate_page.sh {{ dstat_data_path }} > {{ ansible_user_dir }}/zuul-output/logs/dstat.html"
args:
chdir: "{{ dstat_path }}"
- name: Return dstat artifact to Zuul
zuul_return:
data:
zuul:
artifacts:
- name: "Dstat graph"
url: "dstat.html"
metadata:
type: dstat_graph

View File

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