blob: 8b57cd3e924c7df15fe55898a586d31c8b5ff241 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/sh
set -e
set -u
cat <<'EOM'
graph_title ZFS deduplication ratio
graph_vlabel ratio
graph_category ZFS
graph_info This graph shows the ZFS pool deduplication ratio
EOM
listing=$(zpool get -H dedup)
while read -r label _ ratio _; do
echo "${label}.label ${label}"
echo "${label}.value ${ratio%x}"
done <<eot
${listing}
eot
exit 0
|