diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-05 11:19:16 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-07-24 09:53:24 +0000 |
commit | b5f8ee61a7f7e9bd291dd26b0585d03eb686c941 (patch) | |
tree | d4d31289c39fc00da064a825df13a0b98ce95b10 /src/go/collectors/go.d.plugin/modules/nvme/testdata | |
parent | Adding upstream version 1.44.3. (diff) | |
download | netdata-b5f8ee61a7f7e9bd291dd26b0585d03eb686c941.tar.xz netdata-b5f8ee61a7f7e9bd291dd26b0585d03eb686c941.zip |
Adding upstream version 1.46.3.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/go/collectors/go.d.plugin/modules/nvme/testdata')
7 files changed, 112 insertions, 0 deletions
diff --git a/src/go/collectors/go.d.plugin/modules/nvme/testdata/config.json b/src/go/collectors/go.d.plugin/modules/nvme/testdata/config.json new file mode 100644 index 000000000..291ecee3d --- /dev/null +++ b/src/go/collectors/go.d.plugin/modules/nvme/testdata/config.json @@ -0,0 +1,4 @@ +{ + "update_every": 123, + "timeout": 123.123 +} diff --git a/src/go/collectors/go.d.plugin/modules/nvme/testdata/config.yaml b/src/go/collectors/go.d.plugin/modules/nvme/testdata/config.yaml new file mode 100644 index 000000000..25b0b4c78 --- /dev/null +++ b/src/go/collectors/go.d.plugin/modules/nvme/testdata/config.yaml @@ -0,0 +1,2 @@ +update_every: 123 +timeout: 123.123 diff --git a/src/go/collectors/go.d.plugin/modules/nvme/testdata/nvme-list-empty.json b/src/go/collectors/go.d.plugin/modules/nvme/testdata/nvme-list-empty.json new file mode 100644 index 000000000..e8da2407f --- /dev/null +++ b/src/go/collectors/go.d.plugin/modules/nvme/testdata/nvme-list-empty.json @@ -0,0 +1,4 @@ +{ + "Devices": [ + ] +}
\ No newline at end of file diff --git a/src/go/collectors/go.d.plugin/modules/nvme/testdata/nvme-list.json b/src/go/collectors/go.d.plugin/modules/nvme/testdata/nvme-list.json new file mode 100644 index 000000000..6bf159c4f --- /dev/null +++ b/src/go/collectors/go.d.plugin/modules/nvme/testdata/nvme-list.json @@ -0,0 +1,30 @@ +{ + "Devices": [ + { + "NameSpace": 1, + "DevicePath": "/dev/nvme0n1", + "Firmware": "SU6SM001", + "Index": 0, + "ModelNumber": "Seagate FireCuda 530 ZP4000GM30023", + "ProductName": "Non-Volatile memory controller: Seagate Technology PLC Device 0x5018", + "SerialNumber": "7VS00KNX", + "UsedBytes": 4000787030016, + "MaximumLBA": 7814037168, + "PhysicalSize": 4000787030016, + "SectorSize": 512 + }, + { + "NameSpace": 1, + "DevicePath": "/dev/nvme1n1", + "Firmware": "SU6SM001", + "Index": 1, + "ModelNumber": "Seagate FireCuda 530 ZP4000GM30023", + "ProductName": "Non-Volatile memory controller: Seagate Technology PLC Device 0x5018", + "SerialNumber": "7VS00J76", + "UsedBytes": 4000787030016, + "MaximumLBA": 7814037168, + "PhysicalSize": 4000787030016, + "SectorSize": 512 + } + ] +}
\ No newline at end of file diff --git a/src/go/collectors/go.d.plugin/modules/nvme/testdata/nvme-smart-log-float.json b/src/go/collectors/go.d.plugin/modules/nvme/testdata/nvme-smart-log-float.json new file mode 100644 index 000000000..f63dd9772 --- /dev/null +++ b/src/go/collectors/go.d.plugin/modules/nvme/testdata/nvme-smart-log-float.json @@ -0,0 +1,24 @@ +{ + "critical_warning": 0, + "temperature": 310.0, + "avail_spare": 100.0, + "spare_thresh": 5.0, + "percent_used": 2.0, + "endurance_grp_critical_warning_summary": 0, + "data_units_read": 9898518.0, + "data_units_written": 136157684.0, + "host_read_commands": 313528805.0, + "host_write_commands": 1928062610.0, + "controller_busy_time": 8284.0, + "power_cycles": 64.0, + "power_on_hours": 4974.0, + "unsafe_shutdowns": 39.0, + "media_errors": 0, + "num_err_log_entries": 110.0, + "warning_temp_time": 0, + "critical_comp_time": 0, + "thm_temp1_trans_count": 0, + "thm_temp2_trans_count": 0, + "thm_temp1_total_time": 0, + "thm_temp2_total_time": 0 +} diff --git a/src/go/collectors/go.d.plugin/modules/nvme/testdata/nvme-smart-log-string.json b/src/go/collectors/go.d.plugin/modules/nvme/testdata/nvme-smart-log-string.json new file mode 100644 index 000000000..f582e7485 --- /dev/null +++ b/src/go/collectors/go.d.plugin/modules/nvme/testdata/nvme-smart-log-string.json @@ -0,0 +1,24 @@ +{ + "critical_warning": "0", + "temperature": "310", + "avail_spare": "100", + "spare_thresh": "5", + "percent_used": "2", + "endurance_grp_critical_warning_summary": "0", + "data_units_read": "9898518", + "data_units_written": "136157684", + "host_read_commands": "313528805", + "host_write_commands": "1928062610", + "controller_busy_time": "8284", + "power_cycles": "64", + "power_on_hours": "4974", + "unsafe_shutdowns": "39", + "media_errors": "0", + "num_err_log_entries": "110", + "warning_temp_time": "0", + "critical_comp_time": "0", + "thm_temp1_trans_count": "0", + "thm_temp2_trans_count": "0", + "thm_temp1_total_time": "0", + "thm_temp2_total_time": "0" +} diff --git a/src/go/collectors/go.d.plugin/modules/nvme/testdata/nvme-smart-log.json b/src/go/collectors/go.d.plugin/modules/nvme/testdata/nvme-smart-log.json new file mode 100644 index 000000000..cbd0e4c7d --- /dev/null +++ b/src/go/collectors/go.d.plugin/modules/nvme/testdata/nvme-smart-log.json @@ -0,0 +1,24 @@ +{ + "critical_warning": 0, + "temperature": 310, + "avail_spare": 100, + "spare_thresh": 5, + "percent_used": 2, + "endurance_grp_critical_warning_summary": 0, + "data_units_read": 9898518, + "data_units_written": 136157684, + "host_read_commands": 313528805, + "host_write_commands": 1928062610, + "controller_busy_time": 8284, + "power_cycles": 64, + "power_on_hours": 4974, + "unsafe_shutdowns": 39, + "media_errors": 0, + "num_err_log_entries": 110, + "warning_temp_time": 0, + "critical_comp_time": 0, + "thm_temp1_trans_count": 0, + "thm_temp2_trans_count": 0, + "thm_temp1_total_time": 0, + "thm_temp2_total_time": 0 +} |