summaryrefslogtreecommitdiff
path: root/chaos-at-home/ch-prometheus.yml
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2022-08-06 00:13:07 +0200
committerChristian Pointner <equinox@spreadspace.org>2022-08-06 00:13:07 +0200
commit78e5a1dbe3faf2e587c4daee6e26c577d42ddd65 (patch)
treeeb9f09094f4ccb1529bd8f901329320f892b5552 /chaos-at-home/ch-prometheus.yml
parentacmetool: new subscriber aggreement is not effect just yet. (diff)
ch-prometheus: new nvme disk
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