summaryrefslogtreecommitdiff
path: root/chaos-at-home/ch-prometheus.yml
diff options
context:
space:
mode:
Diffstat (limited to 'chaos-at-home/ch-prometheus.yml')
-rw-r--r--chaos-at-home/ch-prometheus.yml4
1 files changed, 3 insertions, 1 deletions
diff --git a/chaos-at-home/ch-prometheus.yml b/chaos-at-home/ch-prometheus.yml
index f0545d26..a736a331 100644
--- a/chaos-at-home/ch-prometheus.yml
+++ b/chaos-at-home/ch-prometheus.yml
@@ -51,11 +51,13 @@
#!/bin/bash
{% set disk_variables = [] %}
{% for disk in install.disks.raid.members %}
- disk_primary{{ loop.index0 }}=$(basename $(realpath '{{ install.disks.primary }}'))
+ disk_primary{{ loop.index0 }}=$(basename $(realpath '{{ disk }}'))
{{ disk_variables.append('$disk_primary'+(loop.index0| string)) -}}
{% endfor %}
{% for name,volume in luks_volumes.items() %}
+ {% if 'crypto-nvme' not in name %}
disk_{{ name | replace('-', '_') }}=$(basename $(realpath '{{ volume.device }}'))
{{ disk_variables.append('$disk_'+(name | replace('-', '_'))) -}}
+ {% endif %}
{% endfor %}
exec dstat -cnd -N {{ network.primary.name }} -D "{{ disk_variables | join(',') }}" --disk-util --top-io --top-bio