Skip to content

Commit 00aa2f3

Browse files
committed
Add tapestats to collect tape devices statistics
It is based on diskstats to allow metrics reuse by simply s/disk/tape/ the query. Signed-off-by: Luiz Angelo Daros de Luca <[email protected]>
1 parent 2510378 commit 00aa2f3

File tree

4 files changed

+683
-1
lines changed

4 files changed

+683
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## master / unreleased
22

33
* [CHANGE]
4-
* [FEATURE]
4+
* [FEATURE] Add tapestats collector for Linux
55
* [ENHANCEMENT]
66
* [BUGFIX]
77

collector/fixtures/e2e-output.txt

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2796,6 +2796,7 @@ node_scrape_collector_success{collector="schedstat"} 1
27962796
node_scrape_collector_success{collector="sockstat"} 1
27972797
node_scrape_collector_success{collector="softnet"} 1
27982798
node_scrape_collector_success{collector="stat"} 1
2799+
node_scrape_collector_success{collector="tapestats"} 1
27992800
node_scrape_collector_success{collector="textfile"} 1
28002801
node_scrape_collector_success{collector="thermal_zone"} 1
28012802
node_scrape_collector_success{collector="udp_queues"} 1
@@ -2882,6 +2883,36 @@ node_softnet_times_squeezed_total{cpu="0"} 1
28822883
node_softnet_times_squeezed_total{cpu="1"} 10
28832884
node_softnet_times_squeezed_total{cpu="2"} 85
28842885
node_softnet_times_squeezed_total{cpu="3"} 50
2886+
# HELP node_tape_io_now The number of I/Os currently outstanding to this device.
2887+
# TYPE node_tape_io_now gauge
2888+
node_tape_io_now{device="st0"} 1
2889+
# HELP node_tape_io_others_total The number of I/Os issued to the tape drive other than read or write commands. The time taken to complete these commands uses the following calculation io_time_seconds_total-read_time_seconds_total-write_time_seconds_total
2890+
# TYPE node_tape_io_others_total counter
2891+
node_tape_io_others_total{device="st0"} 1409
2892+
# HELP node_tape_io_time_seconds_total The amount of time spent waiting for all I/O to complete (including read and write). This includes tape movement commands such as seeking between file or set marks and implicit tape movement such as when rewind on close tape devices are used.
2893+
# TYPE node_tape_io_time_seconds_total counter
2894+
node_tape_io_time_seconds_total{device="st0"} 9247.01108772
2895+
# HELP node_tape_read_bytes_total The number of bytes read from the tape drive.
2896+
# TYPE node_tape_read_bytes_total counter
2897+
node_tape_read_bytes_total{device="st0"} 9.79383912e+08
2898+
# HELP node_tape_read_time_seconds_total The amount of time spent waiting for read requests to complete.
2899+
# TYPE node_tape_read_time_seconds_total counter
2900+
node_tape_read_time_seconds_total{device="st0"} 33.788355744
2901+
# HELP node_tape_reads_completed_total The number of read requests issued to the tape drive.
2902+
# TYPE node_tape_reads_completed_total counter
2903+
node_tape_reads_completed_total{device="st0"} 3741
2904+
# HELP node_tape_residual_total The number of times during a read or write we found the residual amount to be non-zero. This should mean that a program is issuing a read larger thean the block size on tape. For write not all data made it to tape.
2905+
# TYPE node_tape_residual_total counter
2906+
node_tape_residual_total{device="st0"} 19
2907+
# HELP node_tape_write_time_seconds_total The amount of time spent waiting for write requests to complete.
2908+
# TYPE node_tape_write_time_seconds_total counter
2909+
node_tape_write_time_seconds_total{device="st0"} 5233.597394395
2910+
# HELP node_tape_writes_completed_total The number of write requests issued to the tape drive.
2911+
# TYPE node_tape_writes_completed_total counter
2912+
node_tape_writes_completed_total{device="st0"} 5.3772916e+07
2913+
# HELP node_tape_written_bytes_total The number of bytes written to the tape drive.
2914+
# TYPE node_tape_written_bytes_total counter
2915+
node_tape_written_bytes_total{device="st0"} 1.496246784e+12
28852916
# HELP node_textfile_mtime_seconds Unixtime mtime of textfiles successfully read.
28862917
# TYPE node_textfile_mtime_seconds gauge
28872918
# HELP node_textfile_scrape_error 1 if there was an error opening or reading a file, 0 otherwise

0 commit comments

Comments
 (0)