Skip to content

Commit 09cfdec

Browse files
committed
Collecting fake json script
1 parent 7fa7a15 commit 09cfdec

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Diff for: collect_fake_json.sh

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#! /bin/bash
2+
3+
for device in $(smartctl --scan | awk '{ print $1}')
4+
do
5+
smartctl --json --xall $device | jq > $(basename $device).json
6+
done

Diff for: smartctl_exporter.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
smartctl_exporter:
22
bind_to: "[::1]:9633"
33
url_path: "/metrics"
4-
fake_json: no
4+
fake_json: yes
55
smartctl_location: /usr/sbin/smartctl
66
collect_not_more_than_period: 20s
77
devices:

0 commit comments

Comments
 (0)