aboutsummaryrefslogtreecommitdiff
path: root/text_collector_examples
diff options
context:
space:
mode:
authorPaul Gier <pgier@redhat.com>2019-05-20 13:05:39 -0500
committerBen Kochie <superq@gmail.com>2019-05-20 13:05:39 -0500
commitbd3fc09b30e9401746f76d0d3980a3e894c5d012 (patch)
tree2989cebf1aeea64841267fbb10b0b865ca1e7b21 /text_collector_examples
parent2a9939fcf3675b8cd93cd460ca87813ae121d757 (diff)
downloadprometheus_node_collector-bd3fc09b30e9401746f76d0d3980a3e894c5d012.tar.bz2
prometheus_node_collector-bd3fc09b30e9401746f76d0d3980a3e894c5d012.tar.xz
prometheus_node_collector-bd3fc09b30e9401746f76d0d3980a3e894c5d012.zip
fix or ignore codespell issues (#1351)
Signed-off-by: Paul Gier <pgier@redhat.com>
Diffstat (limited to 'text_collector_examples')
-rwxr-xr-xtext_collector_examples/md_info_detail.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/text_collector_examples/md_info_detail.sh b/text_collector_examples/md_info_detail.sh
index 6d45248..9806ebb 100755
--- a/text_collector_examples/md_info_detail.sh
+++ b/text_collector_examples/md_info_detail.sh
@@ -59,7 +59,7 @@ for MD_DEVICE in /dev/md/*; do
59 59
60 # Output RAID "Devices", "Size" and "Event" metrics, from the output of "mdadm --detail" 60 # Output RAID "Devices", "Size" and "Event" metrics, from the output of "mdadm --detail"
61 while IFS= read -r line ; do 61 while IFS= read -r line ; do
62 # Filter out these keys that have numberic values that increment up 62 # Filter out these keys that have numeric values that increment up
63 if echo "$line" | grep -E -q "Devices :|Array Size :| Used Dev Size :|Events :"; then 63 if echo "$line" | grep -E -q "Devices :|Array Size :| Used Dev Size :|Events :"; then
64 MDADM_DETAIL_KEY=$(echo "$line" | cut -d ":" -f 1 | tr -cd '[a-zA-Z0-9]._-') 64 MDADM_DETAIL_KEY=$(echo "$line" | cut -d ":" -f 1 | tr -cd '[a-zA-Z0-9]._-')
65 MDADM_DETAIL_VALUE=$(echo "$line" | cut -d ":" -f 2 | cut -d " " -f 2 | sed 's:^ ::') 65 MDADM_DETAIL_VALUE=$(echo "$line" | cut -d ":" -f 2 | cut -d " " -f 2 | sed 's:^ ::')